Skip to main content
POST
/
api
/
v1
/
hosts
/
query
/
ListRecentOrders
Get recent orders for a specific account and instrument
curl --request POST \
  --url https://api.plurex.io/api/v1/hosts/query/ListRecentOrders \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "accountId": "<string>",
  "instrument": {
    "base": "<string>",
    "quote": "<string>",
    "marketType": "<string>"
  },
  "cursor": "<string>"
}
'
{
  "traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "serverTime": "2023-11-07T05:31:56Z",
  "items": [
    {
      "type": "Limit",
      "id": "<string>",
      "createdTimestamp": "2023-11-07T05:31:56Z",
      "side": "Buy",
      "instrument": {
        "base": "<string>",
        "quote": "<string>",
        "marketType": "<string>"
      },
      "state": "Complete",
      "traded": {
        "type": "Batched",
        "baseTraded": "<string>",
        "quoteTraded": "<string>",
        "totalFees": [
          {
            "asset": "<string>",
            "amount": "<string>"
          }
        ],
        "lastUpdated": "2023-11-07T05:31:56Z"
      },
      "size": "<string>",
      "price": "<string>"
    }
  ],
  "warnings": [
    "<string>"
  ],
  "nextCursor": "<string>"
}

Authorizations

X-API-KEY
string
header
required
X-API-SECRET
string
header
required

Body

application/json
accountId
string
required
instrument
object
required
cursor
string | null

Response

200 - application/json

Successful response

traceId
string<uuid>
required

Unique identifier for tracing.

serverTime
string<date-time>
required

RFC3339 timestamp of processing.

items
object[]
required
warnings
string[]
nextCursor
string | null

Use this value in the next request to fetch the following page.