Gdex v0.1.2 Gdex.Auth View Source

This module handles authentication on GDAX.

Link to this section Summary

Functions

Returns the headers needed to authenticate on GDAX

Returns a Map containing the fields needed to authenticate on GDAX

Link to this section Functions

Link to this function auth_headers(config, method, path, body) View Source

Returns the headers needed to authenticate on GDAX.

Examples

auth_headers(config, :GET, "/", "")
#=> ["CB-ACCESS-KEY": "...", "CB-ACCESS-SIGN": "...", "CB-ACCESS-TIMESTAMP": "...",
#..  "CB-ACCESS-PASSPHRASE": "..."]
Link to this function auth_map(config, method, path, body) View Source

Returns a Map containing the fields needed to authenticate on GDAX.

Examples

auth_map(config, :GET, "/", "")
#=> %{"key" => "...", "signature" => "...", "timestamp" => "...", "passphrase" => "..."}