Consumo de API utilizando a ALPHA VANTAGE
Project description
alphav_client_python
A simple API client for the AlphaVantage API: https://www.alphavantage.co/documentation/
Desenvolvido durante o curso > InovAção Afro - CESAR / SHARE RH
by @blogdomarcio (Claudio Marcio)
Time Series Stock APIs
Funções:
- intraday_series
- daily_series
- daily_adjusted_series
- weekly_series
- weekly_adjusted_series
- monthly_series
- monthly_adjusted_series
- quote_series
from alphav_client_python import stock_series stock = stock_series.StockTimeSeries() d1 = astock.intraday_series('TIME_SERIES_WEEKLY', 'IBM', 60min', slice='year1month1') print('intraday_series', d1) d2 = stock.daily_series('TIME_SERIES_WEEKLY', 'IBM',) print('daily_series', d2) d3 = stock.daily_adjusted_series('TIME_SERIES_WEEKLY', 'IBM',) print('daily_adjusted_series', d3) d4 = stock.weekly_series('TIME_SERIES_WEEKLY', 'IBM') print('weekly_series', d4) d5 = stock.weekly_adjusted_series('TIME_SERIES_WEEKLY', 'IBM',) print('daily_series', d5) d6 = stock.monthly_series('TIME_SERIES_WEEKLY', 'IBM',) print('daily_adjusted_series', d6) d7 = stock.weekly_adjusted_series('TIME_SERIES_WEEKLY', 'IBM',) print('daily_series', d7) d8 = stock.monthly_series('TIME_SERIES_WEEKLY', 'IBM',) print('daily_adjusted_series', d8)
Crypto Currencies
Função:
currency_exchange_rate
from alphav_client_python import cryptocurrencies crypto = cryptocurrencies.CryptoCurrencies() d1 = crypto.currency_exchange_rate('CURRENCY_EXCHANGE_RATE', 'BTC', 'CNY',) print('Realtime Currency Exchange Rate', d1['Realtime Currency Exchange Rate'])
Technical Indicators
Funções:
- sma
- ema
from alphav_client_python import tecnical_indicators tech = tecnical_indicators.TechnicalIndicators() d1 = tech.sma('SMA', 'IBM', 'weekly', '10', 'open') print('sma', d1['Technical Analysis: SMA']) d2 = tech.ema('EMA', 'IBM', 'weekly', '10', 'open') print('ema', d2['Technical Analysis: EMA'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file blogdomarcio-alphav_client_python-0.0.1.tar.gz
.
File metadata
- Download URL: blogdomarcio-alphav_client_python-0.0.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6eddae986abea5dce69149eb508dc58569cced4df50c4aae8ac35dd75ad8746c
|
|
MD5 |
8eb0651b5e67795e4f483739139f6828
|
|
BLAKE2b-256 |
3d5c66aa3ca784ac9e94966c67a109168d3b1ebfe89f5ae548dcae6a393a5946
|