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.

Downloading historical candle data

See original GitHub issue

I’m about to code backtesting and I’m curious how do people in Gekko and other bots download historical data for a larger period of time e.g. xx/xx/2013 - xx/xx/2014.

BinanceClient.GetKlines allows up to 1000 candles at a time.

public class Importer
{
	public void Download(string symbol, KlineInterval interval)
	{
		using var client = new BinanceClient();
		client.GetKlines(symbol, interval, limit: 1000);
	}
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
nikkozpcommented, Apr 12, 2020

You can upload all the binance data via client.GetKlines, but it will be returned 1000 items at a time

0reactions
Hulkstancecommented, May 1, 2020

Thank you for your advices. Closing it for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Free Historical Market Data Download in Python
Download free historical market data for stocks, commodity futures, foreign exchange, cryptocurrency, and intraday prices.
Read more >
Is there a free way for downloading fx historical candle stick ...
You can try quantopian/quantconnect - don't need to download the data. Also, is there a reason why you would need data that old?...
Read more >
How to Download Historical Market Data on Binance
Binance offers historical market data for all users to download directly via the Historical Market Data page. You can view all candlestick ......
Read more >
Download Historical Intraday Data (20 Years Data)
Download 20 years of historical data for over 7000 tickers - 1-minute, 5-minute, 30-minute, 1-hour and tick data. Stocks, Indices, Commodities, FX and ......
Read more >
Historical Data Export
Free Historical Data Export web widget for downloading quotes and trading volumes of currency pairs, commodity and stock CFDs with periods from ticks...
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