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.16.tar.gz (18.0 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.16-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Py-Trading-0.3.16.tar.gz
  • Upload date:
  • Size: 18.0 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.16.tar.gz
Algorithm Hash digest
SHA256 a7f7629bfd46e35b33ab97423c9d46d0f0b9cb5a5161c0e5d6a218d623dc0b37
MD5 26fdbf3fa62df2f2f3872ed17acac913
BLAKE2b-256 f8117ccc4ac61d25936448817dc6b985dd5b788c6a0240f9d5562f95e1185578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Py_Trading-0.3.16-py3-none-any.whl
  • Upload date:
  • Size: 28.9 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 27a0f30aeafca4866a939781c20c623560996e07df112539e4d1efbcaaf8e777
MD5 44c7fb5597ea6e9e06a4d6aafbf50314
BLAKE2b-256 a66abb692c4fc47ab78edc7dc8210f54750d4b9c86ced4f2a767b9cf9366afff

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