dabcoder / stocks Goto Github PK
View Code? Open in Web Editor NEWHaskell library for the IEX trading API: https://iextrading.com/developer/docs/
License: BSD 3-Clause "New" or "Revised" License
Haskell library for the IEX trading API: https://iextrading.com/developer/docs/
License: BSD 3-Clause "New" or "Revised" License
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)
Let's make a new release? I merged develop to trunk with updated change notes
https://iextrading.com/developer/docs/#reference-data
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.
Working on it in branch 'iexcloud'
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) #
I was recommended to use Data.Text
instead of the String
type, but I do not know enough about this topic to be able to say which one would be best for this project.
Some resources:
It would be good to think about an upcoming release on Hackage as the [develop] branch has a lot of new additions compared to version 0.1.0.0: http://hackage.haskell.org/package/stocks.
https://iextrading.com/developer/docs/#iex-stats
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?
to be able to give different options to IEX, 5y, 2y, 1y
start with: https://iextrading.com/developer/docs/#chart
TravisCI, CircleCI, GitLab...?
Should it run the tests in Tests
to get started?
https://iextrading.com/developer/docs/#iex-market-data
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.