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, url
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancelOrder
(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, marketOrder
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, 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: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:
-
cancelOrder
Description copied from interface:TradeService
cancels order with matching orderParams- Specified by:
cancelOrder
in 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:TradeService
get's the latest order form the order book that with matching orderQueryParams- 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
-
placeMarketOrder
Description copied from interface:TradeService
Place a market orderIf your orders amount does to meet the restrictions dictated by
InstrumentMetaData
then the exchange will reject your order. UseOrderValuesHelper
to validate and / or adjust it while you'r building an order.- Specified by:
placeMarketOrder
in interfaceTradeService
- Returns:
- the order ID
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data- See Also:
-