11-03-2018, 03:29 AM
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.
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.