Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions