Skip to content

Commit

Permalink
Fix coinbase symbol parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoscon authored and leftys committed Nov 29, 2024
1 parent feadc9c commit b962602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cryptofeed/exchanges/coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def _parse_symbol_data(cls, data: list) -> Tuple[Dict, Dict]:
info = defaultdict(dict)

for entry in data:
sym = Symbol(entry['base_currency'], entry['quote_currency'])
base, quote = entry['id'].split("-")
sym = Symbol(base, quote)
info['tick_size'][sym.normalized] = entry['quote_increment']
info['instrument_type'][sym.normalized] = sym.type
ret[sym.normalized] = entry['id']
Expand Down

0 comments on commit b962602

Please sign in to comment.