# Exchanges

## Get Exchanges

<mark style="color:blue;">`GET`</mark> `https://api.abyiss.com/v2/cex/exchanges`

Returns an array of all supported exchanges in the form of market objects.

#### Query Parameters

| Name                                     | Type   | Description         |
| ---------------------------------------- | ------ | ------------------- |
| apiKey<mark style="color:red;">\*</mark> | string | Your Abyiss API Key |

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
[
    {
        "name":"Binance",
        "id":"binance"
    },
    {
        "name":"Binance US",
        "id":"binanceus"
    },
    {
        "name":"Coinbase Pro",
        "id":"coinbasepro"
    },
    {
        "name":"BitBay",
        "id":"bitbay"
    }
]
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized -- Invalid API Key" %}

```javascript
{
    "Unauthorized": "Invaild API Key"
}
```

{% endtab %}
{% endtabs %}

### **Copy & Paste Code**

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

```bash
curl -H "apiKey: API KEY" https://api.abyiss.com/v2/cex/exchanges
```

{% endtab %}

{% tab title="Python" %}

```python
from Abyiss import Abyiss

apiKey = "YOUR API KEY" 
client = Abyiss.Client(apiKey)

exchanges = client.getExchanges()

print(exchanges)
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
fetch("https://api.abyiss.com/v2/cex/exchanges?apiKey=*")
  .then(response => response.json())
  .then(data => console.log(data))
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
require('axios')
  .get("https://api.abyiss.com/v2/cex/exchanges?apiKey=*")
  .then(response => console.log(response))
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'net/http'
uri = URI("https://api.abyiss.com/v2/cex/exchanges?apiKey=*")
puts Net::HTTP.get(uri)
```

{% endtab %}
{% endtabs %}

### **Response Object**

Example URL: <https://api.abyiss.com/v2/cex/exchanges?apiKey=>

```json
{
    "name":"Binance",
    "id":"binance"
},
{
    "name":"Coinbase Pro",
    "id":"coinbasepro"
},
```

### Response Attributes

| Attribute Name | Data Type | Description                                |
| -------------- | --------- | ------------------------------------------ |
| name           | string    | The official name of the exchange.         |
| id             | string    | Unique exchange identifier used by Abyiss. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abyiss.com/crypto-api/rest-apis/exchanges.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
