ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
32.72k stars 7.5k forks source link

binance does not have market symbol SPL/USDT #10501

Closed flydr2 closed 2 years ago

flydr2 commented 2 years ago

All is working fine with other thickers...

Traceback (most recent call last):
  File "C:/Users/Default.MSI/Documents/CriptoBots/marc/testfib.py", line 31, in <module>
    bars = exchange.fetch_ohlcv(symbol, timeframe=timeframe, limit=limit)
  File "C:\Users\Default.MSI\AppData\Local\Programs\Python\Python37\lib\site-packages\ccxt\binance.py", line 1849, in fetch_ohlcv
    market = self.market(symbol)
  File "C:\Users\Default.MSI\AppData\Local\Programs\Python\Python37\lib\site-packages\ccxt\base\exchange.py", line 1999, in market
    raise BadSymbol('{} does not have market symbol {}'.format(self.id, symbol))
ccxt.base.errors.BadSymbol: binance does not have market symbol SPL/USDT
kroitor commented 2 years ago

@flydr2 there's no mention of SPL here: https://api.binance.com/api/v3/exchangeInfo SPL is the Solana's network, and the actual coin is SOL. Hope that answers your question, let us know if not.

flydr2 commented 2 years ago

SPL/USDT is trading on binance. This is from binance"

On Sat, Nov 6, 2021 at 3:42 AM Igor Kroitor @.***> wrote:

Closed #10501 https://github.com/ccxt/ccxt/issues/10501.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ccxt/ccxt/issues/10501#event-5577770173, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG7MGXALYOLT37L5M4ADNDUKTL5ZANCNFSM5HPJ6EGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Marc Robitaille Cell 1 829 389 0050 DR 1 613 686 6445 Canada

kroitor commented 2 years ago

@flydr2 i think you're using SPL instead of SLP (typo in your code).

import ccxt
from pprint import pprint
exchange = ccxt.binance()
markets = exchange.load_markets()
market = exchange.market('SLP/USDT')
pprint(market)
flydr2 commented 2 years ago

Oups, sorry for that.. My bad

On Sat, Nov 6, 2021 at 8:33 AM Igor Kroitor @.***> wrote:

@flydr2 https://github.com/flydr2 i think you're using SPL instead of SLP (typo in your code).

import ccxtfrom pprint import pprintexchange = ccxt.binance()markets = exchange.load_markets()market = exchange.market('SLP/USDT')pprint(market)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccxt/ccxt/issues/10501#issuecomment-962445042, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG7MGRZ3MZL4X7ARYSRQRLUKUOBLANCNFSM5HPJ6EGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Marc Robitaille Cell 1 829 389 0050 DR 1 613 686 6445 Canada