Skip to main content
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 with assets, 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

Without 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

Omit lookback for current funding rates and open interest.

Fundamentals

Use an asset ID resolved through assets:
For rankings, 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.
Failures throw ApiError; catch only for a real alternative or added context.