Пример #1
0
def trade_demo():
    '''
        请先在demo_base.ini中的[REAL_TRADER]下设定相关细节
    '''
    return ctp_mock.comp_real2(base_name='demo_base.ini',
                               base='Base_Real',
                               strategy_name='demo_strategy_trade.ini')
Пример #2
0
def trade_mock(t2order=t2order_mock):
    '''
        交易时间请使用trade_mock(t2order=entry.t2order_if)
    '''
    return ctp_mock.comp_real2(base_name='demo_base.ini',
                               base='Base_Mock',
                               strategy_name='demo_strategy_trade.ini',
                               t2order=t2order)
Пример #3
0
def trade_mock(t2order = t2order_mock):
    '''
        交易时间请使用trade_mock(t2order=entry.t2order_if)
    '''
    return ctp_mock.comp_real2(base_name='demo_base.ini',base='Base_Mock',strategy_name='demo_strategy_trade.ini',t2order=t2order)
Пример #4
0
def trade_demo():
    '''
        请先在demo_base.ini中的[REAL_TRADER]下设定相关细节
    '''
    return ctp_mock.comp_real2(base_name='demo_base.ini',base='Base_Real',strategy_name='demo_strategy_trade.ini')