Collection of Coinbase API utilities.
If available in Hex, the package can be installed
by adding coinbase
to your list of dependencies in mix.exs
:
def deps do
[
{:coinbase, "~> 0.1.0"}
]
end
Our streamer.ex worker streams real-time prices from Coinbase API.
- Navigate to the ~/lib/coinbase/application.ex file
- Uncomment line 12 to expose the example worker 2.1 the example worker subscribes to ETH-USD by default, but you can change this and/or add more workers subscribed to separate products
- Finally, run the app to see a livestream of your product(s) prices
iex -S mix
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/coinbase.