const res = await fetch( `https://api.trusset.org/orderbooks/stocks/api/order-books/by-token/${tokenAddress}/daily-stats?range=3M`, { headers: { 'X-API-Key': 'trusset_your_key_here' } });const { data } = await res.json();if (!data.hasOrderbook) console.log('no book on this token');if (data.truncated) console.warn('series truncated at the scan limit');
Returns a day-by-day series for a base token rather than a single book. Every non-closed stock book your instance holds on that token contributes, and any pooled peers of those books contribute too, so the series describes the instrument as your venue sees it.The response always carries one entry per calendar day in the range, in UTC, including days with no activity. That keeps the series directly plottable without gap-filling on the client.
False when your instance holds no non-closed stock book on this token. orderbooks and stats are then empty and totals are zero.
array
The books that contributed, oldest first.
Show child attributes
string
Order book ID.
string
Display name.
string
Display symbol.
string
OFF_CHAIN or ON_CHAIN.
string
ACTIVE or PAUSED.
string
STOCK_TOKEN.
string
Quote token.
array
One entry per day in the range, oldest first.
Show child attributes
string
UTC day, YYYY-MM-DD.
integer
Orders submitted that day.
integer
Trades executed that day.
number
Base volume as a decimal number, already divided out of order book units.
number
Quote notional as a decimal number.
number
Highest trade price that day, or null.
number
Lowest trade price, or null.
number
First trade price, or null.
number
Last trade price, or null.
string
The range applied.
boolean
True when the underlying order or trade scan hit its 50,000-row ceiling, meaning the series understates a very busy instrument.
object
Show child attributes
integer
Orders across the range.
integer
Trades across the range.
number
Base volume across the range.
number
Quote notional across the range.
Prices and volumes here are decimal numbers, not order book unit strings. Everywhere else on this surface amounts are integer strings; this endpoint is the display series and is scaled for charting.
const res = await fetch( `https://api.trusset.org/orderbooks/stocks/api/order-books/by-token/${tokenAddress}/daily-stats?range=3M`, { headers: { 'X-API-Key': 'trusset_your_key_here' } });const { data } = await res.json();if (!data.hasOrderbook) console.log('no book on this token');if (data.truncated) console.warn('series truncated at the scan limit');
const res = await fetch( `https://api.trusset.org/orderbooks/stocks/api/order-books/by-token/${tokenAddress}/daily-stats?range=3M`, { headers: { 'X-API-Key': 'trusset_your_key_here' } });const { data } = await res.json();if (!data.hasOrderbook) console.log('no book on this token');if (data.truncated) console.warn('series truncated at the scan limit');