gocryptotrader
gocryptotrader copied to clipboard
Trading strategy integration
Hey guys,
Whats the advised way to start to work on interaction of a trading strategy into your framework?
Just wondering how you see this happening? Or what am I missing. :)
Thanks for the help Lucas.
There are several options... Don't take my word on it, but AFAIK the idea is that the go to place will be the scripting engine, see https://github.com/thrasher-corp/gocryptotrader/tree/master/gctscript You might get some things done already, but it may not be complete yet... (also, the scripting language is Tengo) In theory this option provides the best combination of safety and performance.
Then there's an RPC server, so you can interact with the running bot from any other script/program in your preferred language using the provided interfaces. A basic CLI implementation for that is maintained in gctcli.
(I'm sure I'll be corrected, but if you just want Go) at this stage it might be easiest (but most likely non-advised and prone to changes) to just create your own main package and do that: https://github.com/thrasher-corp/gocryptotrader/blob/80bc8c7/main.go#L124-L135
Then interact with the engine.Bot
to get things done.