Closed mitchmindtree closed 6 years ago
Also requiring further detail about what the trades array represents. Haven't been able to find anything so far.... Can anyone provide a quick description of what the 4 fields in the array represent? Thanks.
Unofficial answer here. The four elements in "trades" correspond to [timestamp (in milliseconds), price (multiplied by 1e8), amount (multiplied by 1e8), trade_id]
Perfect, thanks so much!
On Sun, 12 Aug 2018 at 9:13 pm, Ahmed Mohamed notifications@github.com wrote:
Unofficial answer here. The four elements in "trades" correspond to [timestamp (in milliseconds), price (multiplied by 1e8), amount (multiplied by 1e8), trade_id]
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BTCMarkets/API/issues/147#issuecomment-412345663, or mute the thread https://github.com/notifications/unsubscribe-auth/AEX_bTn451Vzh9Lej7Bbjgg4j_FVwJptks5uQDfsgaJpZM4Vajrb .
The answer provided by ahmohamed is correct. In addition, if there is more than one element in the trades array, each element represents one trade since the last socket event. We're looking to give some love to the websocket and its documentation soon.
Cheers, Justin
Thanks @justin-ngin +1 for more web socket support. Especially those account related events that keep getting teased ;)
This issue can probably be closed now.
I'm testing the
MarketTrade
event but don't quite understand the data returned under the "trades" field. An example of a returned event:Could you please explain:
Thanks for your time!