Skip to main content

A Python module for trading 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.4.9.11.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

Py_Trading-0.4.9.11-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Py-Trading-0.4.9.11.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for Py-Trading-0.4.9.11.tar.gz
Algorithm Hash digest
SHA256 fc7b2c2bf9cd6e5ce939bddc3c355526c34668fc895f070a492a881aa0990587
MD5 5de99daf583ad16198e850a1ca7af2d8
BLAKE2b-256 8853f4c3f063e53fc72b548b4627c9aa40977621592e4eff5f71892b32d03788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Py_Trading-0.4.9.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3cce480cea5969e76caf4005fe793ea9191a8937e3fae948e83cb0dc88072a
MD5 1ccaaeedde20ee44bbb868656a3f25d7
BLAKE2b-256 50024f9e245f9318c9cf36b9d9b0979bb6123e9243af164a225ce8c087761103

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page