Пример #1
0
        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();
        }
Пример #2
0
 public MyTradeSpi(TradeApiWrapper api)
 {
     api_ = api;
 }