Spot API
The spot namespace provides typed queries for historical spot prices, volume, and trade counts.
APIs
| API | Description |
|---|---|
.price() | Selects OHLC price columns. |
.volume() | Selects coin or dollar volume columns. |
.trades() | Selects buy, sell, or total trade counts. |
.for() | Selects the exchanges and the coins or products to query. |
.over() | Selects the time window and resolution. |
Required scope
| Step | Property | Description |
|---|---|---|
.for() | exchanges | Restricts the exchanges. Every exchange is selected when omitted. |
.for() | coins / products | Targets Velo-aggregated coins, or exchange-native products. |
.over() | between / last | An explicit [begin, end) range, or a trailing duration. |
.over() | resolution | Sets the returned bucket size. |
Builder queries require exactly one target (either coins or products), one time range (between or last), and a resolution.