Bitcoin Forum
May 24, 2024, 01:44:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Poloniex API trading bot, how to get MACD, HIST and SIG?  (Read 1192 times)
h311m4n (OP)
Sr. Member
****
Offline Offline

Activity: 487
Merit: 266



View Profile
December 07, 2016, 08:24:09 PM
 #1

Hello,

I was thinking of writing a trading bot in php as a little side project. I'm not a super experienced trader but this should be fun.

Question though, I was reading through the API: https://poloniex.com/support/api/

But I don't see a way to get the MACD, HIST and SIG data for a given candle/time. Am I missing something or do I need to calculate these myself?

Sorry if this is a noobish question but I thought I might ask here before opening a ticket on Polo.

Thanks in advance
Gunthar
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 614


Liable for what i say, not for what you understand


View Profile WWW
December 07, 2016, 08:27:06 PM
 #2

Hello,

I was thinking of writing a trading bot in php as a little side project. I'm not a super experienced trader but this should be fun.

Question though, I was reading through the API: https://poloniex.com/support/api/

But I don't see a way to get the MACD, HIST and SIG data for a given candle/time. Am I missing something or do I need to calculate these myself?

Sorry if this is a noobish question but I thought I might ask here before opening a ticket on Polo.

Thanks in advance

You have to calculate it by yourself. The only chart data coming from that API is weighted average.

       ▄██▀ ▄█████▄
     ▄██▀ ▄███▀ ▐███▄
   ▄██▀ ▄███▀    █████▄
 ▄██▀ ▄███▀    ▄██▀  ▀██▄
██▀ ▄███▀    ▄██▀      ▀██▄
██ ███▀    ▄██▀    █▄    ███
██ ███    ███    ▄███    ███
██ ███▄    ▀███▄███▀     ███
██▄ ▀███▄    ▀███▀    ▄███▀
 ▀██▄ ▀███▄         ▄███▀
   ▀██▄ ▀███▄     ▄███▀
     ▀██▄ ▀███▄ ▄███▀
       ▀██▄ ▀█████▀
████
████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████

████  ████  ████
████  ████  ████

████  ████  ████
████  ████  ████
████
████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████
████  ████  ████

████  ████  ████
████  ████  ████

████  ████  ████
████  ████  ████
         ▄█████▄ ▀██▄
       ▄███▀ ▐███▄ ▀██▄
     ▄███▀    █████▄ ▀██▄
   ▄███▀    ▄██▀  ▀██▄ ▀██▄
 ▄███▀    ▄██▀      ▀██▄ ▀██
███▀    ▄██▀    █▄    ███ ██
███    ███    ▄███    ███ ██
███▄    ▀███▄███▀    ▄███ ██
 ▀███▄    ▀███▀    ▄███▀ ▄██
   ▀███▄         ▄███▀ ▄██▀
     ▀███▄     ▄███▀ ▄██▀
       ▀███▄ ▄███▀ ▄██▀
         ▀█████▀ ▄██▀
h311m4n (OP)
Sr. Member
****
Offline Offline

Activity: 487
Merit: 266



View Profile
December 07, 2016, 08:27:45 PM
 #3

Hello,

I was thinking of writing a trading bot in php as a little side project. I'm not a super experienced trader but this should be fun.

Question though, I was reading through the API: https://poloniex.com/support/api/

But I don't see a way to get the MACD, HIST and SIG data for a given candle/time. Am I missing something or do I need to calculate these myself?

Sorry if this is a noobish question but I thought I might ask here before opening a ticket on Polo.

Thanks in advance

You have to calculate it by yourself. The only chart data coming from that API is weighted average.

Ah OK! Thanks for the quick response.
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!