コード例 #1
0
 public void onTradeEvent(long orderID, TradeQueryResult result, OkexStockOrderBriefInfo info)
 {
     if (m_stockTradeEventHandler != null)
     {
         m_stockTradeEventHandler(orderID, result, info);
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: voicevon/OkexTrader
        static void stockTradeCallback(long orderID, TradeQueryResult result, OkexStockOrderBriefInfo info)
        {
            string infoStatus = "Unknown";

            if (info != null)
            {
                infoStatus = info.status.ToString();
            }
            string str = "ID: " + orderID.ToString() + ", Status: " + result.ToString() + ", Info: " + infoStatus;

            output(str);
        }