> For the complete documentation index, see [llms.txt](https://ninjapay.gitbook.io/ninjapay-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjapay.gitbook.io/ninjapay-api-docs/coming-soon/api-reference-pro/get-prices.md).

# Get Prices

Request price info in realtime. The request needs to provide a price pair for specific asset.

#### **Method**

```

GET https://prod.ninjapay.me/sapi/v1/price

```

#### **Parameters**

**`pricePair?: string`** // "btcusd", "btcinr" and "usdinr" supported currently (optional)

#### **Response**

```json
{"btc_usd": <int>, "btc_inr": <int>, "usd_inr": <int>} // Dont pass any body to get all three pairs.
```

#### **Example**

```jsx

const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'API_KEY'
  },
  body: '{"pricePair":"btcinr"}'
};

fetch('https://prod.ninjapay.me/sapi/v1/price', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  
```
