12-25-2018, 10:34 PM
Quote:For example to start gekko it would just call "http://localhost:PORT/api/startGekko" or is there more to it?
That's it: you need to call that with a POST request and pass a gekko config in JSON as config.
Quote:My goal is to have it fluidly switch back and forth between -- looking for a coin to trade & trading that coin --. So it ends up being a fully automated dance of finding a coin, trading that coin, rinse repeat. Is this possible to do with just the one script and one CLI? Or would I need a separate CLI gekko server running in parallel?
My advice would be to start a single gekko server in one terminal, and start your script on a second terminal. Keep in mind that when you start the bot on BTC/USD and shut it down 5 hours later your coins might be in USD or in BTC depending on the position of the gekko bot when you stopped it.