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

pair_states

Enumerate per-pair runtime states; paginated.

Signature

def pair_states(
    self,
    *,
    start_after: PairId | None = None,
    limit: int = 30,
) -> dict[PairId, PairState]

Example

from dango.info import Info
from dango.utils.constants import MAINNET_API_URL
 
info = Info(MAINNET_API_URL, skip_ws=True)
states = info.pair_states()
for pair_id, s in states.items():
    print(pair_id, s["funding_rate"])

Parameters

start_afterPairId | None, optional. Cursor for the next page. Default: None.

limitint, optional. Page size. Default: 30.

Returns

dict[PairId, PairState] — map of pair id to runtime state.

See also