Bitcoin Forum
May 27, 2024, 11:40:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trading Bot- Database  (Read 180 times)
Wiss (OP)
Jr. Member
*
Offline Offline

Activity: 68
Merit: 1


View Profile
November 16, 2017, 09:58:17 AM
 #1

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
echogomodrill
Full Member
***
Offline Offline

Activity: 1498
Merit: 133


View Profile
November 16, 2017, 10:09:45 AM
 #2

First, use  this method "public/getorderbook",  and then group by time(1m, 5m), and you get "buy" and "sell" volumes
BitcoinHodler
Hero Member
*****
Offline Offline

Activity: 1456
Merit: 578


HODLing is an art, not just a word...


View Profile
November 16, 2017, 11:47:57 AM
 #3

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&currencyPair=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.

Holding Bitcoin More Every Day
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!