Find orders#
GET https://api.pro.anboto.xyz/api/v2/trading/order/find
Only matched order within 3 days will be return ApiKeyAuth required.
Query params#
startMs integerThe start time for the query as ms since epoch
endMs integerThe end time for the query as ms since epoch
limit integerThe maximum number of orders to return in the results
Headers#
| Header | ||
|---|---|---|
X-API-KEY |
string | required |
X-TIMESTAMP |
int64 ms | required |
X-SIGN |
string | required |
X-RECV-WINDOW |
int, default 5000 |
Responses#
| 200 | The list of matching orders. |
| 401 | Unauthorized, Invalid Signature |
| 429 | Rate limit exceeded, retry later |
Response fields — OrderDetailsList#
The list of order details for separate orders.
orders[].order_id integerThe Anboto generated order id
orders[].client_order_id stringThe client provided order id
orders[].symbol stringThe order symbol in Anboto's symbology
orders[].status enumThe order status —
PENDING_NEW, ACCEPTED, REJECTED, PARTIALLY_FILLED, FILLED, PENDING_CANCEL, CANCELLED, PENDING_PAUSE, … (12 values)orders[].asset_class enumThe Asset category of the order. —
SPOT, FUTUREorders[].exchange enumThe exchanges available for order placement via the API —
BINANCE, HUOBI, GATEIO, KUCOIN, OKX, BYBIT, BITGET, WOO, … (15 values)orders[].strategy enumThe execution strategy for the order. —
TWAP, VWAP, ICEBERG, POV, MARKET, LIMIT, IS, SCALEorders[].start_time numberThe time when the order start trading from epoch time in ms
orders[].end_time numberThe time when the order is finished from epoch time in ms
orders[].filled_quantity number requiredThe absolute amount of the order quantity filled
orders[].leaves_quantity number requiredThe absolute amount of the order quantity remaining to be filled
orders[].side enumThe side of the book to trade. —
BUY, SELLorders[].last_quantity number requiredThe last qty received in a fill from the exchange
orders[].last_price number requiredThe last price executed on the exchange
orders[].average_price number requiredThe average execution price of the order
orders[].trades array[TradeDetails]The list of trades associated with this order when include_trades=true
orders[].trades[].trade_id integerThe trade id from exchange
orders[].trades[].symbol string requiredThe order symbol using Anboto symbology
orders[].trades[].exchangeOrderId stringThe order id from exchange
orders[].trades[].clientOrderId stringThe client order id
orders[].trades[].quantity number requiredThe absolute amount of the order quantity filled
orders[].trades[].price number requiredThe traded price
orders[].trades[].direction stringThe direction of the trade
orders[].trades[].makerOrTaker stringThe trade is from Maker or Taker
orders[].trades[].execTime integerThe time where the trade executed
orders[].trades[].fee numberThe fee charged on the trade
orders[].trades[].feeCurrency stringThe asset type the fee was charged in
orders[].fees_infos objectAggregated fees per currency when include_fees=true
curl -X GET "$BASE/api/v2/trading/order/find?startMs=0" \
-H "X-API-KEY: $API_KEY" -H "X-TIMESTAMP: $ts" \
-H "X-SIGN: $sign"
params = {"startMs": ..., "endMs": ..., "limit": ...}
r = requests.get(f"{BASE}/api/v2/trading/order/find",
params=params
headers=signed_headers_query(params))
print(r.json())
let resp = client
.get(format!("{BASE}/api/v2/trading/order/find?startMs=0"))
.headers(signed_headers_query(¶ms))
.send()?;
println!("{}", resp.text()?);
req, _ := http.NewRequest("GET", BASE+"/api/v2/trading/order/find?startMs=0", nil)
for k, v := range signedHeadersQuery(req.URL.Query()) {
req.Header.Set(k, v)
}
resp, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
io.Copy(os.Stdout, resp.Body)
HttpResponse<String> resp = client.send(
signedGet("/api/v2/trading/order/find?startMs=0"),
HttpResponse.BodyHandlers.ofString());
const res = await fetch(`${BASE}/api/v2/trading/order/find?startMs=0`, {
method: "GET",
headers: signedHeadersQuery(params),
});
const data: OrderDetailsList = await res.json();
val request = signedGet("/api/v2/trading/order/find?startMs=0")
val response = client.send(request, HttpResponse.BodyHandlers.ofString())
println(response.body())
cpr::Response r = cpr::Get(
cpr::Url{BASE + "/api/v2/trading/order/find?startMs=0"},
signedHeadersQuery(params));
std::cout << r.text << std::endl;
const res = await fetch(`${BASE}/api/v2/trading/order/find?startMs=0`, {
method: "GET",
headers: signedHeadersQuery(params),
});
console.log(await res.json());
Response 200
{
"orders": [
{
"order_id": 123456,
"client_order_id": "xxx-yyy-zzz",
"symbol": "string",
"status": "PENDING_NEW",
"asset_class": "SPOT",
"exchange": "BINANCE",
"strategy": "TWAP",
"start_time": 0.0,
"end_time": 0.0,
"filled_quantity": 0,
"leaves_quantity": 0,
"side": "BUY",
"last_quantity": 0,
"last_price": 0,
"average_price": 0,
"trades": [
{}
],
"fees_infos": {}
}
]
}