Package org.knowm.xchange.bybit.service
Class BybitTradeService
java.lang.Object
org.knowm.xchange.bybit.service.BybitBaseService
org.knowm.xchange.bybit.service.BybitTradeServiceRaw
org.knowm.xchange.bybit.service.BybitTradeService
- All Implemented Interfaces:
BaseService
,TradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.bybit.service.BybitBaseService
apiKey, bybit, bybitAuthenticated, nonceFactory, signatureCreator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamendOrder
(Order order) get's the latest order form the order book that with matching orderIdplaceLimitOrder
(LimitOrder limitOrder) Place a limit orderplaceMarketOrder
(MarketOrder marketOrder) Place a market orderMethods inherited from class org.knowm.xchange.bybit.service.BybitTradeServiceRaw
amendOrder, getBybitOrder, placeLimitOrder, placeMarketOrder
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, placeStopOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BybitTradeService
-
-
Method Details
-
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:
-
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:
-
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
-
amendOrder
- Throws:
IOException
-