require("./common");
require("./systemConfig");

//系统数据库配置
System_DBConfig={
    Host:"127.0.0.1",
    Port:6379
};


//行情数据库配置

MarketData_DBConfig={
/*
               Host:"127.0.0.1",
               Port:8888,
               Password:""
*/
};

//配置客户端,NodeQuant启动,会连接已经配置的交易客户端
ClientConfig={
    CTP:{
        userID:"888888",
        password:"888888",
        brokerID:"9999",
        mdAddress:"tcp://180.169.68.3:11213",
        tdAddress:"tcp://180.169.68.3:11205"
    }/*,
    Sgit:{
        userID:"888888",
        password: "888888",
        brokerID:"",
        mdAddress: "tcp://140.206.81.6:27777",
        tdAddress: "tcp://140.206.81.6:27776"
    }*/
};

StrategyConfig={
    Strategys:[
        {
            name:"Demo",
            className:"TestTickToFinishSendOrder_Strategy",
            symbols: {
                "Au(T+D)":{
                    //要配置在哪个交易客户端订阅该合约，因为上期CTP和飞鼠Sgit都可以交易商品期货
                    clientName:SupportClients.Sgit
                }
            },
            BarType:KBarType.Minute,  //K线类型是: 分钟
            BarInterval:1,             //1分钟K线
        }
    ]
};

//该设置配合NodeQuant通知服务可以通过声音,邮件通知用户策略发生的异常
NotifyExceptionConfig={
    ExceptionType:[
        ErrorType.Disconnected,
        ErrorType.OperationAfterDisconnected,
    ]
};

@@ -285,24 +285,25 @@
 entConfig=%7B%0A
+%0A
     CTP:%7B%0A  
@@ -762,34 +762,12 @@
 me:%22
-TestTickToFinishSendOrder_
+Demo
 Stra
@@ -817,15 +817,13 @@
    %22
-Au(T+D)
+i1801
 %22:%7B%0A
@@ -931,20 +931,19 @@
 Clients.
-Sgit
+CTP
 %0A       

update userConfig