Last Aggregate
Get last aggregate returns the latest aggregate bar for a crypto pair.
Get Last Aggregate
GEThttps://api.adesic.com/v2/cex/{exchange}/{market}/lastaggregate/{aggregate size}
Returns an object with the latest aggregate or candlestick 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. |
| aggregate size* | string | Aggregate bar or candlestick time frame. (1m, 5m, 15m, 1h, 6h, 1d) |
Query Parameters
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
200: OK Success
response.json
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"timeframe": "1m",
"t": 1644515400000,
"o": 45203.6,
"h": 45216.72,
"l": 45183.93,
"c": 45200.37,
"v": 5.43995508
}Copy & Paste Code
cURL
cURL
curl -H "api-key: API KEY" https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/lastaggregate/1mResponse Object
Example URL: https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/lastaggregate/1m
response.json
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"timeframe": "1m",
"t": 1644515400000,
"o": 45203.6,
"h": 45216.72,
"l": 45183.93,
"c": 45200.37,
"v": 5.43995508
}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. |
| timeframe | string | Aggregate bar or candlestick time frame. (1m, 5m, 15m, 1h, 6h, 1d) |
| t | integer | Unix timestamp at the start of the aggregate. |
| o | float | The open or first price of the aggregate. |
| h | float | The highest price of the aggregate. |
| l | float | The lowest price of the aggregate. |
| c | float | The close or last price of the aggregate. |
| v | float | The volume or quantity traded within the aggregate. |