public void onTradeEvent(long orderID, TradeQueryResult result, OkexStockOrderBriefInfo info) { if (m_stockTradeEventHandler != null) { m_stockTradeEventHandler(orderID, result, info); } }
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); }