Aggregates (Bars)
Get aggregates returns candlestick bars for a crypto pair.
Get Aggregates (Bars)
GEThttps://api.adesic.com/v2/cex/{exchange}/{market}/aggregates/{aggregate size}
Returns an object with the latest aggregates or candlesticks 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 |
| limit | string | Number of results per request. Maximum 50,000. (default 200) |
| since | number | Unix Timestamp from where you want the data to start. (Historical Data) |
200: OK Success
response.json
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"aggregates": [
{
"t": 1644496320000,
"o": 44714.52,
"h": 44770.05,
"l": 44714.52,
"c": 44751.17,
"v": 2.88395739
},
{
"t": 1644496380000,
"o": 44752,
"h": 44753.14,
"l": 44713.07,
"c": 44747.05,
"v": 10.80901469
}
]
}Copy & Paste Code
cURL
cURL
curl -H "api-key: API KEY" https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/aggregates/1mResponse Object
Example URL: https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/aggregates/1m
response.json
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"aggregates": [
{
"t": 1644496320000,
"o": 44714.52,
"h": 44770.05,
"l": 44714.52,
"c": 44751.17,
"v": 2.88395739
}
]
}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. |
| aggregates | array | Array of Aggregates |
| 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. |