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
    • WooCommerce (WordPress)
Powered by GitBook
On this page
  1. Documentation
  2. Informational

Get cryptocurrency to fiat-currency rate

Lists crypto to fiat-currency rates.

POST https://app.thedex.cloud/api/v1/info/user/currencies/crypto

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

nonce*

String

request*

String

{
   [
      {
         "monetary": "String",
         "rates":[
            {
               "fiatCurrency": "String",
               "rate": "BigDecimal"
            }
         ]
      }
   ]
}

Example:

{
   [
      {
         "monetary":"BTC_BITCOIN",
         "rates":[
            {
               "fiatCurrency":"USD",
               "rate":"22890.06000000"
            },
            {
               "fiatCurrency":"EUR",
               "rate":"20601.05400000"
            },
            {
               "fiatCurrency":"UAH",
               "rate":"922469.41800000"
            }
         ]
      },
      {
         "monetary":"ETH_ETHEREUM",
         "rates":[
            {
               "fiatCurrency":"USD",
               "rate":"1571.64000000"
            },
            {
               "fiatCurrency":"EUR",
               "rate":"1414.47600000"
            },
            {
               "fiatCurrency":"UAH",
               "rate":"63337.09200000"
            }
         ]
      }
   ]
}

Request curl:

curl --location 'https://app.thedex.cloud/api/v1/info/user/currencies/crypto' \
--header 'X-EX-APIKEY: <string>' \
--header 'X-EX-PAYLOAD: <string>' \
--header 'X-EX-SIGNATURE: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
  "nonce": "<string>",
  "request": "<string>"
}'

Response JSON attributes:

"monetary"

String

"rates"

Object array

Array of fiat currency rates.

"fiatCurrency"

String

"rate"

BigDecimal

"monetary" to "fiatCurrency" rate.

PreviousGet active crypto and fiat currenciesNextGet fiat currency amount limits on invoice creation

Last updated 6 months ago

The pay-currency (also mentions as crypto-currency) name is used as the title of fiat currency rates. Reach out to accessed values to define attributes by link: attribute "payCurrencies"

Fiat currency. Reach out to accessed values to define attributes by link: attribute "fiatCurrencies"

/api/v1/info/currencies
/api/v1/info/currencies