stocks: Library for the IEX Trading API

[ bsd3, library, net ] [ Propose Tags ]

Simple library for interacting with the IEX Trading API


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0
Dependencies aeson (>=0.8.0), base (>=4 && <5), bytestring, http-conduit, semigroups (>=0.18) [details]
License BSD-3-Clause
Copyright 2018 David Bouchare
Author David Bouchare
Maintainer David Bouchare
Category Net
Home page https://github.com/dabcoder/stocks#readme
Source repo head: git clone https://github.com/dabcoder/stocks.git
Uploaded by davidb at 2018-04-04T21:19:53Z
Distributions NixOS:0.2.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1190 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-04-14 [all 1 reports]

Readme for stocks-0.1.0.0

[back to package description]

stocks

Haskell library for the IEX trading API.

Example:

{-# LANGUAGE RecordWildCards #-}

import Net.Stocks

comp :: String
comp = "AAPL"

main :: IO ()
main = do
    resp <- getData comp QueryStocks
    case resp of
        Nothing -> putStrLn "No data for that company"
        Just (Stock{..}) -> do
            putStrLn $ "Stock value: " ++ show latestPrice

Which should show:

Stock value: <the_actual_stock_value>

Attribution

If you redistribute our API data: