Obtenir la liste des ordres

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

Demande

Paramètres de requête

NomType de paramètreValeur par défautDéfinition
cursorstringnullCurseur
typestringnullType d'énumérationOptions disponibles:marketlimit
statusstringnullStatut d'énumérationOptions disponibles:activecompletedpartially_completedcancelledexpiredfailed

Type de paramètre

string

Définition

Curseur

Type de paramètre

string

Définition

Type d'énumérationOptions disponibles:- market- limit

Type de paramètre

string

Définition

Statut d'énumérationOptions disponibles:- active- completed- partially_completed- cancelled- expired- failed

Demander un exemple

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"
    }'
    
COPIE

Réponse

Paramètres de réponse

NomDéfinition
itemsTableau des éléments de collection
order_idID de la commande
convert_amount_fromMontant de
convert_amount_toMontant à
executed_amount_fromMontant exécuté depuis
executed_amount_toMontant exécuté en
statusStatut d'énumérationOptions disponibles:activecompletedpartially_completedcancelledexpiredfailed
created_atDate et heure de création
paginateDonnées paginées
countNombre d'éléments dans la réponse
hasPagesPages existantes
nextCursorCurseur suivant
previousCursorCurseur précédent
perPageNombre d'éléments par page

Définition

Tableau des éléments de collection

Définition

ID de la commande

Définition

Montant de

Définition

Montant à

Définition

Montant exécuté depuis

Définition

Montant exécuté en

Définition

Statut d'énumérationOptions disponibles:- active- completed- partially_completed- cancelled- expired- failed

Définition

Date et heure de création

Définition

Données paginées

Définition

Nombre d'éléments dans la réponse

Définition

Pages existantes

Définition

Curseur suivant

Définition

Curseur précédent

Définition

Nombre d'éléments par page

Exemple de réponse


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
COPIE