Title: Trading Bot- Database Post by: Wiss on November 16, 2017, 09:58:17 AM Hi,
I want to implement a trading bot - therefore i am looking for an API where you can get values of candles. I have checked the bittrex API - but there you just get the current price of an trading pair. Do you know where I can get the actual price and the candle data? Thx! Regards Title: Re: Trading Bot- Database Post by: echogomodrill on November 16, 2017, 10:09:45 AM First, use this method "public/getorderbook", and then group by time(1m, 5m), and you get "buy" and "sell" volumes
Title: Re: Trading Bot- Database Post by: BitcoinHodler on November 16, 2017, 11:47:57 AM your only option is poloniex then. if you check out their API documentation page here: https://poloniex.com/support/api/ you can see there is a section called "returnChartData" which is giving you OHLC chart points based on your selected interval.
it supports 300, 900, 1800, 7200, 14400, and 86400 as intervals in seconds. example (taken from the documentation): https://poloniex.com/public?command=returnChartData¤cyPair=BTC_XMR&start=1405699200&end=9999999999&period=14400 there are other small exchanges such as bleutrade which offer the same feature but i don't think it is worth writing a API wrapper for them if you just want the chart data. |