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

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.3.15.tar.gz (17.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.3.15-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Py-Trading-0.3.15.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for Py-Trading-0.3.15.tar.gz
Algorithm Hash digest
SHA256 5b4e83cdcdff1c8feee6a5a0630f62ee850f1d636ecdf5c64c16616a613897a0
MD5 97ab6d932d4cd366ba2f8fb9fc7a6723
BLAKE2b-256 59cb912a96ee838790d3531307a18422c4cfa22726af99a9af7dd28f3d56adae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Py_Trading-0.3.15-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for Py_Trading-0.3.15-py3-none-any.whl
Algorithm Hash digest
SHA256 106f2c4e85c030afb899d18f6c606d6bead67167270ca77902e9b2cd04f277e7
MD5 117cd038b3805934142572cfe326a03e
BLAKE2b-256 51f3205781eb89db5506af230028a7d9ccdab0662c6533f72017cf95b4ecffc0

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