Package org.knowm.xchange.bitso.service
Class BitsoTradeService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.bitso.service.BitsoBaseService
-
- org.knowm.xchange.bitso.service.BitsoTradeServiceRaw
-
- org.knowm.xchange.bitso.service.BitsoTradeService
-
- All Implemented Interfaces:
BaseService,TradeService
public class BitsoTradeService extends BitsoTradeServiceRaw implements TradeService
- Author:
- Piotr Ładyżyński
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description BitsoTradeService(Exchange exchange)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancelOrder(String orderId)booleancancelOrder(CancelOrderParams orderParams)OpenOrdersParamscreateOpenOrdersParams()TradeHistoryParamscreateTradeHistoryParams()OpenOrdersgetOpenOrders()OpenOrdersgetOpenOrders(OpenOrdersParams params)UserTradesgetTradeHistory(TradeHistoryParams params)Required parameter types:TradeHistoryParamPaging.getPageLength()StringplaceLimitOrder(LimitOrder limitOrder)StringplaceMarketOrder(MarketOrder marketOrder)-
Methods inherited from class org.knowm.xchange.bitso.service.BitsoTradeServiceRaw
buyBitoOrder, cancelBitsoOrder, getBitsoOpenOrders, getBitsoUserTransactions, getBitsoUserTransactions, sellBitsoOrder
-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, 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
changeOrder, getOrder, getOrder, placeStopOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
BitsoTradeService
public BitsoTradeService(Exchange exchange)
Constructor- Parameters:
exchange-
-
-
Method Detail
-
getOpenOrders
public OpenOrders getOpenOrders() throws IOException, BitsoException
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOExceptionBitsoException
-
getOpenOrders
public OpenOrders getOpenOrders(OpenOrdersParams params) throws IOException
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOException
-
placeMarketOrder
public String placeMarketOrder(MarketOrder marketOrder) throws IOException, BitsoException
- Specified by:
placeMarketOrderin interfaceTradeService- Throws:
IOExceptionBitsoException
-
placeLimitOrder
public String placeLimitOrder(LimitOrder limitOrder) throws IOException, BitsoException
- Specified by:
placeLimitOrderin interfaceTradeService- Throws:
IOExceptionBitsoException
-
cancelOrder
public boolean cancelOrder(String orderId) throws IOException, BitsoException
- Specified by:
cancelOrderin interfaceTradeService- Throws:
IOExceptionBitsoException
-
cancelOrder
public boolean cancelOrder(CancelOrderParams orderParams) throws IOException
- Specified by:
cancelOrderin interfaceTradeService- Throws:
IOException
-
getTradeHistory
public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException
Required parameter types:TradeHistoryParamPaging.getPageLength()Warning: using a limit here can be misleading. The underlying call retrieves trades, withdrawals, and deposits. So the example here will limit the result to 17 of those types and from those 17 only trades are returned. It is recommended to use the raw service demonstrated below if you want to use this feature.
- Specified by:
getTradeHistoryin interfaceTradeService- Throws:
IOException
-
createTradeHistoryParams
public TradeHistoryParams createTradeHistoryParams()
- Specified by:
createTradeHistoryParamsin interfaceTradeService
-
createOpenOrdersParams
public OpenOrdersParams createOpenOrdersParams()
- Specified by:
createOpenOrdersParamsin interfaceTradeService
-
-