packages feed

stocks-0.1.0.0: README.md

# stocks  

Haskell library for the IEX trading API.  

Example:  

```haskell
{-# 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:

* Cite IEX using the following text and link: “Data provided for free by [IEX](https://iextrading.com/developer).”  
* Provide a link to https://iextrading.com/api-exhibit-a in your terms of service.