Type/to search
Built-in Functions
Structures
Trade
Ticker
Record
Order
Condition
OrderBook
Depth
Account
Asset
Position
Market
Funding
OtherStruct
HttpQuery-options
HttpQuery-return
LogStatus-table
LogStatus-btnTypeOne
LogStatus-btnTypeTwo
Chart-options
KLineChart-options
SetData-data
EventLoop-return
DBExec-return
Thread.join-return
Built-in Variables

Data structure for market trade records.

Attributes

NameTypeDescription

Id

string

Unique identifier for the market trade record. If the exchange API does not provide an Id, it will be filled with a timestamp.

Time

number

Timestamp in milliseconds.

Price

number

Execution price.

Amount

number

Execution quantity.

Type

number

Order type, refer to ORDER_TYPE_BUY, ORDER_TYPE_SELL.

See Also

Remarks

The exchange.GetTrades() function returns an array of Trade or an empty array.