Class TradeOgreTradeService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<TradeOgreExchange>
org.knowm.xchange.tradeogre.service.TradeOgreBaseService
org.knowm.xchange.tradeogre.service.TradeOgreTradeServiceRaw
org.knowm.xchange.tradeogre.service.TradeOgreTradeService
- All Implemented Interfaces:
BaseService
,TradeService
public class TradeOgreTradeService extends TradeOgreTradeServiceRaw implements TradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.tradeogre.service.TradeOgreBaseService
base64UserPwd, tradeOgre
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description TradeOgreTradeService(TradeOgreExchange exchange)
-
Method Summary
Modifier and Type Method Description OpenOrders
getOpenOrders()
Gets the open ordersOpenOrders
getOpenOrders(OpenOrdersParams params)
Gets the open ordersString
placeLimitOrder(LimitOrder limitOrder)
Place a limit orderMethods inherited from class org.knowm.xchange.tradeogre.service.TradeOgreTradeServiceRaw
cancelOrder, getOrders, placeOrder
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
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, getOpenPositions, getOrder, getOrder, getRequiredCancelOrderParamClasses, getRequiredOrderQueryParamClass, getTradeHistory, placeMarketOrder, placeStopOrder, verifyOrder, verifyOrder
-
Constructor Details
-
TradeOgreTradeService
-
-
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
-
getOpenOrders
Description copied from interface:TradeService
Gets the open orders- Specified by:
getOpenOrders
in interfaceTradeService
- Returns:
- the open orders, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
getOpenOrders
Description copied from interface:TradeService
Gets the open orders- Specified by:
getOpenOrders
in interfaceTradeService
- Parameters:
params
- The parameters describing the filter. Note thatOpenOrdersParams
is an empty interface. Exchanges should implement its own params object. Params should be create withTradeService.createOpenOrdersParams()
.- Returns:
- the open orders, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-