Code Monkey home page Code Monkey logo

Comments (2)

nlipiarski avatar nlipiarski commented on July 19, 2024

Are you interested in having this method return a struct similar to PriceData?

from iex-cpp-client.

rodolfobandeira avatar rodolfobandeira commented on July 19, 2024

Hi @42iscool42,

The price endpoint returns a single float like: 143.28 and requires just one parameter. A symbol like: amzn.

The dividends endpoint will accept two input parameters instead of just one. time_range and stock_symbol. The returned data is also a bit different since it contains a list of fields, not just one unique value. It is up to you, the good thing about this repository is that it is pretty new, so there is a lot of space for improvement and creativity. I would create something like a list of structs like this:

...
        "dividends.exDate": "2017-08-10",
        "dividends.paymentDate": "2017-08-17",
        "dividends.recordDate": "2017-08-14",
        "dividends.declaredDate": "2017-08-01",
        "dividends.amount": 0.63,
        "dividends.type": "Dividend income",
        "dividends.qualified": "Q"
...

from iex-cpp-client.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.