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 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, placeMarketOrderMethods 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, cancelOrder, changeOrder, createOpenOrdersParams, createTradeHistoryParams, getOpenOrders, getOpenOrders, getOpenPositions, getOrder, getRequiredCancelOrderParamClasses, getRequiredOrderQueryParamClass, getTradeHistory, placeStopOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BybitTradeService
-
-
Method Details
-
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:
-
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:
-
getOrder
Description copied from interface:TradeServiceget's the latest order form the order book that with matching orderId- 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
-
amendOrder
- Throws:
IOException
-