ratesInDirection

Returns rates in a certain direction

GET /trades/ratesInDirection

Headers

NameValue

Content-Type

application/json

Y_API_KEY

Public API Key

Signature

HMAC SHA256 of Body

Body

NameTypeDescription

direction

string

Direction

commission_crypto_to_rub

float

Additional commission in percent which is considered as your profit in sbp/sber exchange, courses will be issued with it taken into account, default value 0.5

commission_crypto_to_crypto

float

Additional commission in percent which is considered as your profit in exchange with swap, courses will be issued with it taken into account, default value 0.5

exch_type

string

or (default yellow)

Response

{
  "currency": "USDT",
  "name": "Tether",
  "withdraw_networks": [
    {
      "network": "TON",
      "fee": 0.1,
      "min_withdraw": 1
    },
    {
      "network": "ARBITRUM",
      "fee": 0.5,
      "min_withdraw": 1
    },
    {
      "network": "TRC20",
      "fee": 1.7,
      "min_withdraw": 1
    },
    {
      "network": "SOL",
      "fee": 0.2,
      "min_withdraw": 10
    },
    {
      "network": "AVALANCHE",
      "fee": 0.01,
      "min_withdraw": 1
    },
    {
      "network": "BEP20",
      "fee": 0.3,
      "min_withdraw": 1
    },
    {
      "network": "POLYGON",
      "fee": 0.01,
      "min_withdraw": 0.5
    },
    {
      "network": "ERC20",
      "fee": 3.12,
      "min_withdraw": 10
    }
  ],
  "deposit_networks": [
    {
      "network": "BEP20",
      "fee": 0,
      "min_deposit": 0.5
    },
    {
      "network": "ERC20",
      "fee": 0,
      "min_deposit": 1
    },
    {
      "network": "ARBITRUM",
      "fee": 0,
      "min_deposit": 1
    },
    {
      "network": "TON",
      "fee": 0,
      "min_deposit": 1
    },
    {
      "network": "SOL",
      "fee": 0,
      "min_deposit": 1
    },
    {
      "network": "TRC20",
      "fee": 0,
      "min_deposit": 1
    },
    {
      "network": "AVALANCHE",
      "fee": 0,
      "min_deposit": 1
    },
    {
      "network": "POLYGON",
      "fee": 0,
      "min_deposit": 0.5
    }
  ],
  "conversion_rates": {
    "VERSE": 6786.31034482,
    "AVAX": 0.04228685,
    "TON": 0.15072143,
    "SOL": 0.00687449,
    "DASH": 0.03761525,
    "SBERRUB": 91.07,
    "SBPRUB": 90.69,
    "USDT": 0.985,
    "BCH": 0.00281952,
    "XMR": 0.00606967,
    "USDC": 0.98450725,
    "ETH": 0.00037345,
    "TRX": 6.39385965,
    "BNB": 0.00169863,
    "DOGE": 9.2761595,
    "DAI": 0.98460541,
    "BTC": 0.00001614,
    "LTC": 0.01548411,
    "MATIC": 1.88580874
  }
}

Example

const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Y_API_KEY: 'Your API Key',
    Signature: '02fe657ed8405c521fb3d5e3fd9ef7ff92f849c9ab976dcbe25e6ec4aacae0ed'
  },
  body: '{"direction":"USDT"}'
};

fetch('https://api.yellowchanger.com/trades/ratesInDirection', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));

Last updated