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

Coinbase - removed symbols cause glitch with orders #22550

Closed
thomasbs17 opened this issue May 19, 2024 · 4 comments
Closed

Coinbase - removed symbols cause glitch with orders #22550

thomasbs17 opened this issue May 19, 2024 · 4 comments
Assignees

Comments

@thomasbs17
Copy link

Operating System

Windows 10

Programming Languages

Python

CCXT Version

2.4.0

Description

It looks like the 'fetch_orders' triggers an error when trying to retrieve orders that have been removed from Coinbase.

Code

import ccxt

from utils.helpers import get_api_keys

test = ccxt.coinbase(dict(apiKey=key, secret=secret)

t = test.fetch_orders(limit=1000)

Full error log

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\Users\Thomas Bouamoud\Code\crypto_station_front_end\venv\Lib\site-packages\ccxt\coinbase.py", line 2823, in fetch_orders
    return self.parse_orders(orders, market, since, limit)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\Thomas Bouamoud\Code\crypto_station_front_end\venv\Lib\site-packages\ccxt\base\exchange.py", line 2847, in parse_orders
    order = self.extend(self.parse_order(orders[i], market), params)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\Thomas Bouamoud\Code\crypto_station_front_end\venv\Lib\site-packages\ccxt\coinbase.py", line 2497, in parse_order
    market = self.market(symbol)
             ^^^^^^^^^^^^^^^^^^^
  File "c:\Users\Thomas Bouamoud\Code\crypto_station_front_end\venv\Lib\site-packages\ccxt\base\exchange.py", line 4456, in market
    raise BadSymbol(self.id + ' does not have market symbol ' + symbol)
ccxt.base.errors.BadSymbol: coinbase does not have market symbol NMR/GBP
@pcriadoperez pcriadoperez self-assigned this May 19, 2024
@carlosmiei
Copy link
Collaborator

Hello @thomasbs17, we will apply a patch shortly, thanks for reporting it.

@carlosmiei
Copy link
Collaborator

@thomasbs17 Can you please update your ccxt version and try again? It should be working now

@thomasbs17
Copy link
Author

Working like a charm now, thanks for the fix and the reactivity!

@carlosmiei
Copy link
Collaborator

@thomasbs17 No problem, let us know if anything! 🙂

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

3 participants