Aurum.Coinbase.Fetchers (aurum v0.2.0)
This module isolates certain side-effect ridden operations into their own functions.
All functions in this module are intended to be used as a default parameter in another module in such a way that the function here can be mocked.
Link to this section Summary
Functions
Returns the value of the COINBASE_KEY environment variable. (At runtime)
Returns the value of the COINBASE_SECRET environment variable. (At runtime)
Returns the current epoch timestamp according to the /time
portion of the Coinbase API. This is used when generating the signed HMAC authentication string used in authenticated Coinbase requests.
Link to this section Functions
fetch_key()
Specs
fetch_key() :: String.t()
Returns the value of the COINBASE_KEY environment variable. (At runtime)
fetch_secret()
Specs
fetch_secret() :: String.t()
Returns the value of the COINBASE_SECRET environment variable. (At runtime)
fetch_timestamp()
Specs
fetch_timestamp() :: integer()
Returns the current epoch timestamp according to the /time
portion of the Coinbase API. This is used when generating the signed HMAC authentication string used in authenticated Coinbase requests.