Exchange rates

The system provides an API, which serves exchange rates.

Returns a converted amount.

get

Returns a converted amount to the specified currency formatted as a string.

Query parameters
amountanyOptional
  • The amount to convert (optional). Can be a number or string representation. Defaults to 1.
Default: 1
targetstring · enumRequired

Represents all currencies in the payment processing system.

Used to specify the currency of accounts, exchange rates, and transactions in the payment processing system.

It provides a controlled and standardized list of supported currencies for all transactions and balances in the payment processing system.

New currencies can be added to the payment processing system as additional members.

Supported cryptocurrencies:

  • BNB - Binance Coin
  • bUSDT - Tether (pegged to USD), issued on BNB Smart Chain network (BEP20 token)
  • BTC - Bitcoin
  • ETH - Ether
  • eUSDC - USD Coin (pegged to USD), issued on Ethereum network (ERC20 token)
  • eUSDT - Tether (pegged to USD), issued on Ethereum network (ERC20 token)
  • FTN - Fasttoken
  • POL - POL
  • pUSDC - USD Coin (pegged to USD), issued on Polygon network (ERC20 token)
  • SOL - SOL
  • sUSDT - Tether (pegged to USD), issued on Solana network (SPL token)
  • tUSDC - USD Coin (pegged to USD), issued on Tron network (TRC20 token)
  • tUSDT - Tether (pegged to USD), issued on Tron network (TRC20 token)
  • wpUSDC - wrapped USD Coin (pegged to USD), issued on Polygon network (ERC20 token)
  • wpUSDT - wrapped Tether (pegged to USD), issued on Polygon network (ERC20 token).

Supported fiat currencies:

  • AZN - Azerbaijani Manat
  • BDT - Bangladeshi Taka
  • EUR - Euro
  • GBP - Pound Sterling
  • INR - Indian Rupee
  • JPY - Japanese Yen
  • KES - Kenyan Shilling
  • PKR - Pakistani Rupee
  • RUB - Russian Ruble
  • TRY - Turkish Lira
  • USD - United States Dollar
  • UZS - Uzbekistani Som.
Possible values:
sourcestring · enumRequired

Represents all currencies in the payment processing system.

Used to specify the currency of accounts, exchange rates, and transactions in the payment processing system.

It provides a controlled and standardized list of supported currencies for all transactions and balances in the payment processing system.

New currencies can be added to the payment processing system as additional members.

Supported cryptocurrencies:

  • BNB - Binance Coin
  • bUSDT - Tether (pegged to USD), issued on BNB Smart Chain network (BEP20 token)
  • BTC - Bitcoin
  • ETH - Ether
  • eUSDC - USD Coin (pegged to USD), issued on Ethereum network (ERC20 token)
  • eUSDT - Tether (pegged to USD), issued on Ethereum network (ERC20 token)
  • FTN - Fasttoken
  • POL - POL
  • pUSDC - USD Coin (pegged to USD), issued on Polygon network (ERC20 token)
  • SOL - SOL
  • sUSDT - Tether (pegged to USD), issued on Solana network (SPL token)
  • tUSDC - USD Coin (pegged to USD), issued on Tron network (TRC20 token)
  • tUSDT - Tether (pegged to USD), issued on Tron network (TRC20 token)
  • wpUSDC - wrapped USD Coin (pegged to USD), issued on Polygon network (ERC20 token)
  • wpUSDT - wrapped Tether (pegged to USD), issued on Polygon network (ERC20 token).

Supported fiat currencies:

  • AZN - Azerbaijani Manat
  • BDT - Bangladeshi Taka
  • EUR - Euro
  • GBP - Pound Sterling
  • INR - Indian Rupee
  • JPY - Japanese Yen
  • KES - Kenyan Shilling
  • PKR - Pakistani Rupee
  • RUB - Russian Ruble
  • TRY - Turkish Lira
  • USD - United States Dollar
  • UZS - Uzbekistani Som.
Possible values:
directionstring · enumOptional
  • The direction to convert value. Defaults to toTarget.
Default: toTargetPossible values:
invoiceIdstringOptional
  • The invoice id for fixed invoices rates.
Responses
200

Ok

application/json
get
GET /api/v2/exchange/rate?target=USDC&source=USDC HTTP/1.1
Host: api.xgateway.tech
Accept: */*
{
  "data": "0.00001668",
  "success": true
}

Last updated