Bittrex v3.0.0 Bittrex.Client View Source

HTTP client used to request data from Bittrex server. It safes the credentials of your client, this allow you to have multiple clients.

Link to this section Summary

Types

The error could be either an string with the reason of the error or a tuple with the HTTP status code and the body of the HTTP response

t()

Client credentials and metadata

Functions

Creates an HTTP client

Add Sub account to your HTTP client credentials. Read more about Sub Accounts in Bittrex documentation

Link to this section Types

The error could be either an string with the reason of the error or a tuple with the HTTP status code and the body of the HTTP response.

Link to this type

t() View Source
t() :: %Bittrex.Client{
  api_key: term(),
  api_secret: term(),
  sub_account_id: term()
}

Client credentials and metadata.

Link to this section Functions

Link to this function

new(credentials) View Source
new(%{api_key: String.t(), api_secret: String.t()}) :: t()

Creates an HTTP client.

Link to this function

with_sub_account(http_client, sub_account_id) View Source

Add Sub account to your HTTP client credentials. Read more about Sub Accounts in Bittrex documentation.