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.14.tar.gz (17.3 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.14-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Py-Trading-0.3.14.tar.gz
  • Upload date:
  • Size: 17.3 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.14.tar.gz
Algorithm Hash digest
SHA256 6ddec217ca90b3b985e1caabd167827e525a6f13b4dd609b805d2f028f9e0b11
MD5 81b873043ab64376607384f3fdf2b0ce
BLAKE2b-256 3c9e85fda26280bd231b7eb0a7bfaa9fa493f4148af04b7fc10ce39ce28b441c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Py_Trading-0.3.14-py3-none-any.whl
  • Upload date:
  • Size: 28.7 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a40758282d40fd828b549e91ad3ecd0091fb35090c52378f0a2a5a8f4b68ba
MD5 dfc241fb9b10087a9493a04c973c7653
BLAKE2b-256 ca696112504a711584d1168b4ad512a53e31b8d54bb0a109941eec3a5f87a07a

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