public class BitsoTradeService extends BitsoTradeServiceRaw implements TradeService
exchange| Constructor and Description |
|---|
BitsoTradeService(Exchange exchange)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelOrder(CancelOrderParams orderParams) |
boolean |
cancelOrder(String orderId) |
OpenOrdersParams |
createOpenOrdersParams() |
TradeHistoryParams |
createTradeHistoryParams() |
OpenOrders |
getOpenOrders() |
OpenOrders |
getOpenOrders(OpenOrdersParams params) |
Collection<Order> |
getOrder(String... orderIds) |
UserTrades |
getTradeHistory(TradeHistoryParams params)
Required parameter types:
TradeHistoryParamPaging.getPageLength()
Warning: using a limit here can be misleading. |
String |
placeLimitOrder(LimitOrder limitOrder) |
String |
placeMarketOrder(MarketOrder marketOrder) |
buyBitoOrder, cancelBitsoOrder, getBitsoOpenOrders, getBitsoUserTransactions, getBitsoUserTransactions, sellBitsoOrdergetClientConfig, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyOrder, verifyOrderpublic BitsoTradeService(Exchange exchange)
exchange - public OpenOrders getOpenOrders() throws IOException, BitsoException
getOpenOrders in interface TradeServiceIOExceptionBitsoExceptionpublic OpenOrders getOpenOrders(OpenOrdersParams params) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
getOpenOrders in interface TradeServiceExchangeExceptionNotAvailableFromExchangeExceptionNotYetImplementedForExchangeExceptionIOExceptionpublic String placeMarketOrder(MarketOrder marketOrder) throws IOException, BitsoException
placeMarketOrder in interface TradeServiceIOExceptionBitsoExceptionpublic String placeLimitOrder(LimitOrder limitOrder) throws IOException, BitsoException
placeLimitOrder in interface TradeServiceIOExceptionBitsoExceptionpublic boolean cancelOrder(String orderId) throws IOException, BitsoException
cancelOrder in interface TradeServiceIOExceptionBitsoExceptionpublic boolean cancelOrder(CancelOrderParams orderParams) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
cancelOrder in interface TradeServiceExchangeExceptionNotAvailableFromExchangeExceptionNotYetImplementedForExchangeExceptionIOExceptionpublic UserTrades getTradeHistory(TradeHistoryParams params) throws IOException
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.getTradeHistory in interface TradeServiceIOExceptionpublic TradeHistoryParams createTradeHistoryParams()
createTradeHistoryParams in interface TradeServicepublic OpenOrdersParams createOpenOrdersParams()
createOpenOrdersParams in interface TradeServicepublic Collection<Order> getOrder(String... orderIds) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
getOrder in interface TradeServiceExchangeExceptionNotAvailableFromExchangeExceptionNotYetImplementedForExchangeExceptionIOExceptionCopyright © 2012–2017 Knowm Inc.. All rights reserved.