Skip to main content
GET
/
api
/
v1
/
completed-orders
Get Account Completed Orders
curl --request GET \
  --url https://user-account.trade.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",
      "fees": "533.61363328",
      "triggerType": "none",
      "triggerPrice": "0",
      "transactionHash": "335a50808317116f2fc1147277bcc226e0e52dfea7b15899d66add371d2ab499",
      "filledAt": 1747426816421
    },
    {
      "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",
      "fees": "525.37804396",
      "triggerType": "none",
      "triggerPrice": "0",
      "transactionHash": "4dfb16c92be57701a4498b37c9af9ece0d1109bef5350d9a891e5f2f64eaf6d2",
      "filledAt": 1747426816421
    }
  ],
  "last": "BTC-USD#FEES#01JP390Z8WVR9EP6X1P187P722#01JP36QTCRJCGN7NC0CPZ22NAB@1741719371497"
}

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 a 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 a 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 a parameter to support pagination. Get the value from the last field if present in the previous response.

Response

200 - application/json
completedOrders
object[]
required

List of completed (filled) orders for the account.

last
string

This is a 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.