转载需注明:http://blog.csdn.net/minimicall ,http://cloudtrade.top/
分析Cointrader有一定层度了,发现它毕竟不是一个产品,没有得到验证。在架构、编码等方面都非常的不规范。
想编写一个云交易平台,任道而重远。我们需要参照一些成熟的架构。
Quantopian的zipline不行,因为我就是看到它不行,所以才去分析Cointrader的。
现在这两个,一个压根就不是云平台,一个是不成熟,所以我只能去分析剩下的一个QuantConnect了。它的引擎是lean。
学习lean从学习使用开始,然后学习其架构、源码。然后设计我们的架构、平台。
我们首先来看一个例子。官方的最基本的案例。
代码如下:
namespace QuantConnect
{
/*
* QuantConnect University: Full Basic Template:
*
* The underlying QCAlgorithm class is full of helper methods which enable you to use QuantConnect.
* We have explained some of these here, but the full algorithm can be found at:
* https://github.com/QuantConnect