View Source BinanceHttp

Unofficial http client for binance api

installation

Installation

Installation from GitHub:

def deps do
  [
    {:binance_http, git: "https://github.com/vlnic/binance_http.git", tag: "0.1"}
  ]
end

example

Example

BinanceHttp.Api.V3.Market.current_average_price(%{symbol: "ETHUSDT"})

{:ok, %{"mins" => 5, "price" => "2855.49383170"}}

configuration

Configuration

import Config

config :binance_http,
       secret_key: "your secret key",
       api_key: "your api key"

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