POST
https://prv.gateway.indexer.biya.io
/
injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
/
Trades
Trades
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Trades \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_id": "<string>",
  "execution_side": "<string>",
  "direction": "<string>",
  "subaccount_id": "<string>",
  "skip": 123,
  "limit": 123,
  "start_time": 123,
  "end_time": 123,
  "market_ids": [
    {}
  ],
  "subaccount_ids": [
    {}
  ],
  "execution_types": [
    {}
  ],
  "trade_id": "<string>",
  "account_address": "<string>",
  "cid": "<string>",
  "fee_recipient": "<string>"
}
'
Get trades of a spot market.
market_id
string
Market ID (optional)
execution_side
string
Execution side (optional)
direction
string
Trade direction (optional)
subaccount_id
string
Subaccount ID (optional)
skip
number
Skip count (optional)
limit
number
Limit count (optional)
start_time
number
Start time (optional)
end_time
number
End time (optional)
market_ids
array
Array of market IDs (optional)
subaccount_ids
array
Array of subaccount IDs (optional)
execution_types
array
Array of execution types (optional)
trade_id
string
Trade ID (optional)
account_address
string
Account address (optional)
cid
string
Client order ID (optional)
fee_recipient
string
Fee recipient (optional)

Response

{
  "trades": [
    {
      "order_hash": "string",
      "subaccount_id": "string",
      "market_id": "string",
      "trade_execution_type": "string",
      "trade_direction": "string",
      "price": {
        "price": "string",
        "quantity": "string",
        "timestamp": "number"
      },
      "fee": "string",
      "executed_at": "number",
      "fee_recipient": "string",
      "trade_id": "string",
      "execution_side": "string",
      "cid": "string"
    }
  ],
  "paging": {
    "total": "number",
    "from": "number",
    "to": "number",
    "count_by_subaccount": "number",
    "next": ["string"]
  }
}