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

Error while parsing Coinbase Derivatives (FairX) exchange schema #24

Open
gaurang-lakesidetrading opened this issue Jul 29, 2024 · 0 comments

Comments

@gaurang-lakesidetrading

Schemas can be downloaded here https://docs.cdp.coinbase.com/downloads/derivatives/cde-sbe-xml-schemas-latest.tar.gz

with open('cde-sbe-order-api.xml', 'r') as f:
order_schema = sbe.Schema.parse(f)

Traceback (most recent call last):
File "fairx_messages.py", line 99, in
order_schema = sbe.Schema.parse(f)
File "/usr/lib/python3.6/site-packages/sbe/init.py", line 488, in parse
rv = _parse_schema(f)
File "/usr/lib/python3.6/site-packages/sbe/init.py", line 1037, in _parse_schema
return _parse_schema_impl(doc, None, schema_with_types.types)
File "/usr/lib/python3.6/site-packages/sbe/init.py", line 1154, in _parse_schema_impl
assert isinstance(stack[-1], Schema)
AssertionError

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