Package org.knowm.xchange.yobit.service
Class YoBitTradeServiceRaw
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.yobit.service.YoBitBaseService<YoBit>
-
- org.knowm.xchange.yobit.service.YoBitTradeServiceRaw
-
- All Implemented Interfaces:
BaseService
,TradeService
- Direct Known Subclasses:
YoBitTradeService
public abstract class YoBitTradeServiceRaw extends YoBitBaseService<YoBit> implements TradeService
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.yobit.service.YoBitBaseService
service, signatureCreator
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description YoBitTradeServiceRaw(YoBitExchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseYoBitResponse
activeOrders(OpenOrdersParamCurrencyPair params)
BaseYoBitResponse
cancelOrder(CancelOrderByIdParams params)
protected BaseYoBitResponse
cancelOrderById(String orderId)
OpenOrders
getOpenOrders()
Gets the open ordersCollection<Order>
getOrder(String... orderIds)
get's the latest order form the order book that with matching orderIdBaseYoBitResponse
trade(LimitOrder limitOrder)
BaseYoBitResponse
tradeHistory(Integer count, Long offset, String market, Long fromTransactionId, Long endTransactionId, String order, Long fromTimestamp, Long toTimestamp)
-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.knowm.xchange.service.trade.TradeService
cancelOrder, cancelOrder, changeOrder, createOpenOrdersParams, createTradeHistoryParams, getOpenOrders, getOrder, getTradeHistory, placeLimitOrder, placeMarketOrder, placeStopOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
YoBitTradeServiceRaw
public YoBitTradeServiceRaw(YoBitExchange exchange)
-
-
Method Detail
-
getOpenOrders
public OpenOrders getOpenOrders() throws IOException
Description copied from interface:TradeService
Gets the open orders- Specified by:
getOpenOrders
in interfaceTradeService
- Returns:
- the open orders, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
activeOrders
public BaseYoBitResponse activeOrders(OpenOrdersParamCurrencyPair params) throws IOException
- Throws:
IOException
-
trade
public BaseYoBitResponse trade(LimitOrder limitOrder) throws IOException
- Throws:
IOException
-
cancelOrder
public BaseYoBitResponse cancelOrder(CancelOrderByIdParams params) throws IOException
- Throws:
IOException
-
cancelOrderById
protected BaseYoBitResponse cancelOrderById(String orderId) throws IOException
- Throws:
IOException
-
tradeHistory
public BaseYoBitResponse tradeHistory(Integer count, Long offset, String market, Long fromTransactionId, Long endTransactionId, String order, Long fromTimestamp, Long toTimestamp) throws IOException
- Throws:
IOException
-
getOrder
public Collection<Order> getOrder(String... orderIds) throws IOException
Description copied from interface:TradeService
get's the latest order form the order book that with matching orderId- Specified by:
getOrder
in interfaceTradeService
- Returns:
- the order as it is on the exchange.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
-