Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

PairId

A perps pair identifier. NewType("PairId", str) — at runtime it is a plain str.

Definition

PairId = NewType("PairId", str)

Construction

from dango.utils.types import PairId
 
pair = PairId("perp/ethusd")

Notes

  • Dango pair ids are lowercase strings with the prefix perp/ and the suffix usd (every pair settles in USD). Examples: perp/ethusd, perp/btcusd, perp/solusd.
  • Use Info.pair_params to enumerate the configured pairs.

See also

  • Addr — sibling identifier alias