sbe-python icon indicating copy to clipboard operation
sbe-python copied to clipboard

Error while parsing Coinbase Derivatives (FairX) exchange schema

Open gaurang-lakesidetrading opened this issue 1 year ago • 0 comments

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

gaurang-lakesidetrading avatar Jul 29 '24 17:07 gaurang-lakesidetrading