Skip to main content

A convenient Python module for stock information.

Project description

Pytrading

This package contains modules with functions that assist day and swing traders by aiding them in keeping track of their positions and trending stocks.

Installation

pip install py-trading

Usage

import py_trading as pytrd

my_portfolio = pytrd.Portfolio(['AAPL', 'TSLA', 'F', 'COKE'])
for stock in my_portfolio:
	stock.update_stock() 
	print(stock.get_month_data())
	print(stock.daily_change_percentage())
	print(stock.get_last_updated())
	print(stock.daily_high_change_percentage())
	print(stock.daily_stats())

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Release history Release notifications | RSS feed

This version

0.1.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Py-Trading-0.1.5.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Py_Trading-0.1.5-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file Py-Trading-0.1.5.tar.gz.

File metadata

  • Download URL: Py-Trading-0.1.5.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for Py-Trading-0.1.5.tar.gz
Algorithm Hash digest
SHA256 70135adecc69f857b01ee73bb806f934e50e6764c796f853b9b40c8aa7b211df
MD5 442d538f4ef8ee5f7992fdd63c53ee0b
BLAKE2b-256 1e066ad0c7da74f9f5940dc6dd2cb67a386ac71abcb8052de409139e4a886324

See more details on using hashes here.

File details

Details for the file Py_Trading-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: Py_Trading-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for Py_Trading-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa78264bcb98da90b69051dff94e3ce67206e51de72b3e2b3f177a2a266c915
MD5 2b2741373da98c685c2f8b1360dc490d
BLAKE2b-256 00e64ae895162b1725ee1a34b1df6ea63ca0f64d759136c7923dd6773edca1b7

See more details on using hashes here.

Supported by

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