-
Notifications
You must be signed in to change notification settings - Fork 481
Open
Description
def spot_meta_and_asset_ctxs(self) -> SpotMetaAndAssetCtxs:
"""Retrieve exchange spot asset contexts
POST /info
Returns:
[
{
universe: [
{
tokens: [int, int],
name: str,
index: int,
isCanonical: bool
},
...
],
tokens: [
{
name: str,
szDecimals: int,
weiDecimals: int,
index: int,
tokenId: str,
isCanonical: bool
},
...
]
},
[
{
dayNtlVlm: float string,
markPx: float string,
midPx: Optional(float string),
prevDayPx: float string,
circulatingSupply: float string,
coin: str
}
...
]
]
"""
return cast(SpotMetaAndAssetCtxs, self.post("/info", {"type": "spotMetaAndAssetCtxs"}))
While the Info class supports perp_dexs constructor argument, when I fetch spot_meta_and_asset_ctxs the dex is not passed in the payload, nor the method supports a dex argument
Metadata
Metadata
Assignees
Labels
No labels