# allRates

> GET /trades/allRates returns every available crypto exchange rate. Headers, response format and JavaScript and Python examples.

Source: https://docs.yellowchanger.com/allRates

Returns all possible exchange rates

**GET** `https://api.yellowchanger.com/trades/allRates`

## Headers

| Name | Value |
| --- | --- |
| Content-Type | application/json |
| Y_API_KEY | Public API Key |
| [Signature](https://docs.yellowchanger.com/signature.md) | HMAC SHA256 of Body |

## Body

| Name | Type | Description |  |  |  |  |  |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 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 |  | yellow | or | green |  |  |

## Response

**200**

```json
[
          {
                    "currency": "SOL",
                    "name": "Solana",
                    "withdraw_networks": [
                              {
                                        "network": "SOL",
                                        "fee": 0.01,
                                        "min_withdraw": 0.02
                              }
                    ],
                    "deposit_networks": [
                              {
                                        "network": "SOL",
                                        "fee": 0,
                                        "min_deposit": 0.001
                              }
                    ],
                    "conversion_rates": {
                              "SOL": 0.985,
                              "TON": 51.72644835,
                              "AVAX": 7.56222624,
                              "BCH": 0.59791723,
                              "BTC": 0.0020142,
                              "XMR": 0.88349044,
                              "LTC": 1.87284736,
                              "DASH": 7.66945625,
                              "USDC": 196.41664655,
                              "ETH": 0.07125885,
                              "TRX": 876.11816107,
                              "BNB": 0.3468791,
                              "POL": 629.89438563,
                              "DOGE": 760.58758813,
                              "DAI": 196.73075616,
                              "SBERRUB": 19083.19,
                              "SBPRUB": 19112.05,
                              "USDT": 196.33808
                    }
          },
          {
                    "currency": "TON",
                    "name": "TON",
                    "withdraw_networks": [
                              {
                                        "network": "TON",
                                        "fee": 0.1,
                                        "min_withdraw": 0.5
                              }
                    ],
                    "deposit_networks": [
                              {
                                        "network": "TON",
                                        "fee": 0,
                                        "min_deposit": 0.1
                              }
                    ],
                    "conversion_rates": {
                              "SOL": 0.01875684,
                              "TON": 0.985,
                              "AVAX": 0.14400356,
                              "BCH": 0.01138583,
                              "BTC": 0.00003836,
                              "XMR": 0.01682385,
                              "LTC": 0.03566366,
                              "DASH": 0.14604549,
                              "USDC": 3.74026072,
                              "ETH": 0.00135695,
                              "TRX": 16.68346508,
                              "BNB": 0.00660544,
                              "POL": 11.99475297,
                              "DOGE": 14.48347602,
                              "DAI": 3.74624164,
                              "SBERRUB": 363.39,
                              "SBPRUB": 363.94,
                              "USDT": 3.7387645
                    }
          },
          {
                    "currency": "AVAX",
                    "name": "Avax C-Chain",
                    "withdraw_networks": [
                              {
                                        "network": "AVALANCHE",
                                        "fee": 0.04,
                                        "min_withdraw": 0.08
                              }
                    ],
                    "deposit_networks": [
                              {
                                        "network": "AVALANCHE",
                                        "fee": 0,
                                        "min_deposit": 0.00000546
                              }
                    ],
                    "conversion_rates": {
                              "SOL": 0.12829886,
                              "TON": 6.73750691,
                              "AVAX": 0.985,
                              "BCH": 0.07788031,
                              "BTC": 0.00026235,
                              "XMR": 0.11507697,
                              "LTC": 0.24394333,
                              "DASH": 0.99896699,
                              "USDC": 25.58378817,
                              "ETH": 0.00928166,
                              "TRX": 114.11671107,
                              "BNB": 0.04518192,
                              "POL": 82.04541226,
                              "DOGE": 99.06854808,
                              "DAI": 25.62470211,
                              "SBERRUB": 2485.64,
                              "SBPRUB": 2489.39,
                              "USDT": 25.573555
                    }
          }
]
```

**40X**

```json
{
          "statusCode": 400,
          "message": "Some error message"
}
```

## Example

**JavaScript**

```javascript
const fetch = require("node-fetch");
let url = "https://api.yellowchanger.com/trades/allRates",
          options = {
                    method: "GET",
                    headers: {
                              "Content-Type": "application/json",
                              Y_API_KEY: "Your API Key",
                    },
          };
fetch(url, options)
          .then((e) => e.json())
          .then((e) => console.log(e))
          .catch((e) => console.error("error:" + e));
```

**Python**

```python
import requests
url='https://api.yellowchanger.com/trades/allRates'
headers={'Content-Type':'application/json','Y_API_KEY':'Your API Key'}
response=requests.request('GET',url,headers=headers)
print(response.text)
```

## Related

- [ratesInDirection](https://docs.yellowchanger.com/ratesInDirection.md): Returns rates in a certain direction
- [destinationsList](https://docs.yellowchanger.com/destinationsList.md): Returns all possible exchange destinations
- [calculateTrade](https://docs.yellowchanger.com/calculateTrade.md): Returns exchange rate and details for a specific currency pair
- [createTrade](https://docs.yellowchanger.com/createTrade.md): Create new trade and returns trade info

---

All methods: https://docs.yellowchanger.com/introduction.md · Index: https://docs.yellowchanger.com/llms.txt · Whole documentation in one file: https://docs.yellowchanger.com/llms-full.txt
