# NGNC Rates

## Fetch LINK Rates

{% hint style="info" %}
Use this endpoint to fetch our ngnc - usdc rates
{% endhint %}

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

```sh
curl --request GET \
     --url https://api.ngnc.online/rates/v1/ngnc-usdc \
     --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://api.ngnc.online/rates/v1/ngnc-usdc', 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://api.ngnc.online/rates/v1/ngnc-usdc"

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://api.ngnc.online/rates/v1/ngnc-usdc`&#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 %}
