Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deribit data source returns KeyError, process just hangs with no additional feedback #34

Open
ahaiong opened this issue Nov 26, 2023 · 0 comments

Comments

@ahaiong
Copy link
Contributor

ahaiong commented Nov 26, 2023

Describe the bug
Deribit collector errors with KeyError, container just hangs

To Reproduce
Vanilla Deployment of xnode or running the collector with Deribit CEX data source.
Platform V3

Expected behavior
It should pull data from the Deribit API

Screenshots
Traceback (most recent call last): File "/src/runner.py", line 84, in <module> main() File "/src/runner.py", line 78, in main run_connector(args.source, args.symbol) File "/src/runner.py", line 11, in run_connector connector = off_chain_mapping[source]( File "/src/l3_atom/data_source.py", line 218, in __init__ super().__init__(symbols=symbols) File "/src/l3_atom/data_source.py", line 58, in __init__ self.symbols = self.normalise_symbols(sym_list) File "/src/l3_atom/off_chain/deribit.py", line 35, in normalise_symbols symbol_type = 'perpetual' if t['settlement_period'] == 'perpetual' else t['kind'] KeyError: 'settlement_period'

Desktop (please complete the following information):
Container Tag: gdafund/collector:20230406.7
Xnode: V3

Additional context
Property tagging and release versioning would assist this project going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant