public class OKCoinTradeServiceRaw extends OKCoinBaseTradeService
apiKey, loginMaxRetryTimes, okCoin, okCoinClient, sign
Modifier | Constructor and Description |
---|---|
protected |
OKCoinTradeServiceRaw(org.knowm.xchange.Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
BatchTradeResult |
batchTrade(String symbol,
Type type,
OrderData[] orders) |
BorrowResult |
borrowMoney(String symbol,
String days,
BigDecimal amount,
BigDecimal rate) |
BorrowResult |
cancelBorrow(String symbol,
long borrowId) |
boolean |
cancelIcebergeOrder(org.knowm.xchange.currency.CurrencyPair currencyPair,
long id) |
CancelOrderResult |
cancelOrder(String symbol,
long... orderIds) |
BorrowOrderInfo |
getBorrowOrderInfo(long borrowId) |
BorrowsInfo |
getBorrowsInfo(String symbol) |
IcebergOrderHistory |
getIcebergOrderHistory(org.knowm.xchange.currency.CurrencyPair currencyPair,
Integer page) |
IcebergOrderHistory |
getOpenIcebergOrders(org.knowm.xchange.currency.CurrencyPair currencyPair) |
OrderResult |
getOrder(String symbol,
long orderId) |
OrderFee |
getOrderFee(String symbol,
long orderId) |
OrderHistory |
getOrderHistory(String symbol,
int status,
int currentPage,
int pageLength) |
OrderResult |
getOrders(String symbol,
int type,
Iterable<Long> orderIds) |
OrderResult |
getOrders(String symbol,
int type,
long[] orderIds) |
OrderResult |
getOrders(String symbol,
int type,
Long[] orderIds) |
Trade[] |
getTradeHistory(String symbol,
Long since) |
UnrepaymentsInfo |
getUnrepaymentsInfo(String symbol,
int currentPage,
int pageLength) |
long |
placeIcebergOrder(org.knowm.xchange.currency.CurrencyPair currencyPair,
org.knowm.xchange.dto.Order.OrderType type,
BigDecimal tradeValue,
BigDecimal singleAvg,
BigDecimal depthRange,
BigDecimal protectedPrice) |
BorrowResult |
repay(long borrowId) |
TradeResult |
trade(String symbol,
Type type,
BigDecimal price,
BigDecimal amount) |
sleep, updateLast
protected OKCoinTradeServiceRaw(org.knowm.xchange.Exchange exchange)
public Trade[] getTradeHistory(String symbol, Long since) throws IOException
IOException
public TradeResult trade(String symbol, Type type, BigDecimal price, BigDecimal amount) throws OKCoinException, IOException
OKCoinException
IOException
public BatchTradeResult batchTrade(String symbol, Type type, OrderData[] orders) throws OKCoinException, IOException
OKCoinException
IOException
public CancelOrderResult cancelOrder(String symbol, long... orderIds) throws OKCoinException, IOException
OKCoinException
IOException
public OrderResult getOrder(String symbol, long orderId) throws OKCoinException, IOException
OKCoinException
IOException
public OrderResult getOrders(String symbol, int type, long[] orderIds) throws OKCoinException, IOException
OKCoinException
IOException
public OrderResult getOrders(String symbol, int type, Long[] orderIds) throws OKCoinException, IOException
OKCoinException
IOException
public OrderResult getOrders(String symbol, int type, Iterable<Long> orderIds) throws OKCoinException, IOException
OKCoinException
IOException
public OrderHistory getOrderHistory(String symbol, int status, int currentPage, int pageLength) throws OKCoinException, IOException
OKCoinException
IOException
public IcebergOrderHistory getOpenIcebergOrders(org.knowm.xchange.currency.CurrencyPair currencyPair) throws IOException
IOException
public IcebergOrderHistory getIcebergOrderHistory(org.knowm.xchange.currency.CurrencyPair currencyPair, Integer page) throws IOException
IOException
public long placeIcebergOrder(org.knowm.xchange.currency.CurrencyPair currencyPair, org.knowm.xchange.dto.Order.OrderType type, BigDecimal tradeValue, BigDecimal singleAvg, BigDecimal depthRange, BigDecimal protectedPrice) throws OKCoinClientException, IOException
OKCoinClientException
IOException
public boolean cancelIcebergeOrder(org.knowm.xchange.currency.CurrencyPair currencyPair, long id) throws IOException
IOException
public OrderFee getOrderFee(String symbol, long orderId) throws OKCoinException, IOException
OKCoinException
IOException
public BorrowsInfo getBorrowsInfo(String symbol) throws OKCoinException, IOException
OKCoinException
IOException
public BorrowResult borrowMoney(String symbol, String days, BigDecimal amount, BigDecimal rate) throws OKCoinException, IOException
OKCoinException
IOException
public BorrowResult cancelBorrow(String symbol, long borrowId) throws OKCoinException, IOException
OKCoinException
IOException
public BorrowOrderInfo getBorrowOrderInfo(long borrowId) throws OKCoinException, IOException
OKCoinException
IOException
public BorrowResult repay(long borrowId) throws OKCoinException, IOException
OKCoinException
IOException
public UnrepaymentsInfo getUnrepaymentsInfo(String symbol, int currentPage, int pageLength) throws OKCoinException, IOException
OKCoinException
IOException
Copyright © 2013–2017. All rights reserved.