# OTC Buy Rates

## Fetch LINK OTC Rates

{% hint style="info" %}
Use this endpoint to fetch our OTC buy rates
{% endhint %}

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" lineNumbers="true" %}

```shell
curl --request GET \
     --url https://lobster-app-whutt.ondigitalocean.app/otc/buy  \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'ngnc-sec-key: NGNC_SECRET_KEY' \
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code overflow="wrap" lineNumbers="true" %}

```javascript
const options = {
  method: 'GET',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    'ngnc-sec-key': 'NGNC_SECRET_KEY',
  },
  
};

fetch('https://lobster-app-whutt.ondigitalocean.app/otc/buy', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code overflow="wrap" lineNumbers="true" %}

```python
import requests

url = "https://lobster-app-whutt.ondigitalocean.app/otc/buy"

headers = {
    "accept": "application/json",
    "content-type": "application/json",
    "ngnc-sec-key": "NGNC_SECRET_KEY"
}

response = requests.get(url, json=payload, headers=headers)

print(response.text)
```

{% endcode %}
{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://lobster-app-whutt.ondigitalocean.app/otc/buy`&#x20;

{% tabs %}
{% tab title="200: OK Fetch Successfull" %}

```json
{
    "USD": 743.3,
    "GBP": 935.1,
    "EUR": 803.6,
    "TRY": 44.1,
    "CNY": 90,
    "CHF": 831.4,
    "CAD": 589,
    "AED": 160,
    "KES": 6.4
}
```

{% endtab %}
{% endtabs %}
