Skip to content

Instantly share code, notes, and snippets.

@SchlenkR
Created June 14, 2019 07:46
Show Gist options
  • Save SchlenkR/f44274b775d0436ffc3af0f0fc62556a to your computer and use it in GitHub Desktop.
Save SchlenkR/f44274b775d0436ffc3af0f0fc62556a to your computer and use it in GitHub Desktop.
Some http calls for alphavantage
// paket FsHttp
open FSharp.Data
open FSharp.Data.JsonExtensions
open FsHttp
open FsHttp.Dsl
let call s =
let url = "https://www.alphavantage.co/query?" + s + "&apikey=TODO"
get url .> expand
call "function=TIME_SERIES_INTRADAY
&symbol=MSFT
&outputsize=compact
&datatype=csv
&interval=1min"
call "function=SYMBOL_SEARCH
&keywords=bmw"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment