public class BTCETradeService extends BTCETradeServiceRaw implements PollingTradeService
apiKey, btce, signatureCreatorexchange| Constructor and Description |
|---|
BTCETradeService(Exchange exchange)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelOrder(String orderId)
cancels order with matching orderId
|
TradeHistoryParams |
createTradeHistoryParams()
Create
TradeHistoryParams object specific to this exchange. |
OpenOrders |
getOpenOrders()
Gets the open orders
|
UserTrades |
getTradeHistory(Object... arguments)
gets trade history for user's account
|
UserTrades |
getTradeHistory(TradeHistoryParams params)
Supported parameters:
TradeHistoryParamPaging TradeHistoryParamsIdSpan TradeHistoryParamsTimeSpan
TradeHistoryParamCurrencyPair You can also override sorting order (default is descending) by using BTCETradeHistoryParams |
Map<Long,BTCETransHistoryResult> |
getTransHistory(BTCETransHistoryParams params)
Retrieve TransHistory.
|
String |
placeLimitOrder(LimitOrder limitOrder)
Place a limit order
|
String |
placeMarketOrder(MarketOrder marketOrder)
Implementation note: this method calls placeLimitOrder with LimitOrder created from passed MarketOrder and either max price in case of BID or min
proce in case of ASK, taken from the remote metadata cached in BTCEExchange
|
cancelBTCEOrder, getBTCEActiveOrders, getBTCETradeHistory, getBTCETransHistory, placeBTCEOrdercheckResultgetExchangeSymbols, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyOrder, verifyOrdergetExchangeSymbolspublic BTCETradeService(Exchange exchange)
exchange - public OpenOrders getOpenOrders() throws IOException
PollingTradeServicegetOpenOrders in interface PollingTradeServiceIOException - - Indication that a networking error occurred while fetching JSON datapublic String placeMarketOrder(MarketOrder marketOrder) throws IOException
placeMarketOrder in interface PollingTradeServiceIOException - - Indication that a networking error occurred while fetching JSON datapublic String placeLimitOrder(LimitOrder limitOrder) throws IOException
PollingTradeServiceplaceLimitOrder in interface PollingTradeServiceIOException - - Indication that a networking error occurred while fetching JSON datapublic boolean cancelOrder(String orderId) throws IOException
PollingTradeServicecancelOrder in interface PollingTradeServiceIOException - - Indication that a networking error occurred while fetching JSON datapublic UserTrades getTradeHistory(Object... arguments) throws IOException
PollingTradeServicegetTradeHistory in interface PollingTradeServicearguments - Vararg list of optional (nullable) arguments: (Long) arguments[0] Number of transactions to return (String) arguments[1]
TradableIdentifier (String) arguments[2] TransactionCurrency (Long) arguments[3] Starting IDIOExceptionpublic UserTrades getTradeHistory(TradeHistoryParams params) throws ExchangeException, IOException
TradeHistoryParamPaging TradeHistoryParamsIdSpan TradeHistoryParamsTimeSpan
TradeHistoryParamCurrencyPair You can also override sorting order (default is descending) by using BTCETradeHistoryParamsgetTradeHistory in interface PollingTradeServiceparams - The parameters describing the filter. Note that TradeHistoryParams is an empty interface. Exact set of interfaces that are
required or supported by this method is described by the type of object returned from PollingTradeService.createTradeHistoryParams() and the javadoc
of the method.ExchangeException - - Indication that the exchange reported some kind of error with the request or responseIOException - - Indication that a networking error occurred while fetching JSON dataPollingTradeService.getTradeHistory(Object...),
PollingTradeService.createTradeHistoryParams(),
TradeHistoryParamsAllpublic TradeHistoryParams createTradeHistoryParams()
PollingTradeServiceTradeHistoryParams object specific to this exchange. Object created by this method may be used to discover supported and required
PollingTradeService.getTradeHistory(TradeHistoryParams) parameters and should be passed only to the method in the same class as the createTradeHistoryParams
that created the object.createTradeHistoryParams in interface PollingTradeServicepublic Map<Long,BTCETransHistoryResult> getTransHistory(BTCETransHistoryParams params) throws ExchangeException, IOException
params - ExchangeExceptionIOExceptionCopyright © 2012–2017 Xeiam, LLC. All rights reserved.