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.4.9

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.4.9.tar.gz (16.8 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.4.9-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Py-Trading-0.4.9.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for Py-Trading-0.4.9.tar.gz
Algorithm Hash digest
SHA256 f52b2b9df941e51e2f5568fc852474b43958d9979d513a16ce8e7a36c7bdfa0e
MD5 739d1be23c6973998e001b3aba64b22c
BLAKE2b-256 1cf51ab8f7874ab08228a2be0595e1045fba36d7dcd034119065dbb6e09e5cdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Py_Trading-0.4.9-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for Py_Trading-0.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4b2c1d6ccee2b9091d2b95f88e15828495317b97eb09775a276d64235aaadaba
MD5 89398a3a27837f5110db698dfc4ee409
BLAKE2b-256 23eb4fdc595fdbf232ecf3e7787d0d0ac98f2b338ccd5c52683322fa5e723d03

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