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 that is not present in the pre-defined functions, use get_crypto_price(symbol=...)

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

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

To draw the graph for a stock that is not present in the pre-defined functions, use draw_graph(price_func=lambda: get_stock_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.

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

Version 0.0.5: Add getting and graphing the history of a stock/crypto.

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.4.tar.gz (7.3 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.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: live_stocks-0.0.4.tar.gz
  • Upload date:
  • Size: 7.3 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.4.tar.gz
Algorithm Hash digest
SHA256 1dde40c4b3596bd79accd050612069feb3b2705f8be4b077abd7e49aab0964bc
MD5 7e8aec4ebfbeb836291292d1d1d03dbd
BLAKE2b-256 b09b5c4bad820d2ec02d7d692e41c73116846b88535c89bab1168a0e2adcc518

See more details on using hashes here.

File details

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

File metadata

  • Download URL: live_stocks-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 991ceede662834f183ef3fe0c2f4049f6f3ab780244294bf294e97a3cc2f9309
MD5 0a7545f9e4777871c765d6629619bc94
BLAKE2b-256 934cb10fb22110e7225a78292a527105a066bd2ae513f3ad49a9162474e75f0e

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