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.

Python error request historical data 1/3 times

See original GitHub issue
  • OS: Ubuntu
  • Programming Language version: Python
  • CCXT version: Lastest

When i try to get the data, its working like 1/3 time. (I use multiple pair, so sometime its BTC-PERP, ETH-PERP etc)

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/ccxt/base/exchange.py", line 658, in fetch
    response.raise_for_status()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://ftx.com/api/markets/BTC-PERP/candles?resolution=86400&end_time=1653656768&limit=210&start_time=1635512768

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Mosjilcommented, Aug 25, 2022

@Mosjil Can you please confirm whether the issue has been still ongoing, or it has gone away?

Hello ! Its has gone a couple days after

0reactions
ttoduacommented, Aug 26, 2022

thnx for letting us know ;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing NASDAQ Historical Data with Python Requests ...
csv" file, my Python code produces a timeout error. requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError(10060, 'A ...
Read more >
Trying to read historical data from the tool - Python SDK
Hi Tim,. I tried hard coding the variables with the values as suggested above. However I got the same error again. What type...
Read more >
TWS API v9.72+: Historical Time and Sales Data
TWS build 968+ and API version 973.04+ is required. Historical Tick-By-Tick data is not available for combos; Data will not be returned from...
Read more >
How to get historical market data from Interactive Brokers ...
If you have an account with Interactive Brokers, you can download historical data from them using Python. This article will show you how....
Read more >
statistics — Mathematical statistics functions — Python 3.11.1 ...
Raises StatisticsError if there are not at least two data points. The cut points are linearly interpolated from the two nearest data points....
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