Giter Site home page Giter Site logo

dabcoder / stocks Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 70 KB

Haskell library for the IEX trading API: https://iextrading.com/developer/docs/

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%
aeson api haskell haskell-library iex iex-trading-api

stocks's People

Contributors

dabcoder avatar ksallberg avatar miz85 avatar teuffy avatar tiago-loureiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stocks's Issues

Make record names unique

Right now, we have a big problem due to using DuplicateRecordFields in Stocks.hs

It is possible to get data structures from this module,
but it is then not possible to pick data out of these data structures because the
record accessor functions will be ambiguous in the user's code

I propose to put each data structure in its own module, so that we can then pick out
for instance 'symbol' from 'Company' like (IEXCompany.symbol companyData)

Release 0.2.0.1

Let's make a new release? I merged develop to trunk with updated change notes

[testing] Create better tests

Right now the HUnit tests only makes calls to the IEX API and then makes sure the reply is not 'Nothing'. It would be better to see that the results are what we expect them to be.

Handle connection/404 errors

getNonJSONData :: String -> IO L8.ByteString
getNonJSONData query = do
    obj <- simpleHttp query
    return obj

getNonJSONData will simply crash if simpleHttp does not succeed. instead return (Either err bytestring) #

[type system] relation between query parameters and results

Currently, (in the batch queries, since they are the only ones supporting parameters) it is possible for the code to return resulting data structures that have nothing to do with the parameters given.

I would like the type system to know about the relation between input parameters and output data structures. Perhaps using type families?

CI

TravisCI, CircleCI, GitLab...?

Should it run the tests in Tests to get started?

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.