hyperliquid-dex/hyperliquid-python-sdk

funding_history responds 500 error with PURR/USDC

Closed this issue · 1 comments

As stated on the title, the API responds 500 errors.
The issue is reproducable with the code below.
I tried to escape '/' but didn't work.

from hyperliquid.info import Info
from hyperliquid.utils.constants import MAINNET_API_URL
from datetime import datetime, timedelta

info = Info(MAINNET_API_URL, skip_ws=True)
startTime = int(datetime.timestamp(datetime.now() - timedelta(hours=1)) * 1000)
key = "PURR/USDC"
funding_history = info.funding_history(key, startTime=startTime)

Spot trading doesn't have funding. This is working as intended.