Script to monitoring price.
Project description
Price Alert
Description
Basically we get a price of asset using yFinance library and monitoring the until target the price we defined. To execute use this:
Installation
Use the package manager pip to install Price_alert.
pip install price-alert-rhsm
Guide
from price_alert.price_monitoring import PriceAlert
pa = PriceAlert(asset='TSLA', waiting_time=5)
pa.price_alert_request()
Output expected:
Consult at: 2022-10-07 12:01:09.266432
Ticker TSLA - Current price = $ 228.4
Type a price bigger than 228.4:
Type a price less than 228.4:
After entering the values to monitor, just wait for the price movement to hit the target. When this occurs, the notification will appear in your window.
Suggestion to new implementation
- Monitor multiple assets. Consequently, we need alert for several assets.
- Option to conversion result to others currency: BRL, EURO, BTC etc
- Implement options to calculate the price to monitoring as percentual or value
Author
Rafael Meireles LinkedIn
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file price-alert-rhsm-0.0.2.tar.gz
.
File metadata
- Download URL: price-alert-rhsm-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e6520fb8d073922e57b2c0ee405f9de1d8c5087ae0b3ba6426cbcb28bb2fdf4 |
|
MD5 | 9e81db722ffc1c1e80e7abcf2e247e1c |
|
BLAKE2b-256 | f46060a784dd872ecf866f39ce329b80d84aa706311f25ce8abdf9371e9055be |
File details
Details for the file price_alert_rhsm-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: price_alert_rhsm-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9a516b980b3efbffe14c6353775bb60f0b8c3f8ec6e1b7a229a001828ab264 |
|
MD5 | 72733bd31f96d3cc268dfdef1697598e |
|
BLAKE2b-256 | 48f483af76a32e4eb0b5d113c46bd9b158e8825dc0ea2f9fa73e08fcb770ab4e |