Closed hard-money closed 6 months ago
Hi gmosx,
I noticed that serde wasn't deserializing the JSON when I trying it. I think that since TradeData already is a Vec
pub type TradeData = Vec<Trade>;
pub type TradeEvent = Event<Vec<TradeData>>;
This fix works in my local repo, thought I'd share it upstream. Thanks for the making this sdk public gmosx.
Ah you are right! My bad, I will merge. Thanks again for this PR!
I am a bit confused, the example here shows that an array (vec) is returned:
https://docs.kraken.com/websockets-v2/#trade
Is the example outdated? It even mentions:
"Multiple trades may be batched in a single message"