Getting Best/Current BID & ASK price into a strategy
#1
Greetings everyone this is my first time posting. So I've been playing with gekko for a few weeks and its been great but one of the things that I like to use in my strategy is using the bid/ask price to help filter out some whipsawing. I figured it would not be that hard too do, I come from a c++ background so I'm kinda new to Javascript but nothing like jumping in feet first and figuring out how things/gekko works. So I started off looking at the wiki page to see how the program is laid out it pointed me to budfox from there I  followed the data trail back to candleCreator and my exchange wrapper which I'm using gdax. So after messing around and breaking things and then unbreaking things I got to the point were if i printed the candle object I could see the ask and bid but it was undefined upon closer inspection I see how gekko is creating candles by using the getTrade api which does not include the bid/ask in the datastream. But I see in the gdax api wrapper that it does have the getTicker function which does include ask/bed price. But I'm at a lose on how to add the ask/bid from getTicker into the getTrade function.
Any thought or help would be greatly appreciated.

Thank you
Travis Wilson
P.S Thanks for all the hard work that people are putting into this program. You guys/ladies are awesome......like really awesome.
  Reply


Messages In This Thread
Getting Best/Current BID & ASK price into a strategy - by travislwilson - 08-24-2018, 09:53 PM

Forum Jump:


Users browsing this thread: