Package org.knowm.xchange.ftx.service
Class FtxTradeServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.ftx.service.FtxBaseService
org.knowm.xchange.ftx.service.FtxTradeServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
FtxTradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.ftx.service.FtxBaseService
ftx, signatureCreator
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancelAllFtxOrders
(String subaccount, CancelAllFtxOrdersParams payLoad) boolean
cancelFtxByClientId
(String subaccount, String clientId) boolean
cancelFtxConditionalOrderForSubAccount
(String subaccount, String orderId) boolean
cancelFtxOrder
(String subaccount, String orderId) boolean
cancelOrderForSubaccount
(String subaccount, String orderId) boolean
cancelOrderForSubaccount
(String subaccount, CancelOrderParams orderParams) boolean
cancelStopOrder
(String orderId) changeStopOrder
(StopOrder stopOrder) getFtxAllOpenOrdersForSubaccount
(String subaccount) getFtxConditionalOrderHistory
(String subaccount, String market) getFtxFills
(String subaccount, String market, Long startTime, Long endTime) getFtxOpenConditionalOrdersForSubAccount
(String subaccount, String market) getFtxOpenOrders
(String subaccount, String market) getFtxOrderHistory
(String subaccount, String market, Long startTime, Long endTime) getFtxOrderStatus
(String subaccount, String orderId) getFtxPositions
(String subaccount) getFtxTriggers
(String orderId) getFtxTriggersForSubAccount
(String subaccount, String orderId) getOpenOrdersForSubaccount
(String subaccount) getOpenOrdersForSubaccount
(String subaccount, OpenOrdersParams params) getOpenPositionsForSubaccount
(String subaccount) getOrderFromSubaccount
(String subaccount, String... orderIds) getOrderHistoryForSubaccount
(String subaccount, TradeHistoryParams params) getTradeHistoryForSubaccount
(String subaccount, TradeHistoryParams params) modifyFtxConditionalOrderForSubAccount
(String subaccount, String orderId, FtxModifyConditionalOrderRequestPayload payload) modifyFtxOrder
(String subaccount, String orderId, FtxModifyOrderRequestPayload payload) modifyFtxOrderByClientId
(String subaccount, String clientId, FtxModifyOrderRequestPayload payload) placeLimitOrderForSubaccount
(String subaccount, LimitOrder limitOrder) placeMarketOrderForSubaccount
(String subaccount, MarketOrder marketOrder) placeNewFtxConditionalOrderForSubAccount
(String subaccount, FtxConditionalOrderRequestPayload payload) placeNewFtxOrder
(String subaccount, FtxOrderRequestPayload payload) placeStopOrderForSubAccount
(String subaccount, StopOrder stopOrder) Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
FtxTradeServiceRaw
-
-
Method Details
-
placeMarketOrderForSubaccount
public String placeMarketOrderForSubaccount(String subaccount, MarketOrder marketOrder) throws IOException - Throws:
IOException
-
placeLimitOrderForSubaccount
public String placeLimitOrderForSubaccount(String subaccount, LimitOrder limitOrder) throws IOException - Throws:
IOException
-
placeNewFtxOrder
public FtxResponse<FtxOrderDto> placeNewFtxOrder(String subaccount, FtxOrderRequestPayload payload) throws FtxException, IOException - Throws:
FtxException
IOException
-
modifyFtxOrder
public FtxResponse<FtxOrderDto> modifyFtxOrder(String subaccount, String orderId, FtxModifyOrderRequestPayload payload) throws FtxException, IOException - Throws:
FtxException
IOException
-
modifyFtxOrderByClientId
public FtxResponse<FtxOrderDto> modifyFtxOrderByClientId(String subaccount, String clientId, FtxModifyOrderRequestPayload payload) throws FtxException, IOException - Throws:
FtxException
IOException
-
cancelOrderForSubaccount
- Throws:
IOException
-
cancelFtxOrder
- Throws:
FtxException
IOException
-
cancelFtxByClientId
public boolean cancelFtxByClientId(String subaccount, String clientId) throws FtxException, IOException - Throws:
FtxException
IOException
-
cancelOrderForSubaccount
public boolean cancelOrderForSubaccount(String subaccount, CancelOrderParams orderParams) throws IOException - Throws:
IOException
-
cancelAllFtxOrders
public boolean cancelAllFtxOrders(String subaccount, CancelAllFtxOrdersParams payLoad) throws FtxException, IOException - Throws:
FtxException
IOException
-
getOrderFromSubaccount
public Collection<Order> getOrderFromSubaccount(String subaccount, String... orderIds) throws IOException - Throws:
IOException
-
getFtxOpenOrders
public FtxResponse<List<FtxOrderDto>> getFtxOpenOrders(String subaccount, String market) throws FtxException, IOException - Throws:
FtxException
IOException
-
getOrderHistoryForSubaccount
public OpenOrders getOrderHistoryForSubaccount(String subaccount, TradeHistoryParams params) throws IOException - Throws:
IOException
-
getTradeHistoryForSubaccount
public UserTrades getTradeHistoryForSubaccount(String subaccount, TradeHistoryParams params) throws IOException - Throws:
IOException
-
getFtxOrderHistory
public FtxResponse<List<FtxOrderDto>> getFtxOrderHistory(String subaccount, String market, Long startTime, Long endTime) throws FtxException, IOException - Throws:
FtxException
IOException
-
getFtxFills
public FtxResponse<List<FtxFillDto>> getFtxFills(String subaccount, String market, Long startTime, Long endTime) throws FtxException, IOException - Throws:
FtxException
IOException
-
getOpenOrdersForSubaccount
- Throws:
IOException
-
getOpenOrdersForSubaccount
public OpenOrders getOpenOrdersForSubaccount(String subaccount, OpenOrdersParams params) throws IOException - Throws:
IOException
-
getFtxAllOpenOrdersForSubaccount
public FtxResponse<List<FtxOrderDto>> getFtxAllOpenOrdersForSubaccount(String subaccount) throws FtxException, IOException - Throws:
FtxException
IOException
-
getFtxOrderStatus
public FtxResponse<FtxOrderDto> getFtxOrderStatus(String subaccount, String orderId) throws FtxException, IOException - Throws:
FtxException
IOException
-
getOpenPositionsForSubaccount
- Throws:
IOException
-
getFtxPositions
public FtxResponse<List<FtxPositionDto>> getFtxPositions(String subaccount) throws FtxException, IOException - Throws:
FtxException
IOException
-
placeStopOrderForSubAccount
public String placeStopOrderForSubAccount(String subaccount, StopOrder stopOrder) throws IOException - Throws:
IOException
-
cancelStopOrder
- Throws:
IOException
-
changeStopOrder
- Throws:
IOException
-
placeNewFtxConditionalOrderForSubAccount
public FtxResponse<FtxConditionalOrderDto> placeNewFtxConditionalOrderForSubAccount(String subaccount, FtxConditionalOrderRequestPayload payload) throws FtxException, IOException - Throws:
FtxException
IOException
-
modifyFtxConditionalOrderForSubAccount
public FtxResponse<FtxConditionalOrderDto> modifyFtxConditionalOrderForSubAccount(String subaccount, String orderId, FtxModifyConditionalOrderRequestPayload payload) throws FtxException, IOException - Throws:
FtxException
IOException
-
cancelFtxConditionalOrderForSubAccount
public boolean cancelFtxConditionalOrderForSubAccount(String subaccount, String orderId) throws FtxException, IOException - Throws:
FtxException
IOException
-
getFtxOpenConditionalOrdersForSubAccount
public FtxResponse<List<FtxConditionalOrderDto>> getFtxOpenConditionalOrdersForSubAccount(String subaccount, String market) throws FtxException, IOException - Throws:
FtxException
IOException
-
getFtxConditionalOrderHistory
public FtxResponse<List<FtxConditionalOrderDto>> getFtxConditionalOrderHistory(String subaccount, String market) throws FtxException, IOException - Throws:
FtxException
IOException
-
getFtxTriggersForSubAccount
public FtxResponse<List<FtxTriggerDto>> getFtxTriggersForSubAccount(String subaccount, String orderId) throws FtxException, IOException - Throws:
FtxException
IOException
-
getFtxTriggers
- Throws:
FtxException
IOException
-