Listening for trade events in strategy ?
#2
Hey! Within Gekko there are plugins: these are the main internal modules. Information is shared between them via events.

Note that your strategy is not a plugin (but it's wrapped inside a plugin). The plugins & event system is used internally as well as for external "plugins" (telegram bot, etc).

----

That said: the tradeCompleted event is exposed to your strategy. You can create a function called onTrade which will receive the tradeCompleted event. If you need more events let me know and we figure out a clean interface for that.
  Reply


Messages In This Thread
RE: Listening for trade events in strategy ? - by askmike - 11-03-2018, 03:29 AM

Forum Jump:


Users browsing this thread: