crypto-lake / lake-api

Python API for accessing Lake high frequency tick trades & order book data
https://crypto-lake.com/
Apache License 2.0
24 stars 3 forks source link

Candles data can't request for cnSOL-USDC and tSOL-USDC #6

Closed 6094132 closed 9 months ago

6094132 commented 10 months ago

Description

I can't download candles data for cnSOL-USDC and tSOL-USDC

What I Did

Paste the command(s) you ran and the output.
trades = lakeapi.load_data(
            table="candles",
            start=datetime.datetime.now() - datetime.timedelta(days=2),
            end=None,
            symbols=["tSOL-USDC"],
            exchanges=None,
        )

trades = lakeapi.load_data(
            table="candles",
            start=datetime.datetime.now() - datetime.timedelta(days=2),
            end=None,
            symbols=["cnSOL-USDC"],
            exchanges=None,
        )
If there was a crash, please include the traceback here.

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3548, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in trades = lakeapi.load_data( ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/lakeapi/main.py", line 124, in load_data assert symbols[0].upper() == symbols[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

leftys commented 10 months ago

Check out our fix in version 0.12.1. Those two pairs have however tiny volume and have been removed from our dataset recently. We have added another staked SOL pairs instead. We have the best coverage for those four pairs: SOL-USDC,ETH-USDC,USDT-USDC,MNGO-USDC, so I recommend to stick with those when analyzing openbook dex. Let me know if you have further issues.