Markets
Pair trade candles
Path Parameters
base*string
native or exact CODE:ISSUER. Resolve SAC addresses through /v1/assets/{asset} first. Symbol-only identifiers are ambiguous.
quote*string
native or exact CODE:ISSUER. Resolve SAC addresses through /v1/assets/{asset} first. Symbol-only identifiers are ambiguous.
Query Parameters
from?integer
Inclusive Unix seconds. Supply with to.
Range
0 <= value <= 4294967295to?integer
Exclusive Unix seconds. Supply with from.
Range
0 <= value <= 4294967295resolution?integer
Default
300Value in
- 60
- 300
- 900
- 3600
- 14400
- 86400
limit?integer
Maximum time bins in the requested window. Oversized windows are rejected, never silently truncated.
Range
1 <= value <= 200Default
200min_ledger?integer
Range
2 <= value <= 4294967295max_ledger?integer
Range
2 <= value <= 4294967295Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/markets/native/native/candles"{ "base": "native", "quote": "native", "resolution": 60, "from": 0, "to": 0, "candles": [ { "timestamp": 0, "open": "string", "high": "string", "low": "string", "close": "string", "baseVolume": "string", "quoteVolume": "string", "tradeCount": 1, "firstTradeAt": 0, "lastTradeAt": 0 } ], "source": "history_trades", "venues": [ "classic-dex" ], "precision": "source_float64", "generatedAt": "2019-08-24T14:15:22Z", "asOf": 0, "coverage": { "minLedger": 2, "maxLedger": 2, "firstSourceTime": 0, "lastSourceTime": 0, "ledgerRangeComplete": true, "timeRangeComplete": true, "status": "complete", "emptyBuckets": "omitted" }}