public class OkCoinTradeServiceRaw extends OKCoinBaseTradePollingService
apikey, okCoin, secretKey, signatureCreator
useIntl
exchange
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) |
returnOrThrow
getExchangeSymbols, verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeSymbols
protected OkCoinTradeServiceRaw(Exchange exchange)
exchange
- public OkCoinTradeResult trade(String symbol, String type, String rate, String amount) throws IOException
IOException
public OkCoinTradeResult cancelOrder(long orderId, String symbol) throws IOException
IOException
public OkCoinOrderResult getOrder(long orderId, String symbol) throws IOException
IOException
public OkCoinOrderResult getOrderHistory(String symbol, String status, String currentPage, String pageLength) throws IOException
IOException
public OkCoinTradeResult futuresTrade(String symbol, String type, String price, String amount, FuturesContract contract, int matchPrice, int leverRate) throws IOException
IOException
public OkCoinTradeResult futuresCancelOrder(long orderId, String symbol, FuturesContract contract) throws IOException
IOException
public OkCoinFuturesOrderResult getFuturesOrder(long orderId, String symbol, String currentPage, String pageLength, FuturesContract contract) throws IOException
IOException
public OkCoinPositionResult getFuturesPosition(String symbol, FuturesContract contract) throws IOException
IOException
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.