Beispiel #1
0
 public void onTradeEvent(long orderID, OkexTradeQueryResultType result, OkexFutureOrderBriefInfo info)
 {
     if (tradeEventHandler != null)
     {
         tradeEventHandler(orderID, result, info);
     }
 }
Beispiel #2
0
        static void futureTradeCallback(long orderID, TradeQueryResult result, OkexFutureOrderBriefInfo info)
        {
            string infoStatus = "Unknown";

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

            output(str);
        }