Giter Club home page Giter Club logo

ex_ftx's Introduction

ExFtx

Build Status hex.pm version

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.13"}
  ]
end

Requirements

  • Erlang 22+
  • Elixir 1.10+

API Documentation

https://docs.ftx.com/#overview

REST API

Markets

  • GET /markets
  • GET /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 /futures
  • GET /futures/{future_name}
  • GET /futures/{future_name}/stats
  • GET /funding_rates
  • GET /indexes/{index_name}/weights
  • GET /expired_futures
  • GET /indexes/{market_name}/candles?resolution={resolution}&limit={limit}&start_time={start_time}&end_time={end_time}

Account

  • GET /account
  • GET /positions
  • POST /account/leverage

Subaccounts

  • GET /subaccounts
  • POST /subaccounts
  • POST /subaccounts/update_name
  • DELETE /subaccounts
  • GET /subaccounts/{nickname}/balances
  • POST /subaccounts/transfer

Wallet

  • GET /wallet/coins
  • GET /wallet/balances
  • GET /wallet/all_balances
  • GET /wallet/deposit_address/{coin}?method={method}
  • GET /wallet/deposits
  • GET /wallet/withdrawals
  • POST /wallet/withdrawals
  • GET /wallet/airdrops
  • GET /wallet/saved_addresses
  • POST /wallet/saved_addresses
  • DELETE /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}/triggers
  • GET /conditional_orders/history?market={market}
  • POST /orders
  • POST /conditional_orders
  • POST /orders/{order_id}/modify
  • POST /orders/by_client_id/{client_order_id}/modify
  • POST /conditional_orders/{order_id}/modify
  • GET /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/quotes
  • GET /otc/quotes/{quoteId}
  • POST /otc/quotes/{quote_id}/accept

Spot Margin

  • GET /spot_margin/history
  • GET /spot_margin/borrow_rates
  • GET /spot_margin/lending_rates
  • GET /spot_margin/borrow_summary
  • GET /spot_margin/market_info?market={market}
  • GET /spot_margin/borrow_history
  • GET /spot_margin/lending_history
  • GET /spot_margin/offers
  • GET /spot_margin/lending_info
  • POST /spot_margin/offers

Fills

  • GET /fills?market={market}

Funding Payments

  • GET /funding_payments

Leveraged Tokens

  • GET /lt/tokens
  • GET /lt/{token_name}
  • GET /lt/balances
  • GET /lt/creations
  • POST /lt/{token_name}/create
  • GET /lt/redemptions
  • POST /lt/{token_name}/redeem

Options

  • GET /options/requests
  • GET /options/my_requests
  • POST /options/requests
  • DELETE /options/requests/{request_id}
  • GET /options/requests/{request_id}/quotes
  • POST /options/requests/{request_id}/quotes
  • GET /options/my_quotes
  • DELETE /options/quotes/<quote_id>
  • POST /options/quotes/<quote_id>/accept
  • GET /options/account_info
  • GET /options/positions
  • GET /options/trades
  • GET /options/fills
  • GET /stats/24h_options_volume
  • GET /options/historical_volumes/BTC
  • GET /options/open_interest/BTC
  • GET options/historical_open_interest/BTC

SRM Staking

  • GET /staking/stakes
  • GET /staking/unstake_requests
  • GET /staking/balances
  • POST /staking/unstake_requests
  • DELETE /staking/unstake_requests/{request_id}
  • GET /staking/staking_rewards
  • POST /srm_stakes/stakes

Authors

License

ex_ftx is released under the MIT license

ex_ftx's People

Contributors

rupurt avatar dependabot[bot] avatar luoq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.