exchange.GetHistoryOrders
exchange.GetHistoryOrders() function is used to retrieve the historical orders of the current trading pair or contract, and supports specifying a particular trading instrument.
exchange.GetHistoryOrders()
exchange.GetHistoryOrders(symbol)
exchange.GetHistoryOrders(symbol, since)
exchange.GetHistoryOrders(symbol, since, limit)
exchange.GetHistoryOrders(since)
exchange.GetHistoryOrders(since, limit)Examples
javascript
function main() {
var historyOrders = exchange.GetHistoryOrders()
Log(historyOrders)
}
python
def main():
historyOrders = exchange.GetHistoryOrders()
Log(historyOrders)
rust
fn main() {
let historyOrders = exchange.GetHistoryOrders(None, None, None);
Log!(historyOrders);
}
c++
void main() {
auto historyOrders = exchange.GetHistoryOrders();
Log(historyOrders);
}Returns
| Type | Description |
| The |
Arguments
| Name | Type | Required | Description |
symbol | string | No | The If querying order data for an options contract, the |
since | number | No | The |
limit | number | No | The |
See Also
Remarks
-
When the
symbol,since, andlimitparameters are not specified, the historical orders of the current trading pair or contract are queried by default, i.e., the historical orders within a certain range closest to the current time are queried. The specific query range depends on the single-query range of the exchange's interface. -
When the
symbolparameter is specified, the historical orders of the set trading instrument are queried. -
When the
sinceparameter is specified, the query starts from thesincetimestamp and proceeds toward the current time. -
When the
limitparameter is specified, the query returns once a sufficient number of records is reached. -
This function is only supported by exchanges that provide a historical order query interface.
Exchanges that do not support the exchange.GetHistoryOrders() function:
| Function Name | Unsupported Spot Exchanges | Unsupported Futures Exchanges |
|---|---|---|
| GetHistoryOrders | Zaif / Upbit / Coincheck / Bitstamp / Bithumb / BitFlyer / BigONE | Futures_Bibox / Futures_ApolloX |