Get Recent Spreads
GET/public/Spread
Returns the last ~200 top-of-book spreads for a given pair
Request
Query Parameters
pair stringrequired
Asset pair to get data for
Example: XBTUSD
since integer
Returns spread data since given timestamp. Optional, intended for incremental updates within available dataset (does not contain all historical spreads).
Example: 1678219570
Responses
- 200
Spread data retrieved.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- string
- integer
- ]
result object
last integer
ID to be used as since when polling for new spread data
property name* SpreadData
Array of spread entries
[int <time>, string <bid>, string <ask>]
type
items object
oneOf
string
integer
error string[]
{
"error": [],
"result": {
"XXBTZUSD": [
[
1688671834,
"30292.10000",
"30297.50000"
],
[
1688671834,
"30292.10000",
"30296.70000"
],
[
1688671834,
"30292.70000",
"30296.70000"
]
],
"last": 1688672106
}
}
Loading...