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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for Py-Trading-0.4.9.8.tar.gz
Algorithm Hash digest
SHA256 b8751fc43080c429b90f80af8ae11e29fc385a8335d757f04ca25c95ed74ae55
MD5 3610df804340145a4b27cb811adb956e
BLAKE2b-256 dd64c9f40a5e53fa3f3dc7d4e990738feabbe3b636943cf3112fee36303f4c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Py_Trading-0.4.9.8-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for Py_Trading-0.4.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 816ffb53883b6457ccf12fce8c77655c0b5c974226fd55eba04e92231f52d3e1
MD5 f9e92733c6b5c836cf965c25a61fd515
BLAKE2b-256 74aa49784e600af6deb6e852190cbe65e6861c661e4d2d753330c9289bb71d23

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