Beispiel #1
0
 public TestTrade(string investor, string pwd, string instrument = "rb1809", double price = 3900)
 {
     _investor = investor;
     _pwd      = pwd;
     _inst     = instrument;
     _price    = price;
     _t        = new CTPTrade(new FileInfo("../../../dll/ctp_trade.dll").FullName);
 }
Beispiel #2
0
 public TestTrade(string investor, string pwd, string instrument = "rb1809", double price = 3900)
 {
     _investor = investor;
     _pwd      = pwd;
     _inst     = instrument;
     _price    = price;
     _t        = new CTPTrade();
 }
Beispiel #3
0
 public CtpTrade(string dir, String tcp_ip_quote, String tcp_ip_trade, String investor, String investorpass, String broker, String price_first, String sub1)
 {
     this.root_dir = dir;
     _broker       = broker;
     _investor     = investor;
     _investorpass = investorpass;
     _sub1         = sub1;
     _tcp_ip_quote = tcp_ip_quote;
     _tcp_ip_trade = tcp_ip_trade;
     //_lt_trade = lt_trade;
     //_lt_trade_success = lt_trade_success;
     _t = new CTPTrade();
 }
Beispiel #4
0
 public TestTrade()
 {
     _t = new CTPTrade();
 }