accountInactiveOrders
Get account inactive orders. auth can be generated using the SDK.
get/api/v1/accountInactiveOrders
Query parameters
account_indexinteger · int64Required
Account index to query.
market_idinteger · int16OptionalDefault:
Public market identifier returned by orderBooks or events.
255ask_filterinteger · int8OptionalDefault:
Side filter: -1 = both sides, 0 = bids/buys, 1 = asks/sells.
-1between_timestampsstringOptional
Inclusive start and end Unix timestamps in seconds, separated by a hyphen: 1792627200-1792713600.
cursorstringOptional
Opaque pagination cursor returned by the previous response; pass it unchanged.
limitinteger · int64 · min: 1 · max: 100Required
Maximum number of records to return.
market_typestring · enumOptionalDefault:
Market filter: perp, spot or bo; comma-separated values or all.
allPossible values: Header parameters
authorizationstringRequired
Auth token in the Authorization header.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
next_cursorstringOptional
400
Bad request
application/json
get/api/v1/accountInactiveOrders
GET /api/v1/accountInactiveOrders?account_index=1&limit=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Accept: */*
{
"code": 200,
"message": "text",
"next_cursor": "text",
"orders": [
{
"order_index": 1,
"client_order_index": 234,
"order_id": "1",
"client_order_id": "234",
"market_index": 1,
"owner_account_index": 1,
"initial_base_amount": "0.1",
"price": "3024.66",
"nonce": 722,
"remaining_base_amount": "0.1",
"is_ask": true,
"base_size": 12354,
"base_price": 3024,
"filled_base_amount": "0.1",
"filled_quote_amount": "0.1",
"side": "buy",
"type": "limit",
"time_in_force": "good-till-time",
"reduce_only": true,
"trigger_price": "3024.66",
"order_expiry": 1640995200,
"status": "open",
"trigger_status": "twap",
"trigger_time": 1640995200,
"parent_order_index": 1,
"parent_order_id": "1",
"to_trigger_order_id_0": "1",
"to_trigger_order_id_1": "1",
"to_cancel_order_id_0": "1",
"block_height": 45434,
"timestamp": 1640995200,
"created_at": 1640995200,
"updated_at": 1640995200,
"transaction_time": 1,
"integrator_fee_collector_index": "text",
"integrator_maker_fee": "text",
"integrator_taker_fee": "text",
"order_flags": 1,
"order_version": 1,
"market_symbol": "ETH",
"market_kind": "perps"
}
]
}Last updated
Was this helpful?