Onviction AgentOnviction Agent home

Cost-aware data strategy

The economics of the Nansen API, and how the pipeline is shaped around them.

The premise

Onviction Agent is designed around the economics of the Nansen API. Credit costs vary significantly across endpoints, so the investigation pipeline is deliberately structured to spend credits where they provide the most research value.

This is part of the product architecture rather than an implementation detail. The goal is to maximise evidential value per API credit, and that objective shapes which endpoints exist in the research path at all.

Cost across the surface

Credit cost by endpoint

Read from the endpoint registry the client enforces at runtime.

search/general
free
token-screener
1 cr
tgm/flow-intelligence
1 cr
tgm/flows
1 cr
tgm/who-bought-sold
1 cr
tgm/dex-trades
1 cr
tgm/token-information
1 cr
tgm/token-ohlcv
1 cr
profiler/address/pnl-summary
1 cr
tgm/holders
5 cr
tgm/indicators
5 cr
tgm/historical-token-flow-summary
5 cr
smart-money/holdings
5 cr
tgm/pnl-leaderboard
5 cr
tgm/historical-top-holders
25 cr
profiler/address/labels
100 cr
agent/expert
750 cr
Always availableOn escalationOpt-inRefusedbar length is logarithmic

The spread exceeds 500×. A naive implementation reaches for the richest-sounding endpoint and discovers it has spent 750 credits on a single call. The registry makes cost a property of the endpoint that the client consults before every request, rather than something a developer is expected to remember.

Tiered request strategy

  • Low-cost endpoints run as the default investigation layer.
  • Mid-cost endpoints are invoked when the initial evidence is inconclusive.
  • High-cost endpoints require explicit conditions before they are used.
  • Blocked or non-redistributable endpoints are excluded from the public research path entirely.
TierCostWhen it runs
Low0 to 1 creditsAlways
Mid5 creditsOnly when the cheap tier is inconclusive
High25 creditsExplicit opt-in per call
Blockednever spentThrows; never reached

The blocked tier matters more than it looks. Endpoints that are ruinously expensive or prohibited for display do not merely go uncalled by convention. The client raises rather than calling them, so avoidance is structural rather than a matter of discipline.

The request ledger

Every live Nansen request is recorded with its endpoint, request id, credit usage, status, latency and remaining balance. Rejected requests are billed as zero credits, and cache or fixture replays do not count as live network calls.

Live consumption

Measured from the ledger on this instance, right now: Live

Live calls

8,919

real network requests only

Credits consumed

8,587

0.96 per call

Credits remaining

11,842

from the response header

Zero-cost replays

54

never counted as calls

An average below the headline rate is the tiering working. The workhorse endpoints are the cheap ones, and the expensive tier is reached only on purpose.