GET
/
api
/
v1
/
completed-orders
curl --request GET \
  --url https://user-account.sandbox.rails.xyz/api/v1/completed-orders \
  --header 'Authorization: Bearer <token>'
{
  "completedOrders": [
    {
      "market": "ETH-USD",
      "matchId": "a59141f0-9c13-4ec8-bc37-beceb7fb284a",
      "orderId": "01JP39KFBF8SHJAT3ERHPF3YSP",
      "orderType": "buy",
      "executionType": "maker",
      "fillType": "complete",
      "price": "1949",
      "quantity": "273.78842139",
      "tradeType": "limit",
      "txCreated": 1741720077742,
      "fees": "533.61363328",
      "triggerType": "none",
      "triggerPrice": "0",
      "transactionHash": "335a50808317116f2fc1147277bcc226e0e52dfea7b15899d66add371d2ab499"
    },
    {
      "market": "BTC-USD",
      "matchId": "6d6ca016-fd1d-415a-8a83-25a1f5fc02f4",
      "orderId": "01JP390Z8WVR9EP6X1P187P722",
      "orderType": "sell",
      "executionType": "taker",
      "fillType": "complete",
      "price": "82850.59187039",
      "quantity": "6.34127086",
      "tradeType": "market",
      "txCreated": 1741719371497,
      "fees": "525.37804396",
      "triggerType": "none",
      "triggerPrice": "0",
      "transactionHash": "4dfb16c92be57701a4498b37c9af9ece0d1109bef5350d9a891e5f2f64eaf6d2"
    }
  ],
  "last": "BTC-USD#FEES#01JP390Z8WVR9EP6X1P187P722#01JP36QTCRJCGN7NC0CPZ22NAB@1741719371497"
}

• The endpoint returns the latest completed orders sorted by txCreated field across all markets.

• Each request returns up to 100 items. Please paginate as needed.

• Two optional query parameters: startDate and endDate, which must be passed in milliseconds.

• The endpoint does NOT support querying by market.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

startDate
number

This is an optional parameter to support querying by date. The value should be in the format of milliseconds since epoch. It can be used alone or in conjunction with the endDate parameter.

endDate
number

This is an optional parameter to support querying by date. The value should be in the format of milliseconds since epoch. It can be used alone or in conjunction with the startDate parameter.

start
string

This is an optional parameter to support pagination. Get the value from the last field if present in the previous response.

Response

200 - application/json
Successful response
completedOrders
object[]
last
string

This is an optional field in the response to support pagination. Use this value if present for the start parameter of the following request to get the next page of results.

Example:

"ETH-USD#01HYXJVRCTDXQSTKZ17ND2SBJH#c3029869-2609-4a0d-8d9b-b030550add28"