pair_param
Per-pair parameters. Returns None if the pair is not configured.
Drives every pre-trade check: tick_size for price alignment, min_order_size
for dust rejection, max_abs_oi for the per-side OI cap, the IM/MM ratios for
margin, max_abs_funding_rate for the funding clamp, and bucket_sizes for
liquidity depth queries. See protocol book: perps/7-risk for calibration
guidance.
Signature
def pair_param(self, pair_id: PairId) -> PairParam | NoneExample
from dango.info import Info
from dango.utils.constants import MAINNET_API_URL
from dango.utils.types import PairId
info = Info(MAINNET_API_URL, skip_ws=True)
param = info.pair_param(PairId("perp/ethusd"))
if param is not None:
print(param["tick_size"], param["bucket_sizes"])Parameters
pair_id — PairId. The pair identifier (e.g. "perp/ethusd").
Returns
PairParam | None — TypedDict with per-pair configuration. None if the pair is not configured. See PairParam for the full field list.
See also
pair_params— enumerate all pairspair_state— runtime state counterpart