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.18.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.18-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Py-Trading-0.3.18.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.18.tar.gz
Algorithm Hash digest
SHA256 9939f208d47a02bb767f03b721a1459607ae954e28983056c3d9e179f9b81697
MD5 860fd25d7979fa98abafb08ea4307be8
BLAKE2b-256 d45faf171ee96187f0d38870df9484513148fa6c1327d7917b38ab73ded4b301

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Py_Trading-0.3.18-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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 f014a67e24a25294f71b8da69cda5612b6d3bfbd8dea219c7ab8f67e962b10ec
MD5 61279867004c12aadf6bd8aadd288ab1
BLAKE2b-256 46bd325115541fc9b53d6863c56e5a0fcb5a0ef0588ba156e9f1c92ff7b3dc5d

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