public class MercadoBitcoinTradeService extends MercadoBitcoinTradeServiceRaw implements PollingTradeService
exchange
Constructor and Description |
---|
MercadoBitcoinTradeService(Exchange exchange)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancelOrder(String orderId)
The ID is composed by the currency pair and the id number separated by colon, like:
btc_brl:3498 Please see and use
MercadoBitcoinUtils.makeMercadoBitcoinOrderId(com.xeiam.xchange.currency.CurrencyPair, java.lang.String) . |
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)
Required parameter types:
TradeHistoryParamPaging.getPageLength() |
String |
placeLimitOrder(LimitOrder limitOrder)
The result is not the pure order id.
|
String |
placeMarketOrder(MarketOrder marketOrder)
Place a market order
|
getMercadoBitcoinUserOrders, mercadoBitcoinCancelOrder, mercadoBitcoinPlaceLimitOrder
getExchangeSymbols, verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verifyOrder, verifyOrder
getExchangeSymbols
public MercadoBitcoinTradeService(Exchange exchange)
exchange
- public OpenOrders getOpenOrders() throws IOException
PollingTradeService
getOpenOrders
in interface PollingTradeService
IOException
- - Indication that a networking error occurred while fetching JSON datapublic String placeMarketOrder(MarketOrder marketOrder) throws IOException
PollingTradeService
placeMarketOrder
in interface PollingTradeService
IOException
- - Indication that a networking error occurred while fetching JSON datapublic String placeLimitOrder(LimitOrder limitOrder) throws IOException
cancelOrder(java.lang.String)
). Please see MercadoBitcoinUtils.makeMercadoBitcoinOrderId(com.xeiam.xchange.currency.CurrencyPair, java.lang.String)
.placeLimitOrder
in interface PollingTradeService
IOException
- - Indication that a networking error occurred while fetching JSON datapublic boolean cancelOrder(String orderId) throws IOException
btc_brl:3498
Please see and use
MercadoBitcoinUtils.makeMercadoBitcoinOrderId(com.xeiam.xchange.currency.CurrencyPair, java.lang.String)
.cancelOrder
in interface PollingTradeService
IOException
- - Indication that a networking error occurred while fetching JSON datapublic UserTrades getTradeHistory(Object... args) throws IOException
PollingTradeService
getTradeHistory
in interface PollingTradeService
IOException
- - Indication that a networking error occurred while fetching JSON datapublic UserTrades getTradeHistory(TradeHistoryParams params) throws IOException
TradeHistoryParamPaging.getPageLength()
getTradeHistory
in interface PollingTradeService
params
- 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.IOException
- - Indication that a networking error occurred while fetching JSON dataPollingTradeService.getTradeHistory(Object...)
,
PollingTradeService.createTradeHistoryParams()
,
TradeHistoryParamsAll
public TradeHistoryParams createTradeHistoryParams()
PollingTradeService
TradeHistoryParams
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 PollingTradeService
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.