POST
https://prv.gateway.indexer.biya.io
/
injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
/
OrdersHistory
OrdersHistory
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrdersHistory \
  --header 'Content-Type: application/json' \
  --data '
{
  "subaccount_id": "<string>",
  "market_id": "<string>",
  "skip": 123,
  "limit": 123,
  "order_types": [
    {}
  ],
  "direction": "<string>",
  "start_time": 123,
  "end_time": 123,
  "state": "<string>",
  "execution_types": [
    {}
  ],
  "market_ids": [
    {}
  ],
  "trade_id": "<string>",
  "active_markets_only": true,
  "cid": "<string>"
}
'
Get history orders posted from a subaccount.
subaccount_id
string
required
Subaccount ID (required)
market_id
string
Market ID (optional)
skip
number
Skip count (optional)
limit
number
Limit count (optional)
order_types
array
Array of order types (optional)
direction
string
Order direction (optional)
start_time
number
Start time (optional)
end_time
number
End time (optional)
state
string
Order state (optional)
execution_types
array
Array of execution types (optional)
market_ids
array
Array of market IDs (optional)
trade_id
string
Trade ID (optional)
active_markets_only
boolean
Active markets only (optional)
cid
string
Client order ID (optional)

Response

{
  "orders": [
    {
      "order_hash": "string",
      "market_id": "string",
      "is_active": "boolean",
      "subaccount_id": "string",
      "execution_type": "string",
      "order_type": "string",
      "price": "string",
      "trigger_price": "string",
      "quantity": "string",
      "filled_quantity": "string",
      "state": "string",
      "created_at": "number",
      "updated_at": "number",
      "direction": "string",
      "tx_hash": "string",
      "cid": "string"
    }
  ],
  "paging": {
    "total": "number",
    "from": "number",
    "to": "number",
    "count_by_subaccount": "number",
    "next": ["string"]
  }
}