Skip to content

straw-hat-labs/bittrex

Repository files navigation

Bittrex

Hex.pm CI Status Code Coverage

Bittrex API integration.

Usage

First, create the credentials from Bittrex. To manage your API keys please goto Settings -> Manage API Keys on Bittrex.

You need to create an Bittrex.Client using Bittrex.Client.new/1

client = Bittrex.Client.new(%{
  api_key: "my api key",
  api_secret: "my api secret"
})

Now you can use the available functions for communicate with Bittrex API.

Example:

client = Bittrex.Client.new(%{
  api_key: "my api key",
  api_secret: "my api secret"
})

{:ok, markets} = Bittrex.Markets.get_markets(client)

Check the current modules, the module names are trying to follow the same structure from the official documentation of Bittrex API.