Mini-project collecting main HyperLiquid BTC perp data with QuestDB storage.
- A local QuestDB instance
- A
config.json
file with mandatorysecret_key
andaccount_address
fields placed in thesrc/hyperliquide
folder. Example:
{
"comments": "api wallet",
"secret_key": "0x00000000000000000000000000000000000000000000000000000000",
"account_address": "0x0000000000000000000000000000000",
"multi_sig": {
"authorized_users": [
{
"comment": "signer 1",
"secret_key": "",
"account_address": ""
},
{
"comment": "signer 2",
"secret_key": "",
"account_address": ""
}
]
}
}
Set DURATION
in main.py
then run:
poetry run python src/hyperliquide/main.py
To consume HyperLiquid Mainnet data, update common/__init__.py
with the following:
hl_setup = setup(base_url=constants.MAINNET_API_URL, skip_ws=False)