Gekko Forum
[Request] Kraken 24 Hour Average Price for use in strategy - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html)
+--- Thread: [Request] Kraken 24 Hour Average Price for use in strategy (/thread-12.html)



[Request] Kraken 24 Hour Average Price for use in strategy - haccg - 01-05-2018

Kraken API offers the 24 hour average Price over the ticker, which I would like to use in a strategy
How Do I get to use this information in my strategy?
Like I want to buy something for the average price or a price depending on the average price.



Further information regarding the API provided by Kraken.com
Get ticker information
URL: https://api.kraken.com/0/public/Ticker

Input:
pair = comma delimited list of asset pairs to get info on
Result: array of pair names and their ticker info

<pair_name> = pair name
a = ask array(, , ),
b = bid array(, , ),
c = last trade closed array(, ),
v = volume array(, <last 24 hours>),
p = volume weighted average price array(, <last 24 hours>),
t = number of trades array(, <last 24 hours>),
l = low array(, <last 24 hours>),
h = high array(, <last 24 hours>),
o = today's opening price
Note: Today's prices start at 00:00:00 UTC