Bitcoin Forum

Economy => Trading Discussion => Topic started by: UeliCrypto on February 22, 2018, 08:18:47 AM



Title: URGENT NEED: 1 Minute Time Series (O,H,L,C) on Bitcoin
Post by: UeliCrypto on February 22, 2018, 08:18:47 AM
Hi there,

hope you are doing good. I'm desperately looking for a reliable source for extracting the 1 minute time series on Bitcoin (O,H,L,C) ideally for the last year or at least the last 4 month. Would somebody be able to point me to a service?

Thank you very, very much,
UC


Title: Re: URGENT NEED: 1 Minute Time Series (O,H,L,C) on Bitcoin
Post by: BrewMaster on February 22, 2018, 04:48:29 PM
go check out Poloniex api service. they have a public api call that will return the OHLC data for the markets they have. of course they don't have a fiat market but they have a tether market which is practically the same as far as value is concerned. it is the BTC_USDT market you want to look at and here is how the call would look like:

https://poloniex.com/public?command=returnChartData&currencyPair=BTC_USDT&start=0&end=9999999999&period=60


Title: Re: URGENT NEED: 1 Minute Time Series (O,H,L,C) on Bitcoin
Post by: lite on February 22, 2018, 05:42:01 PM
You can use gekko[1] to download/important historical market data or you can directly use poloniex api[2].

Quote
returnChartData

Returns candlestick chart data. Required GET parameters are "currencyPair", "period" (candlestick period in seconds; valid values are 300, 900, 1800, 7200, 14400, and 86400), "start", and "end". "Start" and "end" are given in UNIX timestamp format and used to specify the date range for the data returned. Sample output:

[{"date":1405699200,"high":0.0045388,"low":0.00403001,"open":0.00404545,"close":0.00427592,"volume":44.11655644,
"quoteVolume":10259.29079097,"weightedAverage":0.00430015}, ...]

Call: https://poloniex.com/public?command=returnChartData&currencyPair=BTC_XMR&start=1405699200&end=9999999999&period=14400

[1] https://gekko.wizb.it/docs/features/importing.html
[2] https://poloniex.com/support/api/