agent.data exposes ten read-only methods, named after their circuit data commands in camel
case. Data commands defines each command’s parameters, rows and conventions,
using the same groups and order as CLI help.
Observation reads return { rows, age }. assets returns identity as { rows, nextCursor }
(null on the last page), without age or maxAge. Query fields cross the wire as strings:
write a numeric maxAge as "120". Repeatable parameters accept one value or an array:
venueSymbol on market commands and assets, and asset on revenue and volumes.
Discovery
Resolve identifiers withassets, then inspect listed markets with markets:
asset is an assets row’s id, minted per database. Resolve it at runtime; never hardcode it
across environments or substitute a symbol. To walk assets, keep the same filters and pass
nextCursor back until it is null:
Prices and history
lookback, a command that accepts it answers its newest observation per key;
asOf reads history. markets uses lookback only for its windowed figures and takes no asOf.
Prices from marks are display and accounting facts only. Transaction execution rechecks live
facts independently.
Derivatives
lookback for current funding rates and open interest.
Fundamentals
Use an asset ID resolved throughassets:
sortBy returns one row per asset carrying its window sum and observedDayCount.
order defaults to descending; limit bounds the ranking. Omit asset to rank the full set.
Revenue carries fees, total and holders side by side; sortBy selects the ranking field.
ApiError; catch only for a real alternative or added context.