ExFtx
FTX API Client for Elixir
Installation
Add the ex_ftx package to your list of dependencies in mix.exs:
def deps do
[
{:ex_ftx, "~> 0.0.14"}
]
endRequirements
- Erlang 22+
- Elixir 1.10+
API Documentation
https://docs.ftx.com/#overview
REST API
Markets
GET /marketsGET /markets/{market_name}GET /markets/{market_name}/orderbook?depth={depth}GET /markets/{market_name}/trades?limit={limit}&start_time={start_time}&end_time={end_time}GET /markets/{market_name}/candles?resolution={resolution}&limit={limit}&start_time={start_time}&end_time={end_time}
Futures
GET /futuresGET /futures/{future_name}GET /futures/{future_name}/statsGET /funding_ratesGET /indexes/{index_name}/weightsGET /expired_futuresGET /indexes/{market_name}/candles?resolution={resolution}&limit={limit}&start_time={start_time}&end_time={end_time}
Account
GET /accountGET /positionsPOST /account/leverage
Subaccounts
GET /subaccountsPOST /subaccountsPOST /subaccounts/update_nameDELETE /subaccountsGET /subaccounts/{nickname}/balancesPOST /subaccounts/transfer
Wallet
GET /wallet/coinsGET /wallet/balancesGET /wallet/all_balancesGET /wallet/deposit_address/{coin}?method={method}GET /wallet/depositsGET /wallet/withdrawalsPOST /wallet/withdrawalsGET /wallet/airdropsGET /wallet/saved_addressesPOST /wallet/saved_addressesDELETE /wallet/saved_addresses/{saved_address_id}
Orders
GET /orders?market={market}GET /orders/history?market={market}GET /conditional_orders?market={market}GET /conditional_orders/{conditional_order_id}/triggersGET /conditional_orders/history?market={market}POST /ordersPOST /conditional_ordersPOST /orders/{order_id}/modifyPOST /orders/by_client_id/{client_order_id}/modifyPOST /conditional_orders/{order_id}/modifyGET /orders/{order_id}GET /orders/by_client_id/{client_order_id}DELETE /orders/{order_id}DELETE /orders/by_client_id/{client_order_id}DELETE /conditional_orders/{id}DELETE /orders
Convert
POST /otc/quotesGET /otc/quotes/{quoteId}POST /otc/quotes/{quote_id}/accept
Spot Margin
GET /spot_margin/historyGET /spot_margin/borrow_ratesGET /spot_margin/lending_ratesGET /spot_margin/borrow_summaryGET /spot_margin/market_info?market={market}GET /spot_margin/borrow_historyGET /spot_margin/lending_historyGET /spot_margin/offersGET /spot_margin/lending_infoPOST /spot_margin/offers
Fills
GET /fills?market={market}
Funding Payments
GET /funding_payments
Leveraged Tokens
GET /lt/tokensGET /lt/{token_name}GET /lt/balancesGET /lt/creationsPOST /lt/{token_name}/createGET /lt/redemptionsPOST /lt/{token_name}/redeem
Options
GET /options/requestsGET /options/my_requestsPOST /options/requestsDELETE /options/requests/{request_id}GET /options/requests/{request_id}/quotesPOST /options/requests/{request_id}/quotesGET /options/my_quotesDELETE /options/quotes/<quote_id>POST /options/quotes/<quote_id>/acceptGET /options/account_infoGET /options/positionsGET /options/tradesGET /options/fillsGET /stats/24h_options_volumeGET /options/historical_volumes/BTCGET /options/open_interest/BTCGET options/historical_open_interest/BTC
SRM Staking
GET /staking/stakesGET /staking/unstake_requestsGET /staking/balancesPOST /staking/unstake_requestsDELETE /staking/unstake_requests/{request_id}GET /staking/staking_rewardsPOST /srm_stakes/stakes
Authors
- Alex Kwiatkowski - alex+git@fremantle.io
License
ex_ftx is released under the MIT license