Beispiel #1
0
        public void tradeAsync(OkexCoinType commodity, OkexCoinType currency,
                               OkexStockTradeType tradeType, double price, double amount,
                               HttpAsyncReq.ResponseCallback callback)
        {
            string c0      = OkexDefValueConvert.getCoinName(commodity);
            string c1      = OkexDefValueConvert.getCoinName(currency);
            string symbol  = c0 + "_" + c1;
            string strType = OkexDefValueConvert.getStockTradeTypeStr(tradeType);

            postRequest.tradeAsync(symbol, strType, price.ToString(), amount.ToString(), callback);
        }