# Get All Currency Pairs

<mark style="color:green;">**`GET`**</mark> `https://api.sfox.com/v1/markets/currency-pairs`

Retrieve a list of currency pairs available to trade in your account.

### Response Body

Each trading pair is represented as a key-value object where the key is the lowercase concatenated symbol (e.g., "btcusd") and contains detailed information about the trading pair. Each trading pair object contains the following fields:

<table><thead><tr><th width="232.20396600566573">Key</th><th>Description</th></tr></thead><tbody><tr><td><strong><code>formatted_symbol</code></strong></td><td>A human-readable representation of the trading pair using standard notation (e.g., <code>"BTC/USD"</code>). <br>Format:  <code>"{BASE}/{QUOTE}"</code> with uppercase symbols.</td></tr><tr><td><strong><code>symbol</code></strong></td><td>The lowercase concatenated version of the trading pair used as an identifier (e.g., <code>"btcusd"</code>). <br>Format: lowercase <code>"{base}{quote}"</code>.</td></tr><tr><td><strong><code>base</code></strong></td><td>The base currency of the trading pair (e.g., <code>"btc"</code>).</td></tr><tr><td><strong><code>quote</code></strong></td><td>The quote currency of the trading pair (e.g., <code>"usd"</code>)</td></tr></tbody></table>

### Responses

<details>

<summary><mark style="color:green;">200</mark></summary>

```json
{
    "btcusd": {
        "formatted_symbol": "BTC/USD",
        "symbol": "btcusd",
        "base": "btc",
        "quote": "usd"
    },
    "ethbtc": {
        "formatted_symbol": "ETH/BTC",
        "symbol": "ethbtc",
        "base": "eth",
        "quote": "btc"
    },
    "ltcbtc": {
        "formatted_symbol": "LTC/BTC",
        "symbol": "ltcbtc",
        "base": "ltc",
        "quote": "btc"
    }
}
```

</details>

### Example Requests

{% tabs %}
{% tab title="Shell" %}

```bash
curl -H 'Authorization: Bearer <API_TOKEN>' \ 
-H 'Content-Type: application/json' \
-X GET \
'https://api.sfox.com/v1/markets/currency-pairs'
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
const axios = require('axios');

axios({
  method: 'get',
  url: 'https://api.sfox.com/v1/markets/currency-pairs',
  headers: {
    'Authorization': 'Bearer <API_KEY>'
  }
}).then(response => {
  console.log(response)
}).catch(err => {
  console.error(err)
});
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

data = requests.get(
  "https://api.sfox.com/v1/markets/currency-pairs",
  headers={
    "Authorization": "Bearer <API_KEY>",
  }
)
print(data)
```

{% endtab %}
{% endtabs %}
