Current Price
Get current price returns the real-time price of a crypto pair.
Get Current Price
GEThttps://api.adesic.com/v2/cex/{exchange}/{market}/currentprice
Returns an object with the real-time price of a crypto pair.
Path Parameters
| Name | Type | Description |
|---|---|---|
| exchange* | string | Unique exchange identifier used by Adesic. |
| market* | string | Unique Crypto Pair identifier used by the exchange. |
Query Parameters
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
200: OK Success
response.json
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"timestamp": "1644510051396",
"price": 45202.18
}Copy & Paste Code
cURL
cURL
curl -H "api-key: API KEY" https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/currentpriceResponse Object
Example URL: https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/currentprice
response.json
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"timestamp": "1644510051396",
"price": 45202.18
}Response Attributes
| Attribute Name | Data Type | Description |
|---|---|---|
| exchange | string | Unique identifier used by Adesic for the exchange. |
| market | string | Unique identifier used by the exchange for ticker. |
| timestamp | string | Unix timestamp of the current price. |
| price | float | The latest price of the crypto asset. |