Exmarket
An OTP application that provides real time stock & crypto data. This project is a WIP under active development.
Installation
Package is available in Hex, and can be installed
by adding exmarket to your list of dependencies in mix.exs:
def deps do
[
{:exmarket, "~> 0.1.0"}
]
endThe docs can be found at https://hexdocs.pm/exmarket.
After adding {:exmarket, "~> 0.1.0"} to your list of dependencies, access the API either by creating a unique alias or referring to Exmarket directly. For example:
defmodule MyApp do
alias Exmarket, as: Market
def get_price(ticker) do
Market.get_price(ticker)
end
end
Calling MyApp.get_price("aapl") returns "204.53".