Get orders list

get
https://api.cryptomus.com/v2/user-api/convert/order-list
COPY

Request

Query parameters

NameParameter typeDefault valueDefinition
cursorstringnullCursor
typestringnullType enumAvailable options:marketlimit
statusstringnullStatus enumAvailable options:activecompletedpartially_completedcancelledexpiredfailed

Parameter type

string

Definition

Cursor

Parameter type

string

Definition

Type enumAvailable options:- market- limit

Parameter type

string

Definition

Status enumAvailable options:- active- completed- partially_completed- cancelled- expired- failed

Request example

curl https://api.cryptomus.com/v2/user-api/convert/order-list?cursor=eyJpdiI6IlRDMzlwWnI3MkZsTHRWdWdPUTZmenc9PSIsInZhbHVlIjoicWxiQTIvNzZycCtZKzFQRzlXQUFGcmdWLzRLMXhmUk1hZmZkSTBlNW9qSUkzVWplakdqUjlQNjNRdTM1TEZ5cTRVOW1acGs5VnRuMHdJVVZJN2QrcVE1aC8zZnFNWmRtZmpkaDloNFNkTTQ0YTF0N2tyNXh2c3VKNXkxSkRsRVUiLCJtYWMiOiJmNDU1ZTJiNjJlZjRmYWY3MDhmMTE3ZDVkNWE4OTUyNjg1MDM4OWUyZmRiM2I0YWZiMmUwNDRkMDRjMTUzNzJkIiwidGFnIjoiIn0= \
    -X GET \
    -H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
    -H 'sign: fe99035f86fa436181717b302b95bacff1' \
    -H 'Content-Type: application/json' \
    -d '{
      "type": "limit",
      "status": "cancelled"
    }'
    
COPY

Response

Response parameters

NameDefinition
itemsArray of collection items
order_idId of order
convert_amount_fromAmount from
convert_amount_toAmount to
executed_amount_fromExecuted amount from
executed_amount_toExecuted amount to
statusStatus enumAvailable options:activecompletedpartially_completedcancelledexpiredfailed
created_atDate time create
paginatePaginate data
countCount of item elements in response
hasPagesIsset pages
nextCursorNext cursor
previousCursorPrevious cursor
perPageCount of elements in page

Definition

Array of collection items

Definition

Id of order

Definition

Amount from

Definition

Amount to

Definition

Executed amount from

Definition

Executed amount to

Definition

Status enumAvailable options:- active- completed- partially_completed- cancelled- expired- failed

Definition

Date time create

Definition

Paginate data

Definition

Count of item elements in response

Definition

Isset pages

Definition

Next cursor

Definition

Previous cursor

Definition

Count of elements in page

Response example


1{
2  "state": 0,
3  "result": {
4    "items": [
5      {
6        "order_id": 49347,
7        "convert_amount_from": "0.03700249",
8        "convert_amount_to": "2476.39230892",
9        "executed_amount_from": "0.03700249",
10        "executed_amount_to": "2476.39230892",
11        "convert_currency_from": "BTC",
12        "convert_currency_to": "USDT",
13        "type": "market",
14        "status": "completed",
15        "created_at": "2024-03-25 , 11:24:55",
16        "current_rate": "66925.01798999",
17        "completed_at": "2024-03-25 , 11:25:03"
18      },
19      ...
20    ],
21    "paginate": {
22      "count": 15,
23      "hasPages": true,
24      "nextCursor": "eyJpdiI6ImRtQnpjUUorSkNPNXRtcGNzdVB6Mnc9PSIsInZhbHVlIjoiajArWmVOTTFEUzdJK2xUZmtLWm9Td2NEcTBmZmRQRUNkN203L0JZTUhicDVxYjBjQXpsZ0NDUkVBQjc3cFBXemZWbENQbmRVNEZPVm5FeCthM2tsV0VHODZ2aVp3MEg3SDc1VnRqeTNXbU8zTERORVp2L1JlQ0hHRWtjdkE2bTIiLCJtYWMiOiI1MjNjNjU0MzJkYmNmZWY1ZjQ4Zjc5ODMxOTExZmEzYWQzMDM3YTQxOTYyMmMyMWZlN2ZjYzJlZWE1MDAwMTY2IiwidGFnIjoiIn0=",
25      "previousCursor": "eyJpdiI6IlRDMzlwWnI3MkZsTHRWdWdPUTZmenc9PSIsInZhbHVlIjoicWxiQTIvNzZycCtZKzFQRzlXQUFGcmdWLzRLMXhmUk1hZmZkSTBlNW9qSUkzVWplakdqUjlQNjNRdTM1TEZ5cTRVOW1acGs5VnRuMHdJVVZJN2QrcVE1aC8zZnFNWmRtZmpkaDloNFNkTTQ0YTF0N2tyNXh2c3VKNXkxSkRsRVUiLCJtYWMiOiJmNDU1ZTJiNjJlZjRmYWY3MDhmMTE3ZDVkNWE4OTUyNjg1MDM4OWUyZmRiM2I0YWZiMmUwNDRkMDRjMTUzNzJkIiwidGFnIjoiIn0=",
26      "perPage": 15
27    }
28  }
29}
30
COPY