Get swaps

Get the list of swaps

POST https://app.thedex.cloud/api/v1/swaps

Headers

Name
Type
Description

X-EX-APIKEY*

String

Your API key

X-EX-PAYLOAD*

String

Body to base64

X-EX-SIGNATURE*

String

Encrypted body with the secret key

Request Body

Name
Type
Description

from*

Long

Timestamp (from) in milliseconds

to*

Long

Timestamp (to) in milliseconds

[
    {
        "id": "String",
        "receiveMonetary": "String",
        "receiveAmount": "String",
        "send": [
            {
                "monetary": "String",
                "amount": "String",
                "amountWithRateCommission": "String",
                "rate": "String",
                "rateCommission": "String",
                "rateWithCommission": "String",
                "balanceBefore": "String",
                "balanceAfter": "String"
            }
        ],
        "userSwapCommission": "Null/String",
        "uniqueUserId": "String",
        "statusName": "String",
        "status": "Integer",
        "createDate": "String",
        "modifiedDate": "String",
        "type": "String",
        "balanceBefore": "String",
        "balanceAfter": "String"
    }
]

Response JSON attributes:

"id"

String

Unique identifier

"receiveMonetary"

String

Received currency

"receiveAmount"

String

Received amount

"userSwapCommission"

String

User swap commission

"uniqueUserId"

String

Unique User ID

"status"

Integer

Swap status code

"statusName"

String

Swap status description

"createDate"

String

Creation date

"modifiedDate"

String

Modified date

"type"

String

Swap type (Auto or Manual)

"balanceBefore"

String

Balance of received monetary before swap

"balanceAfter"

String

Balance of received monetary after swap

"send"

Array

Sent currencies details

"send[0].monetary"

String

Sent currency

"send[0].amount"

String

Sent amount

"send[0].amountWithRateCommission"

String

Amount with commission

"send[0].rate"

String

Rate

"send[0].rateCommission"

String

Rate commission

"send[0].rateWithCommission"

String

Rate with commission

"send[0].balanceBefore"

String

Balance of send monetary before swap

"send[0].balanceAfter"

String

Balance of send monetary after swap

Last updated