Gekko Forum
How to run two trade boots with two gekko in two stock exchanges - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Discussion (https://forum.gekko.wizb.it/forum-23.html)
+--- Thread: How to run two trade boots with two gekko in two stock exchanges (/thread-1547.html)



How to run two trade boots with two gekko in two stock exchanges - ankasem - 02-25-2018

hi
I am using the ubuntu desktop

how can the trade bots work without problems
how to configure gekko ui and about the commandline

How to run two trade boots with two gekko in two stock exchanges

two Gekko installations were done
gekko1
gekko2

thank you


RE: How to run two trade boots with two gekko in two stock exchanges - ManuManu - 02-25-2018

I think you can run several gekko in parallel with Pm2.

Check this guide :
https://forum.gekko.wizb.it/thread-1479.html

Manu


RE: How to run two trade boots with two gekko in two stock exchanges - Gryphon - 02-26-2018

Two different exchanges shouldn't be a problem for gekko through the UI or command line - just add the different API keys and select the relevant exchange when you start the bot.

If you mean two different accounts on the same exchange:

Running the bots from the command line, you only need one copy of gekko, a config file for each bot (you can specify the api key to use in the config so can have different configs using different accounts on the same exchange). Start each bot with "pm2 start gekko.js -n "Name for this trading bot" -- --config /path/to/your/config.js"

If you want to trade through the UI you will need two separate copies of gekko, you will need to change the port of one of them - i.e. replace the port:3000 in web/vue/UIconfig.js with port:3001. Start them both either from terminal or in PM2 (preferred) and open two browser tabs, one to localhost:3000, the other to localhost:3001


RE: How to run two trade boots with two gekko in two stock exchanges - ankasem - 02-26-2018

hi
many thanks for the answers 


RE: How to run two trade boots with two gekko in two stock exchanges - xBIGx - 02-26-2018

(02-26-2018, 08:59 AM)Gryphon Wrote: Two different exchanges shouldn't be a problem for gekko through the UI or command line - just add the different API keys and select the relevant exchange when you start the bot.

If you mean two different accounts on the same exchange:

Running the bots from the command line, you only need one copy of gekko, a config file for each bot (you can specify the api key to use in the config so can have different configs using different accounts on the same exchange). Start each bot with "pm2 start gekko.js -n "Name for this trading bot" -- --config /path/to/your/config.js"

If you want to trade through the UI you will need two separate copies of gekko, you will need to change the port of one of them - i.e. replace the port:3000 in web/vue/UIconfig.js with port:3001. Start them both either from terminal or in PM2 (preferred) and open two browser tabs, one to localhost:3000, the other to localhost:3001

Would I be able to use one gekko to trade with my API and my friend's API on the same exchange?


RE: How to run two trade boots with two gekko in two stock exchanges - Gryphon - 02-27-2018

(02-26-2018, 08:17 PM)xBIGx Wrote: Would I be able to use one gekko to trade with my API and my friend's API on the same exchange?

If you launch them from the command line, yes. Through the UI, no.