Package org.knowm.xchange.upbit.service
Class UpbitTradeService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.upbit.service.UpbitBaseService
org.knowm.xchange.upbit.service.UpbitTradeServiceRaw
org.knowm.xchange.upbit.service.UpbitTradeService
- All Implemented Interfaces:
BaseService,TradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.upbit.service.UpbitBaseService
apiKey, apiSecret, signatureCreator, upbit, urlFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancelOrder(CancelOrderParams orderParams) cancels order with matching orderParamsgetOrder(OrderQueryParams... orderQueryParams) get's the latest order form the order book that with matching orderQueryParamsplaceLimitOrder(LimitOrder limitOrder) Place a limit orderplaceMarketOrder(MarketOrder marketOrder) Place a market orderMethods inherited from class org.knowm.xchange.upbit.service.UpbitTradeServiceRaw
cancelOrderRaw, getOrderRaw, getWallet, limitOrder, marketOrderMethods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.knowm.xchange.service.trade.TradeService
cancelAllOrders, cancelOrder, changeOrder, createOpenOrdersParams, createTradeHistoryParams, getOpenOrders, getOpenOrders, getOpenPositions, getOrder, getRequiredCancelOrderParamClasses, getRequiredOrderQueryParamClass, getTradeHistory, placeStopOrder, verifyOrder, verifyOrder
-
Constructor Details
-
UpbitTradeService
- Parameters:
exchange-
-
-
Method Details
-
placeLimitOrder
Description copied from interface:TradeServicePlace a limit orderIf your orders amount or limit price does to meet the restrictions dictated by
InstrumentMetaDatathen the exchange will reject your order. UseOrderValuesHelperto validate and / or adjust those values while you'r building an order.- Specified by:
placeLimitOrderin interfaceTradeService- Returns:
- the order ID
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data- See Also:
-
cancelOrder
Description copied from interface:TradeServicecancels order with matching orderParams- Specified by:
cancelOrderin interfaceTradeService- Returns:
- true if order was successfully cancelled, false otherwise.
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data
-
getOrder
Description copied from interface:TradeServiceget's the latest order form the order book that with matching orderQueryParams- Specified by:
getOrderin interfaceTradeService- Returns:
- the order as it is on the exchange.
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data
-
placeMarketOrder
Description copied from interface:TradeServicePlace a market orderIf your orders amount does to meet the restrictions dictated by
InstrumentMetaDatathen the exchange will reject your order. UseOrderValuesHelperto validate and / or adjust it while you'r building an order.- Specified by:
placeMarketOrderin interfaceTradeService- Returns:
- the order ID
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data- See Also:
-