public class ANXTradeService extends ANXTradeServiceRaw implements PollingTradeService
exchange| Constructor and Description |
|---|
ANXTradeService(BaseExchange baseExchange)
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... args)
gets trade history for user's account
|
UserTrades |
getTradeHistory(TradeHistoryParams params)
Suported parameter types:
TradeHistoryParamsTimeSpan |
String |
placeLimitOrder(LimitOrder limitOrder)
Place a limit order
|
String |
placeMarketOrder(MarketOrder marketOrder)
Place a market order
|
cancelANXOrder, getANXOpenOrders, getANXOpenOrders, getANXOrderResult, getExecutedANXTrades, placeANXLimitOrder, placeANXMarketOrderhandleError, handleHttpErrorgetExchangeSymbols, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyOrder, verifyOrdergetExchangeSymbolspublic ANXTradeService(BaseExchange baseExchange)
baseExchange - 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
PollingTradeServiceplaceMarketOrder 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... args) throws IOException
PollingTradeServicegetTradeHistory in interface PollingTradeServiceargs - Accept zero or 2 parameters, both are unix time: Long from, Long toIOException - - Indication that a networking error occurred while fetching JSON datapublic UserTrades getTradeHistory(TradeHistoryParams params) throws ExchangeException, IOException
TradeHistoryParamsTimeSpangetTradeHistory 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 PollingTradeServiceCopyright © 2012–2017 Xeiam, LLC. All rights reserved.