Skip to main content

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

  1. Monitor multiple assets. Consequently, we need alert for several assets.
  2. Option to conversion result to others currency: BRL, EURO, BTC etc
  3. Implement options to calculate the price to monitoring as percentual or value

Author

Rafael Meireles LinkedIn

License

MIT

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

price-alert-rhsm-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

price_alert_rhsm-0.0.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page