Realtime Stock
Realtime Stock is a Python package to gather realtime stock quotes from Yahoo Finance. The package enables you to handle single stocks or portfolios, optimizing the nunber of requests necessary to gather quotes for a large number of stocks.
Documentation: https://realtime-stock.readthedocs.io.
Free software: MIT license
Features
Stock class
Method to get stock’s latest price.
Method to get all stock’s information provided by Yahoo Finance.
Method get stock’s daily historical information.
Method download stock’s historical data from Yahoo Finance.
Utility functions
Function to request recent quotes about a list of tickers.
Function to get stock’s daily historical information.
Function to download historical data about a list of tickers.
Installation
To install Realtime Stock, run this command in your terminal:
$ pip install realtime-stock
Check here for further information on installation.
Basic Usage
For single stocks:
>>> from rtstock.stock import Stock
>>> stock = Stock('AAPL')
>>> stock.get_latest_price()
{
'LastTradePriceOnly': '95.89',
'LastTradeTime': '4:00pm'
}
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
1.0.0 (2016-07-27)
First release on PyPI.
Stock class implemented.
Function to request recent quotes about a list of tickers.
Function to get stock’s daily historical information.
Function to download historical data about a list of tickers..
Metadata
Release files for realtime-stock 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| realtime-stock-1.0.0.tar.gz | 26.7 kB | Without provenance | Details for realtime-stock-1.0.0.tar.gz |
Release files / realtime-stock-1.0.0.tar.gz
| Download URL | realtime-stock-1.0.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
235f3978b89311ce2523b98c9d53acd3fbea6067603620bcfe1d2cbb9591a8cf
|
|
BLAKE2b-256 checksum How to use checksums |
95a1c80c9d783b2833c1e085dc5a9d34d255449e4b73d7e172fc5068539f8a56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for realtime-stock 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.