iex ~master

Wrapper for the IEX trading API


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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.

Authors:
  • Ryan Frame
Dependencies:
requests, vibe-d:data
Versions:
0.1.0 2018-Jun-13
~master 2018-Jun-13
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 1 downloads total

Score:
0.4
Short URL:
iex.dub.pm