public class OKCoinTradeService extends OKCoinTradeServiceRaw implements org.knowm.xchange.service.trade.TradeService
TradeService
implementation.Modifier and Type | Class and Description |
---|---|
static class |
OKCoinTradeService.OKCoinTradeHistoryParams |
apiKey, loginMaxRetryTimes, okCoin, okCoinClient, sign
Constructor and Description |
---|
OKCoinTradeService(org.knowm.xchange.Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelOrder(String orderId) |
org.knowm.xchange.service.trade.params.orders.DefaultOpenOrdersParamCurrencyPair |
createOpenOrdersParams() |
org.knowm.xchange.service.trade.params.TradeHistoryParams |
createTradeHistoryParams() |
org.knowm.xchange.dto.trade.OpenOrders |
getOpenOrders() |
org.knowm.xchange.dto.trade.OpenOrders |
getOpenOrders(org.knowm.xchange.service.trade.params.orders.OpenOrdersParams params) |
Collection<org.knowm.xchange.dto.Order> |
getOrder(String... orderIds) |
org.knowm.xchange.dto.trade.UserTrades |
getTradeHistory(Object... arguments)
Deprecated.
|
org.knowm.xchange.dto.trade.UserTrades |
getTradeHistory(org.knowm.xchange.service.trade.params.TradeHistoryParams params) |
String |
placeLimitOrder(org.knowm.xchange.dto.trade.LimitOrder limitOrder) |
String |
placeMarketOrder(org.knowm.xchange.dto.trade.MarketOrder marketOrder) |
batchTrade, borrowMoney, cancelBorrow, cancelIcebergeOrder, cancelOrder, getBorrowOrderInfo, getBorrowsInfo, getIcebergOrderHistory, getOpenIcebergOrders, getOrder, getOrderFee, getOrderHistory, getOrders, getOrders, getOrders, getTradeHistory, getUnrepaymentsInfo, placeIcebergOrder, repay, trade
sleep, updateLast
verifyOrder, verifyOrder, verifyOrder
public OKCoinTradeService(org.knowm.xchange.Exchange exchange)
public org.knowm.xchange.dto.trade.OpenOrders getOpenOrders() throws OKCoinException, IOException
getOpenOrders
in interface org.knowm.xchange.service.trade.TradeService
OKCoinException
IOException
public org.knowm.xchange.dto.trade.OpenOrders getOpenOrders(org.knowm.xchange.service.trade.params.orders.OpenOrdersParams params) throws org.knowm.xchange.exceptions.ExchangeException, org.knowm.xchange.exceptions.NotAvailableFromExchangeException, org.knowm.xchange.exceptions.NotYetImplementedForExchangeException, IOException
getOpenOrders
in interface org.knowm.xchange.service.trade.TradeService
org.knowm.xchange.exceptions.ExchangeException
org.knowm.xchange.exceptions.NotAvailableFromExchangeException
org.knowm.xchange.exceptions.NotYetImplementedForExchangeException
IOException
public org.knowm.xchange.service.trade.params.orders.DefaultOpenOrdersParamCurrencyPair createOpenOrdersParams()
createOpenOrdersParams
in interface org.knowm.xchange.service.trade.TradeService
public String placeMarketOrder(org.knowm.xchange.dto.trade.MarketOrder marketOrder) throws org.knowm.xchange.exceptions.ExchangeException, org.knowm.xchange.exceptions.NotAvailableFromExchangeException, org.knowm.xchange.exceptions.NotYetImplementedForExchangeException, IOException
placeMarketOrder
in interface org.knowm.xchange.service.trade.TradeService
org.knowm.xchange.exceptions.ExchangeException
org.knowm.xchange.exceptions.NotAvailableFromExchangeException
org.knowm.xchange.exceptions.NotYetImplementedForExchangeException
IOException
public String placeLimitOrder(org.knowm.xchange.dto.trade.LimitOrder limitOrder) throws OKCoinException, IOException
placeLimitOrder
in interface org.knowm.xchange.service.trade.TradeService
OKCoinException
IOException
public boolean cancelOrder(String orderId) throws OKCoinException, IOException
cancelOrder
in interface org.knowm.xchange.service.trade.TradeService
OKCoinException
IOException
@Deprecated public org.knowm.xchange.dto.trade.UserTrades getTradeHistory(Object... arguments) throws OKCoinException, IOException
OKCoinException
IOException
public org.knowm.xchange.dto.trade.UserTrades getTradeHistory(org.knowm.xchange.service.trade.params.TradeHistoryParams params) throws OKCoinException, IOException
getTradeHistory
in interface org.knowm.xchange.service.trade.TradeService
OKCoinException
IOException
public org.knowm.xchange.service.trade.params.TradeHistoryParams createTradeHistoryParams()
createTradeHistoryParams
in interface org.knowm.xchange.service.trade.TradeService
public Collection<org.knowm.xchange.dto.Order> getOrder(String... orderIds) throws org.knowm.xchange.exceptions.ExchangeException, org.knowm.xchange.exceptions.NotAvailableFromExchangeException, org.knowm.xchange.exceptions.NotYetImplementedForExchangeException, IOException
getOrder
in interface org.knowm.xchange.service.trade.TradeService
org.knowm.xchange.exceptions.ExchangeException
org.knowm.xchange.exceptions.NotAvailableFromExchangeException
org.knowm.xchange.exceptions.NotYetImplementedForExchangeException
IOException
Copyright © 2013–2017. All rights reserved.