Thedex
  • Introduction
    • Merchant Payment Gateway
    • Currencies and networks
    • Confirmations and limits
  • Documentation
    • API Overview
    • Invoices
      • Create full invoice
      • Define full invoice crypto-currency
      • Create quick crypto invoice
      • Create quick fiat invoice
      • Get Invoice
      • Get invoices
      • Create static wallet
      • Get static wallet
      • Deprecated
        • Create quick invoice
    • Payouts
      • Create a payout
      • Create fiat-to-crypto payout
      • Get payout
      • Get payouts
    • Swaps
      • Get swaps
    • Balances
      • Get all user balances
    • Informational
      • Get status definitions for Invoice and payout
      • Get active crypto and fiat currencies
      • Get cryptocurrency to fiat-currency rate
      • Get fiat currency amount limits on invoice creation
      • Get fiat currency amount limits on payout creation
      • Get cryptocurrency amount limits on invoice creation
      • Get cryptocurrency amount limits on payout creation
      • Get Invoice creation ways
    • Commissions
      • Get payout commissions
      • Get invoice commissions
    • Merchant Preferences
      • Get merchant wallet whitelist
      • Add wallet to whitelist
      • Remove wallet to whitelist
  • E-Commerce plugins
    • WHMCS
Powered by GitBook
On this page
  1. Documentation
  2. Swaps

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

PreviousSwapsNextBalances

Last updated 3 months ago