iex 0.1.0
Wrapper for the IEX trading API
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
IEX API
This uses the IEX trading API's HTTP endpoints. Everything in the Stock endpoint is supported.
Documentation for the API can be found at https://iextrading.com/developer/docs/.
auto stock = Stock("AAPL", "MSFT")
.quote()
.news(5) // Last 5 items.
.chart(ChartRange.OneMonth)
.query();
A query returns the result as a vibe.data.json.Json object.
There is currently very little validation by iex.d; errors will return an error Json response.
Notes and Limitations
Although iex.d separates date range parameters, (i.e., ChartRange and DividendRange), the IEX API uses a single parameter; if you specify two date ranges, the last one will be used and the other ignored. For example:
auto stock = Stock("AAPL")
.chart(ChartRange.TwoYears) // Ignored.
.dividends(DividendRange.OneYear)
.query();
Both chart()
and dividends()
in the above example will use the one year
range, due to the upstream API design limitations. Future versions of iex.d may
make two queries and merge the results before returning.
- 0.1.0 released 6 years ago
- rjframe/iex
- MIT
- Copyright © 2018 Ryan Frame
- Authors:
- Dependencies:
- vibe-d:data, requests
- Versions:
-
0.1.0 2018-Jun-13 ~master 2018-Jun-13 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
9 downloads total
-
- Score:
- 0.6
- Short URL:
- iex.dub.pm