Package org.knowm.xchange.ftx
Interface FtxAuthenticated
- All Superinterfaces:
Ftx
@Path("/api")
@Produces("application/json")
@Consumes("application/json")
public interface FtxAuthenticated
extends Ftx
-
Method Summary
Modifier and TypeMethodDescriptionacceptConvert
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String quoteId, FtxConvertAcceptPayloadRequestDto payload) cancelAllOrders
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, CancelAllFtxOrdersParams payLoad) cancelConditionalOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String orderId) cancelOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String orderId) cancelOrderByClientId
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String clientOrderId) changeLeverage
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxLeverageDto leverage) changeSubAccountName
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, FtxChangeSubAccountNamePOJO payload) conditionalOrderHistory
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String market) createSubAccount
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxSubAccountRequestPOJO payload) deleteSubAccounts
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, FtxSubAccountRequestPOJO payload) fills
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String market, Long startTime, Long endTime) getAccountInformation
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount) getAllSubAccounts
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature) getBorrowHistory
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, Long start_time, Long end_time) getBorrowingInfos
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount) getBorrowRates
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature) getConvertStatus
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String quoteId) getFtxPositions
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, boolean showAvgPrice) getFundingPayments
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, Long startTime, Long endTime, String future) getlendingHistories
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount) getLendingInfos
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount) getLendingRates
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature) getOrderStatus
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String orderId) getSubAccountBalances
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String nickname) getTriggers
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String id) getWalletBalances
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount) modifyConditionalOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String orderId, FtxModifyConditionalOrderRequestPayload payload) modifyOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String orderId, FtxModifyOrderRequestPayload payload) modifyOrderByClientId
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String clientId, FtxModifyOrderRequestPayload payload) openConditionalOrders
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String market) openOrders
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String market) openOrdersWithoutMarket
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount) orderHistory
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, String market, Long startTime, Long endTime) placeConditionalOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxConditionalOrderRequestPayload payload) placeOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxOrderRequestPayload payload) simulateConvert
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxConvertSimulatePayloadRequestDto payload) submitLendingOffer
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxSubmitLendingOfferParams payload) transferBetweenSubAccounts
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String subaccount, FtxSubAccountTransferPOJO payload) Methods inherited from interface org.knowm.xchange.ftx.Ftx
getCandles, getMarket, getMarkets, getOrderbook, getTrades
-
Method Details
-
getAccountInformation
@GET @Path("/account") FtxResponse<FtxAccountDto> getAccountInformation(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount) throws IOException, FtxException - Throws:
IOException
FtxException
-
getWalletBalances
@GET @Path("/wallet/balances") FtxResponse<List<FtxWalletBalanceDto>> getWalletBalances(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount) throws IOException, FtxException - Throws:
IOException
FtxException
-
getFtxPositions
@GET @Path("/positions") FtxResponse<List<FtxPositionDto>> getFtxPositions(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @QueryParam("showAvgPrice") boolean showAvgPrice) throws IOException, FtxException - Throws:
IOException
FtxException
-
deleteSubAccounts
@DELETE @Path("/subaccounts") FtxResponse deleteSubAccounts(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, FtxSubAccountRequestPOJO payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
getAllSubAccounts
@GET @Path("/subaccounts") FtxResponse<List<FtxSubAccountDto>> getAllSubAccounts(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature) throws IOException, FtxException - Throws:
IOException
FtxException
-
createSubAccount
@POST @Path("/subaccounts") FtxResponse<FtxSubAccountDto> createSubAccount(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxSubAccountRequestPOJO payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
changeSubAccountName
@POST @Path("/subaccounts/update_name") FtxResponse changeSubAccountName(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, FtxChangeSubAccountNamePOJO payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
getSubAccountBalances
@GET @Path("/subaccounts/{nickname}/balances") FtxResponse<FtxSubAccountBalanceDto> getSubAccountBalances(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("nickname") String nickname) throws IOException, FtxException - Throws:
IOException
FtxException
-
transferBetweenSubAccounts
@POST @Path("/subaccounts/transfer") FtxResponse<FtxSubAccountTranferDto> transferBetweenSubAccounts(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxSubAccountTransferPOJO payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
simulateConvert
@POST @Path("/otc/quotes") FtxResponse<FtxConvertSimulatetDto> simulateConvert(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxConvertSimulatePayloadRequestDto payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
getConvertStatus
@GET @Path("/otc/quotes/{quoteId}") FtxResponse<FtxConvertDto> getConvertStatus(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("quoteId") String quoteId) throws IOException, FtxException - Throws:
IOException
FtxException
-
acceptConvert
@POST @Path("/otc/quotes/{quoteId}/accept") FtxResponse<FtxConvertAcceptRequestDto> acceptConvert(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("quoteId") String quoteId, FtxConvertAcceptPayloadRequestDto payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
placeOrder
@POST @Path("/orders") FtxResponse<FtxOrderDto> placeOrder(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxOrderRequestPayload payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
modifyOrder
@POST @Path("/orders/{order_id}/modify") FtxResponse<FtxOrderDto> modifyOrder(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("order_id") String orderId, FtxModifyOrderRequestPayload payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
modifyOrderByClientId
@POST @Path("/orders/by_client_id/{client_order_id}/modify") FtxResponse<FtxOrderDto> modifyOrderByClientId(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("client_order_id") String clientId, FtxModifyOrderRequestPayload payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
getOrderStatus
@GET @Path("/orders/{order_id}") FtxResponse<FtxOrderDto> getOrderStatus(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("order_id") String orderId) throws IOException, FtxException - Throws:
IOException
FtxException
-
openOrders
@GET @Path("/orders?market={market}") FtxResponse<List<FtxOrderDto>> openOrders(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("market") String market) throws IOException, FtxException - Throws:
IOException
FtxException
-
openOrdersWithoutMarket
@GET @Path("/orders") FtxResponse<List<FtxOrderDto>> openOrdersWithoutMarket(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount) throws IOException, FtxException - Throws:
IOException
FtxException
-
cancelOrder
@DELETE @Path("/orders/{orderId}") FtxResponse<String> cancelOrder(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("orderId") String orderId) throws IOException, FtxException - Throws:
IOException
FtxException
-
cancelAllOrders
@DELETE @Path("/orders") FtxResponse<String> cancelAllOrders(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, CancelAllFtxOrdersParams payLoad) throws IOException, FtxException - Throws:
IOException
FtxException
-
orderHistory
@GET @Path("/orders/history") FtxResponse<List<FtxOrderDto>> orderHistory(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @QueryParam("market") String market, @QueryParam("start_time") Long startTime, @QueryParam("end_time") Long endTime) throws IOException, FtxException - Throws:
IOException
FtxException
-
cancelOrderByClientId
@DELETE @Path("/orders/by_client_id/{client_order_id}") FtxResponse<FtxOrderDto> cancelOrderByClientId(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("client_order_id") String clientOrderId) throws IOException, FtxException - Throws:
IOException
FtxException
-
fills
@GET @Path("/fills") FtxResponse<List<FtxFillDto>> fills(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @QueryParam("market") String market, @QueryParam("start_time") Long startTime, @QueryParam("end_time") Long endTime) throws IOException, FtxException - Throws:
IOException
FtxException
-
changeLeverage
@POST @Path("/account/leverage") FtxResponse<FtxLeverageDto> changeLeverage(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxLeverageDto leverage) throws IOException, FtxException - Throws:
IOException
FtxException
-
getBorrowHistory
@GET @Path("/spot_margin/borrow_history") FtxResponse<List<FtxBorrowingHistoryDto>> getBorrowHistory(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @QueryParam("start_time") Long start_time, @QueryParam("end_time") Long end_time) throws IOException, FtxException - Throws:
IOException
FtxException
-
getFundingPayments
@GET @Path("/funding_payments") FtxResponse<List<FtxFundingPaymentsDto>> getFundingPayments(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @QueryParam("start_time") Long startTime, @QueryParam("end_time") Long endTime, @QueryParam("future") String future) throws IOException, FtxException - Throws:
IOException
FtxException
-
getLendingInfos
@GET @Path("/spot_margin/lending_info") FtxResponse<List<FtxLendingInfoDto>> getLendingInfos(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount) throws IOException, FtxException - Throws:
IOException
FtxException
-
getLendingRates
@GET @Path("/spot_margin/lending_rates") FtxResponse<List<FtxLendingRatesDto>> getLendingRates(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature) throws IOException, FtxException - Throws:
IOException
FtxException
-
getlendingHistories
@GET @Path("/spot_margin/lending_history") FtxResponse<List<FtxLendingHistoryDto>> getlendingHistories(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount) throws IOException, FtxException - Throws:
IOException
FtxException
-
submitLendingOffer
@POST @Path("/spot_margin/offers") FtxResponse submitLendingOffer(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxSubmitLendingOfferParams payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
getBorrowRates
@GET @Path("/spot_margin/borrow_rates") FtxResponse<List<FtxBorrowingRatesDto>> getBorrowRates(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature) throws IOException, FtxException - Throws:
IOException
FtxException
-
getBorrowingInfos
@GET @Path("/spot_margin/borrow_info") FtxResponse<List<FtxBorrowingInfoDto>> getBorrowingInfos(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount) throws IOException, FtxException - Throws:
IOException
FtxException
-
placeConditionalOrder
@POST @Path("/conditional_orders") FtxResponse<FtxConditionalOrderDto> placeConditionalOrder(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, FtxConditionalOrderRequestPayload payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
modifyConditionalOrder
@POST @Path("/conditional_orders/{order_id}/modify") FtxResponse<FtxConditionalOrderDto> modifyConditionalOrder(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("order_id") String orderId, FtxModifyConditionalOrderRequestPayload payload) throws IOException, FtxException - Throws:
IOException
FtxException
-
cancelConditionalOrder
@DELETE @Path("/conditional_orders/{orderId}") FtxResponse<String> cancelConditionalOrder(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("orderId") String orderId) throws IOException, FtxException - Throws:
IOException
FtxException
-
conditionalOrderHistory
@GET @Path("/conditional_orders/history?market={market}") FtxResponse<List<FtxConditionalOrderDto>> conditionalOrderHistory(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("market") String market) throws IOException, FtxException - Throws:
IOException
FtxException
-
openConditionalOrders
@GET @Path("/conditional_orders?market={market}") FtxResponse<List<FtxConditionalOrderDto>> openConditionalOrders(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("market") String market) throws IOException, FtxException - Throws:
IOException
FtxException
-
getTriggers
@GET @Path("/conditional_orders/{id}/triggers") FtxResponse<List<FtxTriggerDto>> getTriggers(@HeaderParam("FTX-KEY") String apiKey, @HeaderParam("FTX-TS") Long nonce, @HeaderParam("FTX-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("id") String id) throws IOException, FtxException - Throws:
IOException
FtxException
-