Trade
Data structure for market trade records.
Attributes
| Name | Type | Description |
Id | string | Unique identifier for the market trade record. If the exchange API does not provide an Id, the platform generates one (either a timestamp or a synthetic string starting with |
Time | number | Timestamp in milliseconds. |
Price | number | Execution price. |
Amount | number | Execution quantity. |
Type | number | Order type, refer to |
See Also
Remarks
The exchange.GetTrades() function returns an array of Trade; it is an empty array when there is no data, and a null value (null in JavaScript, None in Python) when the call fails.