# Get exchange rates \[any currency to any currency]

## Fetch market rates

> Fetch the market rates for all specified currency pairs.

```json
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"https://api.finrax.com","description":"Generated server url"}],"paths":{"/v1/exchange/rates/market":{"get":{"summary":"Fetch market rates","description":"Fetch the market rates for all specified currency pairs.","operationId":"fetch-market-rates","parameters":[{"name":"fromCurrency","in":"query","description":"The comma-separated base currencies used to produce the currency pairs.","required":true,"explode":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["BCH","BNB","BTC","ETH","LINK","LTC","SOL","TRX","USDC","XLM","XRP","AED","ARS","AUD","BDT","BGN","BRL","CAD","CHF","CLP","CNY","CZK","DKK","EUR","GBP","HKD","HRK","HUF","IDR","ILS","INR","ISK","JPY","KES","KRW","MXN","MYR","NOK","NZD","PEN","PHP","PLN","QAR","RON","SEK","SGD","THB","TRY","USD","VND","ZAR"]}}},{"name":"toCurrency","in":"query","description":"The comma-separated quote currencies used to produce the currency pairs.","required":true,"explode":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["BCH","BNB","BTC","ETH","LINK","LTC","SOL","TRX","USDC","XLM","XRP","AED","ARS","AUD","BDT","BGN","BRL","CAD","CHF","CLP","CNY","CZK","DKK","EUR","GBP","HKD","HRK","HUF","IDR","ILS","INR","ISK","JPY","KES","KRW","MXN","MYR","NOK","NZD","PEN","PHP","PLN","QAR","RON","SEK","SGD","THB","TRY","USD","VND","ZAR"]}}}],"responses":{"200":{"description":"Returns the available rates for the requested currency pairs.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}}}}}}}}}
```

{% tabs %}
{% tab title="200: OK <https://payments.finrax.com/api/v1/exchange/rates/market?fromCurrency=BTC,ETH&toCurrency=USD,EUR>" %}

```javascript
{
   "ETH":{
      "EUR":"2258.7",
      "USD":"2386.15"
   },
   "BTC":{
      "EUR":"30086.5",
      "USD":"31784"
   }
}
```

{% endtab %}
{% endtabs %}
