GET
/
orders
curl --request GET \
  --url https://api.sandbox1-dev.finhost.io/crypto-exchange/orders \
  --header 'Authorization: Bearer <token>'
{
  "orders": [
    {
      "id": "018e53c4-cd35-7863-be61-924932bfd862",
      "profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accountIdFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accountIdTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "pair": "USDT/EUR",
      "side": "buy",
      "volume": "42",
      "settings": {
        "type": "market",
        "desiredPrice": "42"
      },
      "charge": {
        "percentage": 0.5,
        "contractId": "regularContract"
      },
      "state": {
        "status": "initiated"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pageKey": null
}

Authorizations

Authorization
string
header
required

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

Query Parameters

companyId
string

Company ID

pageSort
enum<string>
default:desc

Page Sort

Available options:
asc,
desc
pageLimit
integer
default:10

Page Limit (see minimum/maximum)

Required range: 1 <= x <= 25
pageKey
string

Page Key (used for pagination, taken from the previous response)

Response

200
application/json
OK

The response is of type object.