Bitcoin Forum
May 05, 2024, 04:06:12 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 1191 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
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714925172
Hero Member
*
Offline Offline

Posts: 1714925172

View Profile Personal Message (Offline)

Ignore
1714925172
Reply with quote  #2

1714925172
Report to moderator
1714925172
Hero Member
*
Offline Offline

Posts: 1714925172

View Profile Personal Message (Offline)

Ignore
1714925172
Reply with quote  #2

1714925172
Report to moderator
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!