Skip to content
CTRL K
    Naming conventions

    Naming conventions

    How Nutrimatic names SDK read methods. The method name tells you what you get back.

    List vs get

    PatternMeaningExample
    list{Entities}(…)A collection (0..N items)catalog.listInstruments()
    get{Entity}(…)One item by canonical ID or keycatalog.getInstrument(id)
    get{Entity}Profile(…)Editorial metadata (separate from identity)catalog.getInstrumentProfile(id)

    Rules:

    • List methods always include the word list — never rely on plural method names alone (instruments() is not used).
    • Get methods always start with get plus the resource name.
    • Market data and live state use get*View, get*State, or getChart in telemetry, venues, or easy.read — not in catalog.

    By module

    catalog

    EntityListGet oneProfile
    LedgerlistLedgers()
    InstrumentlistInstruments()getInstrument(id)getInstrumentProfile(id)
    VenuelistVenues()getVenue(id)
    DeploymentgetDeployment(ledgerScope)

    easy.read

    EntityListGet one
    PairlistPairs()getPair({ pair })

    Other easy.read methods (getChart, getTokenPrice, getPoolView) return market views, not catalog entries.

    telemetry / venues

    No list methods — discover IDs via catalog or easy.read, then call get* by ID.

    Units

    Basis points (bps)

    Slippage fields such as slippageBps use basis points:

    ValuePercent
    10.01%
    500.50%
    1001%

    Defaults: on QuoteRequest and liquidity add/remove, omit slippageBps → Nutrimatic uses 50. On SwapRequest, omit it → reuse the quote’s slippageBps (you may only pass a tighter value).

    Write costs

    Swap quotes may include QuoteCost lines on Quote.costs so you can show a breakdown before the user swaps. Other writes can still cost money without that pre-execute list — Fees and costs.

    Time units

    WhereUnit
    Candle time, feed event time, chart/feed cursors (after / before)Unix time in seconds
    Write fields: expiresAt, deadline, SignRequest.expiresAt, SettlementStatus.updatedAtUnix time in milliseconds

    Do not mix them — a chart after value is not the same scale as a quote expiresAt.

    Related

    GoalStart here
    Object shapesTypes
    Cost breakdown on swap quotesFees and costs
    Every read methodRead operations
    Write module mapWrite operations