BinanceApi
Binance api for elixir, includes the ability to utilize futures
Installation
If available in Hex, the package can be installed
by adding binance_api to your list of dependencies in mix.exs:
def deps do
[
{:binance_api, "~> 0.2"}
]
endConfig
config :binance_api,
api_key: "<BINANCE_API_KEY>",
secret_key: "<BINANCE_SECRET_KEY>",
base_url: "https://api.binance.com" # default,
secure_receive_window: 5_000 # default,
request: [
pool_timeout: 5_000 # default,
receive_timeout: 15_000 # default
]Goals
- To allow for multiple accounts to be used
- Access to trading on the futures API
- Access to trading on the spot API
- Access to accounts
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/binance_api.