Stop Hand-Maintaining a List of 122 Asset Parameters
If you're building anything on Hyperliquid HIP-3's xyz dex, you eventually need maxLeverage, szDecimals, and isolated-margin flags for every asset. Most people hardcode these once and forget to update them — until a parameter changes and their bot silently miscalculates position sizing.
The fix: pull it live, not from memory
The HIP-3 Machine-Readable Asset Spec Library pulls the real parameters directly from the API for all 122 assets listed on the xyz dex, and compiles them into a single, versionable JSON file. No manual spec sheet, no stale hardcoded values.
import json
specs = json.load(open("hip3_asset_specs.json"))
print(specs["BTC"]["maxLeverage"])
That's the whole integration surface — one file, always current when you regenerate it.
A free sample of the JSON structure is up on Hugging Face if you want to see the shape before buying: https://huggingface.co/datasets/jalvart/hip3-asset-spec-sample
Get the full library ($9): https://theglitchlist.com/product/hip-3-machine-readable-asset-spec-library/?utm_source=devto&utm_medium=article&utm_campaign=n03_asset_spec
Requirements: Python 3.9+.
Top comments (0)