https://github.com/essenceofchaos/wallst
API for stock and crypto data
https://github.com/essenceofchaos/wallst
elixir
Last synced: about 1 month ago
JSON representation
API for stock and crypto data
- Host: GitHub
- URL: https://github.com/essenceofchaos/wallst
- Owner: EssenceOfChaos
- License: mit
- Created: 2021-12-13T21:53:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T22:43:43.000Z (over 4 years ago)
- Last Synced: 2023-08-19T04:50:38.088Z (almost 3 years ago)
- Topics: elixir
- Language: Elixir
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Wallst
API for getting stock and crypto data
[](https://circleci.com/gh/EssenceOfChaos/wallst/tree/master)
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `wallst` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:wallst, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at .
## Example
To run the app locally install the dependencies by running `mix deps.get` in the root directory.
Start a development mix server with `iex -S mix`, then begin by calling the `get_price/1` function in the **Market** module, passing in the ticker of the stock you are interested in.
```shell
iex(2)> Market.get_price("ibm")
136.53
iex(3)> Market.get_price("tsla")
1102.06
iex(4)> Market.get_price("iipr")
261.65
```