Skip to content

Commit e87806e

Browse files
authored
feat(hl/types): Update SpotTokenInfo to reflect current API responses (#47)
1 parent 0046fce commit e87806e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyperliquid/utils/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
SpotAssetInfo = TypedDict("SpotAssetInfo", {"name": str, "tokens": List[int], "index": int, "isCanonical": bool})
2626
SpotTokenInfo = TypedDict(
2727
"SpotTokenInfo",
28-
{"name": str, "szDecimals": int, "weiDecimals": int, "index": int, "tokenId": str, "isCanonical": bool},
28+
{"name": str, "szDecimals": int, "weiDecimals": int, "index": int, "tokenId": str, "isCanonical": bool, "evmContract": Optional[str], "fullName": Optional[str]},
2929
)
3030
SpotMeta = TypedDict("SpotMeta", {"universe": List[SpotAssetInfo], "tokens": List[SpotTokenInfo]})
3131
SpotAssetCtx = TypedDict(

0 commit comments

Comments
 (0)