Skip to main content

Gets the live price of stocks and cryto. Also has graphing capabilities.

Project description

Live Stocks

This package can get the current price and graph cryto and stocks.

This package includes functions to get the current price of popular crypto and stocks. This package also includes symbol to name and name to symbol.

Usage:

To get the current price of a crypto/stock that is not present in the pre-defined functions, use get_price(symbol=...)

To draw the graph for a crypto/stock that is not present in the pre-defined functions, use draw_graph(price_func=lambda: get_price(symbol=...), stock_name=..., max_points=..., update_time=..., show_timestamps=...)

To get the name of a stock/crypto symbol use name_to_symbol(company_name=..., autocorrect=...)

To get the stock/crypto symbol from the stock/crypto name use symbol_to_name(company_name=..., autocorrect=...).

Versions:

Version 0.0.1: Base code with primary functions added.

Version 0.0.2: Documentation for crypto functions added and more parameters for draw_graph.

Version 0.0.3: Documentation for stock functions added.

Version 0.0.4: Symbol -> Stock/Crypto name, Stock/Crypto name -> Symbol.

(Latest) Version 0.0.5: Add getting and graphing the history of a stock/crypto and refactor get_crypto_price and get_stock_price into one function.

Version 0.0.6: Add flexible history so that "2mo 10d 1h" works.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

live_stocks-0.0.5.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

live_stocks-0.0.5-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file live_stocks-0.0.5.tar.gz.

File metadata

  • Download URL: live_stocks-0.0.5.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for live_stocks-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c324c9501bde94212426ee64c16f310ff6c41a8e4e380d89c629f23664137035
MD5 331a6dbf6e36768cf841febe46b8e5e9
BLAKE2b-256 901a62e040b82586aea3e613ad926a13de166843547eafb09a16862537189f9e

See more details on using hashes here.

File details

Details for the file live_stocks-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: live_stocks-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for live_stocks-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 abb2b14d3578da3217bba7dfcbf0ff01ed197a796640e7a1f3b2eed02862cf9a
MD5 74ff3aa125bb8acb3ef98f0e0a06f0bb
BLAKE2b-256 6fd8ce765c1e207a85bdf766e896a719e8a0dacf8a6f2ea211e253653d024772

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