Changes to be committed: new file: stockminder.scm switched api to alphavantage basic API call working with parameters for: symbol, dataset, apikeyapitesting
parent
1563991dbf
commit
80461d7e9c
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
#!/bin/env gxi |
||||||
|
|
||||||
|
(import :std/net/request) |
||||||
|
|
||||||
|
#|(print (request-text |
||||||
|
(http-get "https://apidojo-yahoo-finance-v1.p.rapidapi.com/market/v2/get-quotes?symbols=AMD%252CIBM%252CAAPL®ion=US" |
||||||
|
headers: '( ("x-rapidapi-host" . "apidojo-yahoo-finance-v1.p.rapidapi.com") |
||||||
|
("x-rapidapi-key" . "98c32048f8mshe6f4d8a686ddce9p18cc5ajsn8b8888e7e256") ) |
||||||
|
) |
||||||
|
) ) |
||||||
|
(http-get "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=VBU.TO&apikey=EC4C0NRKZAK1Q2UG") |
||||||
|
(print "Hello, Asshole!") |
||||||
|
|# |
||||||
|
|
||||||
|
|
||||||
|
(let |
||||||
|
((stock-symbol "VCN.TO") |
||||||
|
(api-function "TIME_SERIES_DAILY") |
||||||
|
(api-key "EC4C0NRKZAK1Q2UG") |
||||||
|
(api-url "https://www.alphavantage.co/") ) |
||||||
|
|
||||||
|
(print (request-text (http-get |
||||||
|
(string-join (list api-url "query?function=" api-function |
||||||
|
"&symbol=" stock-symbol "&apikey=" api-key) "" ) ))) ) |
Loading…
Reference in new issue