Class DeribitTradeServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<DeribitExchange>
org.knowm.xchange.deribit.v2.service.DeribitBaseService
org.knowm.xchange.deribit.v2.service.DeribitTradeServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
DeribitTradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.deribit.v2.service.DeribitBaseService
deribit, deribitAuth, deribitAuthenticated
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuy
(String instrumentName, BigDecimal amount, OrderType type, String label, BigDecimal price, TimeInForce timeInForce, BigDecimal maxShow, Boolean postOnly, Boolean rejectPostOnly, Boolean reduceOnly, BigDecimal triggerPrice, Trigger trigger, AdvancedOptions advanced, Boolean mmp) cancelByLabel
(String label) edit
(String orderId, BigDecimal amount, BigDecimal price, Boolean postOnly, Boolean rejectPostOnly, Boolean reduceOnly, BigDecimal triggerPrice, AdvancedOptions advanced, Boolean mmp) getOpenOrdersByCurrency
(String currency, Kind kind, String type) getOpenOrdersByInstrument
(String instrumentName, String type) getOrderHistoryByCurrency
(String currency, Kind kind, Integer count, Integer offset, Boolean includeOld, Boolean includeUnfilled) getOrderHistoryByInstrument
(String instrumentName, Integer count, Integer offset, Boolean includeOld, Boolean includeUnfilled) getOrderState
(String orderId) getUserSettlementsByInstrument
(String instrumentName, SettlementType type, Integer count, String continuation) getUserTradesByCurrency
(String currency, Kind kind, String startId, String endId, Integer count, Boolean includeOld, String sorting) getUserTradesByCurrencyAndTime
(String currency, Kind kind, Date startTimestamp, Date endTimestamp, Integer count, Boolean includeOld, String sorting) getUserTradesByInstrument
(String instrumentName, Integer startSeq, Integer endSeq, Integer count, Boolean includeOld, String sorting) getUserTradesByInstrumentAndTime
(String instrumentName, Date startTimestamp, Date endTimestamp, Integer count, Boolean includeOld, String sorting) sell
(String instrumentName, BigDecimal amount, OrderType type, String label, BigDecimal price, TimeInForce timeInForce, BigDecimal maxShow, Boolean postOnly, Boolean rejectPostOnly, Boolean reduceOnly, BigDecimal triggerPrice, Trigger trigger, AdvancedOptions advanced, Boolean mmp) Methods inherited from class org.knowm.xchange.deribit.v2.service.DeribitBaseService
getDeribitAuthentication
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
DeribitTradeServiceRaw
-
-
Method Details
-
buy
public OrderPlacement buy(String instrumentName, BigDecimal amount, OrderType type, String label, BigDecimal price, TimeInForce timeInForce, BigDecimal maxShow, Boolean postOnly, Boolean rejectPostOnly, Boolean reduceOnly, BigDecimal triggerPrice, Trigger trigger, AdvancedOptions advanced, Boolean mmp) throws IOException - Throws:
IOException
-
sell
public OrderPlacement sell(String instrumentName, BigDecimal amount, OrderType type, String label, BigDecimal price, TimeInForce timeInForce, BigDecimal maxShow, Boolean postOnly, Boolean rejectPostOnly, Boolean reduceOnly, BigDecimal triggerPrice, Trigger trigger, AdvancedOptions advanced, Boolean mmp) throws IOException - Throws:
IOException
-
edit
public OrderPlacement edit(String orderId, BigDecimal amount, BigDecimal price, Boolean postOnly, Boolean rejectPostOnly, Boolean reduceOnly, BigDecimal triggerPrice, AdvancedOptions advanced, Boolean mmp) throws IOException - Throws:
IOException
-
cancel
- Throws:
IOException
-
cancelByLabel
- Throws:
IOException
-
cancelAll
- Throws:
IOException
-
getOpenOrdersByCurrency
public List<Order> getOpenOrdersByCurrency(String currency, Kind kind, String type) throws IOException - Throws:
IOException
-
getOpenOrdersByInstrument
- Throws:
IOException
-
getUserTradesByCurrency
public UserTrades getUserTradesByCurrency(String currency, Kind kind, String startId, String endId, Integer count, Boolean includeOld, String sorting) throws IOException - Throws:
IOException
-
getUserTradesByCurrencyAndTime
public UserTrades getUserTradesByCurrencyAndTime(String currency, Kind kind, Date startTimestamp, Date endTimestamp, Integer count, Boolean includeOld, String sorting) throws IOException - Throws:
IOException
-
getUserTradesByInstrument
public UserTrades getUserTradesByInstrument(String instrumentName, Integer startSeq, Integer endSeq, Integer count, Boolean includeOld, String sorting) throws IOException - Throws:
IOException
-
getUserTradesByInstrumentAndTime
public UserTrades getUserTradesByInstrumentAndTime(String instrumentName, Date startTimestamp, Date endTimestamp, Integer count, Boolean includeOld, String sorting) throws IOException - Throws:
IOException
-
getUserSettlementsByInstrument
public UserSettlements getUserSettlementsByInstrument(String instrumentName, SettlementType type, Integer count, String continuation) throws IOException - Throws:
IOException
-
getOrderHistoryByCurrency
public List<Order> getOrderHistoryByCurrency(String currency, Kind kind, Integer count, Integer offset, Boolean includeOld, Boolean includeUnfilled) throws IOException - Throws:
IOException
-
getOrderHistoryByInstrument
public List<Order> getOrderHistoryByInstrument(String instrumentName, Integer count, Integer offset, Boolean includeOld, Boolean includeUnfilled) throws IOException - Throws:
IOException
-
getOrderState
- Throws:
IOException
-