Skip to content

pshemass/alpha-vantage-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha Vantage haskell http client

My first attempt to create Alpha Vantage client https://www.alphavantage.co

Supported operations: Stock Time Series - Daily, Weekly, Monthly

Example of usage:

{-# LANGUAGE OverloadedStrings #-}
module Main where


import Network.HTTP.Client
import Network.HTTP.Client.TLS
import AlphaVantage

main :: IO ()
main = do
  mgr <- newManager tlsManagerSettings
  config <- withStdoutLogging =<< (newConfig $ Apikey "Demo")
  let tsRequest = getStockTimeSeries 
                  StockTimeSeriesMonthly 
                  (Symbol "MSFT") 
                  -&- Outputsize'Compact
  response <- dispatchRequest mgr config tsRequest
  putStrLn $ show response
  return ()

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published