Get orders list
get
https://api.cryptomus.com/v2/user-api/convert/order-list
Request
Query parameters
Name | Parameter type | Default value | Definition |
---|---|---|---|
cursor | string | null | Cursor |
type | string | null | Type enumAvailable options:• market• limit |
status | string | null | Status enumAvailable options:• active• completed• partially_completed• cancelled• expired• failed |
Parameter type
stringDefinition
CursorParameter type
stringDefinition
Type enumAvailable options:- market- limitParameter type
stringDefinition
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"
}'
COPYResponse
Response parameters
Name | Definition |
---|---|
items | Array of collection items |
order_id | Id of order |
convert_amount_from | Amount from |
convert_amount_to | Amount to |
executed_amount_from | Executed amount from |
executed_amount_to | Executed amount to |
status | Status enumAvailable options:• active• completed• partially_completed• cancelled• expired• failed |
created_at | Date time create |
paginate | Paginate data |
count | Count of item elements in response |
hasPages | Isset pages |
nextCursor | Next cursor |
previousCursor | Previous cursor |
perPage | Count of elements in page |
Definition
Array of collection itemsDefinition
Id of orderDefinition
Amount fromDefinition
Amount toDefinition
Executed amount fromDefinition
Executed amount toDefinition
Status enumAvailable options:- active- completed- partially_completed- cancelled- expired- failedDefinition
Date time createDefinition
Paginate dataDefinition
Count of item elements in responseDefinition
Isset pagesDefinition
Next cursorDefinition
Previous cursorDefinition
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