Trades

get

Retrieve a list of trades.

Query parameters
addressstringOptional

Address of the account

Pattern: r[0-9a-zA-Z]{24,34}
assetIdstring · uuidOptional

Unique UUID of asset in scope of this gateway, if provided will filter results by provided asset

Example: f54d068d-642a-4752-bf9e-2d2f4f706540
Responses
200

Successfully retrieved a list of items.

application/json
Responseall of
get
/trades
GET /trades HTTP/1.1
Host: 
Accept: */*
200

Successfully retrieved a list of items.

{
  "pagination": {
    "size": 10,
    "page": 1,
    "totalItems": 25,
    "totalPages": 3
  },
  "items": [
    {
      "created_at": "2024-01-01T00:00:00.000Z",
      "updated_at": "2024-01-01T00:00:00.000Z",
      "id": "f12158fb-8d96-4cbb-a396-43cf8c2f749b",
      "order_id_1": "4a22c080-b662-4ff0-b288-1eed188c6f87",
      "order_id_2": "fe031fb8-65cd-4f9b-8050-6fe7c37a0e75",
      "buy_amount_1": 1,
      "buy_amount_2": 2,
      "match_ratio": 2
    }
  ]
}
get

Retrieve full specific trade information.

Path parameters
orderMatchIdstring · uuidRequired

Unique UUID of the trade in scope of this gateway

Example: 10ca9c65-94d7-4662-9e42-fd81da607a78
Responses
200

Successfully received a trade

application/json
get
/trades/{orderMatchId}
GET /trades/{orderMatchId} HTTP/1.1
Host: 
Accept: */*
200

Successfully received a trade

{
  "created_at": "2024-01-01T00:00:00.000Z",
  "updated_at": "2024-01-01T00:00:00.000Z",
  "id": "f12158fb-8d96-4cbb-a396-43cf8c2f749b",
  "order_id_1": "4a22c080-b662-4ff0-b288-1eed188c6f87",
  "order_id_2": "fe031fb8-65cd-4f9b-8050-6fe7c37a0e75",
  "buy_amount_1": 1,
  "buy_amount_2": 2,
  "match_ratio": 2
}