Trade
Market trade records returned by exchange.GetTrades(), including the trade Id, time, price, amount and side.
Attributes
| Name | Type | Description |
Id | string | Market trade record Id. When the exchange API does not provide an Id, the platform generates an identifier (which may be a timestamp or a synthetic string beginning with |
Time | number | Trade time, as a millisecond timestamp. |
Price | number | Trade price. |
Amount | number | Trade amount. |
Type | number | Trade side (order type); see |
See Also
Remarks
The exchange.GetTrades() function returns an array of Trade structures; it returns an empty array when there is no data, and a null value when the call fails (null in JavaScript, None in Python).