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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget's the latest order form the order book that with matching orderIdplaceMarketOrder
(MarketOrder marketOrder) Place a market orderMethods inherited from class org.knowm.xchange.bybit.service.BybitTradeServiceRaw
getBybitOrder, 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, placeLimitOrder, 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:
-
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
-