Skip to content

Conversation

@saucepoint
Copy link

Added info.spot_asset_ctx("UBTC", "USDC") which returns a spot asset context:

{
    dayNtlVlm: float string,
    markPx: float string,
    midPx: Optional(float string),
    prevDayPx: float string,
    circulatingSupply: float string,
    coin: str
}

Under the hood, it calls /info, {type: "spotMetaAndAssetCtxs"} and does client-side filters & joins between spot metadata (tokens & markets) and context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant