static void TradeApiTest() { Console.WriteLine("trade api version: {0}", TradeApiWrapper.GetApiVersion()); TradeApiWrapper api = new TradeApiWrapper(""); api.RegisterSpi(new MyTradeSpi(api)); api.RegisterFront(TRADE_FRONT_ADDR); api.Init(); api.Join(); }
public MyTradeSpi(TradeApiWrapper api) { api_ = api; }