question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fetch tickers in Bter

See original GitHub issue

Hi, There seems to be a problem regarding method fetch_tickers in Bter in async branch. This is what pops out.

Bter, using python

 File "/home/marin/fino/.venv/lib/python3.6/site-packages/ccxt/async/exchanges.py", line 6560, in fetch_tickers
    ids = list(tickers.keys())
AttributeError: 'list' object has no attribute 'keys'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
marinsokol5commented, Sep 28, 2017

Yup it passes with a proxy No idea. Thank you for you time.

1reaction
kroitorcommented, Sep 28, 2017

@marinsokol5 yep, they return an empty response to you. Your location may be blocked (or your country/region may be temporarily blocked)…

Now, let’s try this to make sure that we are dealing with rate-limiting in effect:

import ccxt.async as ccxt
import asyncio
bter = ccxt.bter({"verbose":True, "proxy": "https://cors-anywhere.herokuapp.com/"})
loop = asyncio.get_event_loop()
loop.run_until_complete(bter.fetch_tickers())

or

import ccxt.async as ccxt
import asyncio
bter = ccxt.bter({"verbose":True, "proxy": 'https://crossorigin.me/'})
loop = asyncio.get_event_loop()
loop.run_until_complete(bter.fetch_tickers())

Does any of these snippets work for you? If so, this is related to your location. Maybe you have been too aggressive with requests and need to wait a little, until they relax. Or they may be blocking an entire foreign continent. So, what do you see?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could you add an example to get all tickers from all exchanges?
I am running in node.js · I am getting this error from the standard proxies example in JS and below is my output,...
Read more >
org.knowm.xchange.bter.dto.marketdata.BTERTickers Example
Here are the examples of the java api class org.knowm.xchange.bter.dto.marketdata.BTERTickers taken from open source projects.
Read more >
GateioMarketDataService (XChange 5.0.14 API) - Knowm.org
Method Summary ; Get the tickers representing the current exchange rate for the provided parameters · Get the trades recently performed by the...
Read more >
Pre-Trade Announcement & Ticker - Crypti Blog
The Crypti team has decided on XCR as the official ticker for Crypti. We are currently working out the details with BTER to...
Read more >
CryptoTick - Home page
bter.com. btctrade.com. kcoin. quadrigacx. gatecoin ... Get instant quote for your order and if everything is correct then make a payment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found