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, updateLastprotected OKCoinTradeServiceRaw(org.knowm.xchange.Exchange exchange)
public Trade[] getTradeHistory(String symbol, Long since) throws IOException
IOExceptionpublic TradeResult trade(String symbol, Type type, BigDecimal price, BigDecimal amount) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic BatchTradeResult batchTrade(String symbol, Type type, OrderData[] orders) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic CancelOrderResult cancelOrder(String symbol, long... orderIds) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic OrderResult getOrder(String symbol, long orderId) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic OrderResult getOrders(String symbol, int type, long[] orderIds) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic OrderResult getOrders(String symbol, int type, Long[] orderIds) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic OrderResult getOrders(String symbol, int type, Iterable<Long> orderIds) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic OrderHistory getOrderHistory(String symbol, int status, int currentPage, int pageLength) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic IcebergOrderHistory getOpenIcebergOrders(org.knowm.xchange.currency.CurrencyPair currencyPair) throws IOException
IOExceptionpublic IcebergOrderHistory getIcebergOrderHistory(org.knowm.xchange.currency.CurrencyPair currencyPair, Integer page) throws IOException
IOExceptionpublic 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
OKCoinClientExceptionIOExceptionpublic boolean cancelIcebergeOrder(org.knowm.xchange.currency.CurrencyPair currencyPair,
                                   long id)
                            throws IOException
IOExceptionpublic OrderFee getOrderFee(String symbol, long orderId) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic BorrowsInfo getBorrowsInfo(String symbol) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic BorrowResult borrowMoney(String symbol, String days, BigDecimal amount, BigDecimal rate) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic BorrowResult cancelBorrow(String symbol, long borrowId) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic BorrowOrderInfo getBorrowOrderInfo(long borrowId) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic BorrowResult repay(long borrowId) throws OKCoinException, IOException
OKCoinExceptionIOExceptionpublic UnrepaymentsInfo getUnrepaymentsInfo(String symbol, int currentPage, int pageLength) throws OKCoinException, IOException
OKCoinExceptionIOExceptionCopyright © 2013–2017. All rights reserved.