public class OkCoinTradeServiceRaw extends OKCoinBaseTradePollingService
apikey, okCoin, secretKey, signatureCreatoruseIntlexchange| Modifier | Constructor and Description |
|---|---|
protected |
OkCoinTradeServiceRaw(Exchange exchange)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OkCoinTradeResult |
cancelOrder(long orderId,
String symbol) |
OkCoinTradeResult |
futuresCancelOrder(long orderId,
String symbol,
FuturesContract contract) |
OkCoinTradeResult |
futuresTrade(String symbol,
String type,
String price,
String amount,
FuturesContract contract,
int matchPrice,
int leverRate)
OkCoin.com Futures API
|
OkCoinFuturesOrderResult |
getFuturesOrder(long orderId,
String symbol,
String currentPage,
String pageLength,
FuturesContract contract) |
OkCoinPositionResult |
getFuturesPosition(String symbol,
FuturesContract contract) |
OkCoinOrderResult |
getOrder(long orderId,
String symbol) |
OkCoinOrderResult |
getOrderHistory(String symbol,
String status,
String currentPage,
String pageLength) |
OkCoinTradeResult |
trade(String symbol,
String type,
String rate,
String amount) |
returnOrThrowgetExchangeSymbols, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExchangeSymbolsprotected OkCoinTradeServiceRaw(Exchange exchange)
exchange - public OkCoinTradeResult trade(String symbol, String type, String rate, String amount) throws IOException
IOExceptionpublic OkCoinTradeResult cancelOrder(long orderId, String symbol) throws IOException
IOExceptionpublic OkCoinOrderResult getOrder(long orderId, String symbol) throws IOException
IOExceptionpublic OkCoinOrderResult getOrderHistory(String symbol, String status, String currentPage, String pageLength) throws IOException
IOExceptionpublic OkCoinTradeResult futuresTrade(String symbol, String type, String price, String amount, FuturesContract contract, int matchPrice, int leverRate) throws IOException
IOExceptionpublic OkCoinTradeResult futuresCancelOrder(long orderId, String symbol, FuturesContract contract) throws IOException
IOExceptionpublic OkCoinFuturesOrderResult getFuturesOrder(long orderId, String symbol, String currentPage, String pageLength, FuturesContract contract) throws IOException
IOExceptionpublic OkCoinPositionResult getFuturesPosition(String symbol, FuturesContract contract) throws IOException
IOExceptionCopyright © 2012–2017 Xeiam, LLC. All rights reserved.