I hereby claim:
- I am patrickalphac on github.
- I am patrickalphac (https://keybase.io/patrickalphac) on keybase.
- I have a public key ASAyyIwPsnA5C2ncU6b55yI1RzCtZGJy6FW8plXCURsTzgo
To claim this, I am signing this object:
| ''' | |
| On your terminal run: | |
| pip install alpha_vantage | |
| This also uses the pandas dataframe, and matplotlib, commonly used python packages | |
| pip install pandas | |
| pip install matplotlib | |
| For the develop version run: | |
| pip install git+https://github.com/RomelTorres/alpha_vantage.git@develop |
| from alpha_vantage.timeseries import TimeSeries | |
| # Your key here | |
| key = 'yourkeyhere' | |
| ts = TimeSeries(key) | |
| aapl, meta = ts.get_daily(symbol='AAPL') | |
| print(aapl['2019-09-12']) |
| from alpha_vantage.timeseries import TimeSeries | |
| import threading | |
| import os | |
| # I use an environment vairable to get my key, | |
| # you can also just hardcode your key in the code to test this | |
| KEY = os.path.expandvars("$ALPHA_VANTAGE_HIGHER_KEY") | |
| ts = TimeSeries(key=KEY, output_format='pandas') | |
| # 10 tickers from the NASDAQ-100 | |
| tickers = ['ATVI','ADBE','AMD','ALXN','ALGN', 'GOOG', 'AMZN', 'AAL', 'ADI', 'AMAT'] |
| # For python 3.2+ | |
| from alpha_vantage.timeseries import TimeSeries | |
| from concurrent.futures import ThreadPoolExecutor | |
| import os | |
| KEY = os.path.expandvars("$ALPHA_VANTAGE_HIGHER_KEY") | |
| ts = TimeSeries(key=KEY, output_format='pandas') | |
| tickers = ['ATVI','ADBE','AMD','ALXN','ALGN', 'GOOG', 'AMZN', 'AAL', 'ADI', 'AMAT'] | |
| def thread_pool(): |
| from alpha_vantage.timeseries import TimeSeries | |
| from concurrent.futures import ThreadPoolExecutor | |
| import os | |
| KEY = os.path.expandvars("$ALPHA_VANTAGE_HIGHER_KEY") | |
| ts = TimeSeries(key=KEY, output_format='pandas') | |
| tickers = ['ATVI','ADBE','AMD','ALXN','ALGN', 'GOOG', 'AMZN', 'AAL', 'ADI', 'AMAT'] | |
| def thread_pool(): | |
| with ThreadPoolExecutor(max_workers=10) as executor: |
| var app = express() | |
| // Make sure you call this before you call any app.get functions. | |
| app.use(requireHTTPS); | |
| // code here, with gets and such | |
| function requireHTTPS(req, res, next) { | |
| // The 'x-forwarded-proto' check is for Heroku | |
| if (!req.secure && req.get('x-forwarded-proto') !== 'https' && process.env.NODE_ENV !== "development") { | |
| return res.redirect('https://' + req.get('host') + req.url); |
| # You'll need 3 environment variables API keys to run this | |
| # ALPHAVANTAGE_API_KEY | |
| # INTRINIO_PROD_KEY | |
| # IEX_TOKEN | |
| # Sometimes the vendor will error out the API call and you'll have to call it again.... | |
| from __future__ import print_function | |
| import pandas as pd | |
| import threading |
I hereby claim:
To claim this, I am signing this object:
| // For documentation, check out: | |
| // https://alphavantage.co | |
| // More Chainlink documentation on solidity | |
| // https://github.com/alphavantage/alpha-vantage-chainlink | |
| pragma solidity >= 0.4.20; | |
| // MAKE SURE TO USE A 0.4.24 COMPILER IN REMIX | |
| import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.4/ChainlinkClient.sol"; | |
| import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.4/vendor/Ownable.sol"; |
| import requests | |
| import json | |
| key = 'XXX' | |
| # Get a key from https://www.alphavantage.co/support/#api-key | |
| ticker = 'TSLA' | |
| url = 'https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={}&apikey={}'.format(ticker, key) | |
| response = requests.get(url) | |
| print(response.json()) |