Package org.knowm.xchange.mexc.service
Class MEXCTradeService
java.lang.Object
org.knowm.xchange.mexc.service.MEXCBaseService
org.knowm.xchange.mexc.service.MEXCTradeServiceRaw
org.knowm.xchange.mexc.service.MEXCTradeService
- All Implemented Interfaces:
BaseService
,TradeService
public class MEXCTradeService extends MEXCTradeServiceRaw implements TradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.mexc.service.MEXCBaseService
apiKey, mexcAuthenticated, nonceFactory, signatureCreator
-
Constructor Summary
Constructors Constructor Description MEXCTradeService(Exchange exchange)
-
Method Summary
Modifier and Type Method Description Collection<Order>
getOrder(String... orderIds)
get's the latest order form the order book that with matching orderIdString
placeLimitOrder(LimitOrder limitOrder)
Place a limit orderMethods inherited from class org.knowm.xchange.mexc.service.MEXCTradeServiceRaw
getOrders, placeOrder
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
cancelAllOrders, cancelOrder, cancelOrder, changeOrder, createOpenOrdersParams, createTradeHistoryParams, getOpenOrders, getOpenOrders, getOpenPositions, getOrder, getRequiredCancelOrderParamClasses, getRequiredOrderQueryParamClass, getTradeHistory, placeMarketOrder, placeStopOrder, verifyOrder, verifyOrder
-
Constructor Details
-
MEXCTradeService
-
-
Method Details
-
placeLimitOrder
Description copied from interface:TradeService
Place a limit orderIf your orders amount or limit price does to meet the restrictions dictated by
InstrumentMetaData
then the exchange will reject your order. UseOrderValuesHelper
to validate and / or adjust those values while you'r building an order.- Specified by:
placeLimitOrder
in interfaceTradeService
- Returns:
- the order ID
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data- See Also:
OrderValuesHelper
-
getOrder
Description copied from interface:TradeService
get's the latest order form the order book that with matching orderId- Specified by:
getOrder
in interfaceTradeService
- Returns:
- the order as it is on the exchange.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-