BinanceApi

Hex pm

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

Config

config :binance_api,
api_key: "<BINANCE_API_KEY>",
secret_key: "<BINANCE_SECRET_KEY>",
base_url: "https://api.binance.com" # default,
base_futures_url: "https://api.binance.com" # default,
secure_receive_window: 5_000 # default,
request: [
pool_timeout: 5_000 # default,
receive_timeout: 15_000 # default
]

Goals

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/binance_api.