Exchange Rate
Exchange rates are taken from several sources such as:
Ticker
Ticker contains current Market Prices and exchanges rate API.
Request
- HTTP Method:
GET - URL:
https://apirone.com/api/v2/ticker?currency=btc
| Parameter | Type | Description | Required |
|---|---|---|---|
currency | string | Currency type (btc, ltc, bch, doge, trx, usdt@trx, usdc@trx, eth, usdt@eth, usdc@eth, bnb, usdt@bnb, usdc@bnb). You can specify multiple cryptocurrencies in request | |
fiat | string | Fiat currency (if you specify multiple cryptocurrencies, fiat parameter is required ) |
Request example
curl 'https://apirone.com/api/v2/ticker?currency=btc'Request example with fiat currency
curl 'https://apirone.com/api/v2/ticker?currency=btc&fiat=usd'Request example with multiple cryptocurrencies and fiat currency
curl 'https://apirone.com/api/v2/ticker?currency=btc,ltc&fiat=usd'Success Response Reference
- HTTP Status Code:
200 - Content Type:
application/json
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Currency symbol code ISO 4217 |
| amount | decimal | Exchange rate |
Response example
json
{
"aed": 206678.9716,
"afn": 4418186.4483,
"all": 5858642.659,
"amd": 29717200.6033,
"usd": 56716.8657
}Response example with fiat currency
json
{
"usd": 56716.8657
}Response example with multiple cryptocurrencies and fiat currency
json
{
"btc": {
"usd": 56816.0542
},
"ltc": {
"usd": 65.5183
}
}Error response
- HTTP Status Code:
400409429500503 - Content Type:
application/json
Playground
| Parameter | Experiment with a value |
|---|---|
| currency | |
| fiat |