Skip to main content

stockmarkettools is a one stop shop for all your stock market needs. It can give past data of stock, make graphs comparing two stocks, give information of a company including description, logo, assests, etc.

Documentation

Replace infosys or wipro with the stock names where ever applicable.

get_stock_all is the main python class which users will be accessing.

Makes graph of the performance of the company

get_stock_all('infosys',time='1y',sure='True').make_graph()

Returns dictionary with the information of the company.

micr=get_stock_all('infosys',time='1d').info
print(micr)

Returns the stocks it found for the input in differnt stock exchanges along with their yahoo codes

micr=get_stock_all('infosys',time='1d',sure='True').stocklist
print(micr)

Returns the previous prices of the stock

micr=get_stock_all('infosys',time='1d',sure='True').history
print(micr)

Makes Graph comparing two stocks

get_stock_all.make_graph_two('infosys','wipro','1y')

Returns the infomation of the company in the form of a pandas Dataframe

micr=get_stock_all('infosys',time='1d',sure='True').table
print(micr)

Adding sure='True' will bypass confirming if stock exchange and stock is right or not. By default the code will provide you a table and confirm if desired stock actually matches.

Add time='time_period_you_want' as an argument in the code to retrieve information for the provided time period.

Metadata

Release files for stockmarkettools 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stockmarkettools 0.2.4
File Size Uploaded
stockmarkettools-0.2.4.tar.gz 3.4 kB Details

Release files / stockmarkettools-0.2.4.tar.gz

Download URL stockmarkettools-0.2.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
faf3ca23273074c717f32002b371351a4f96c20e5cbb246f2c5e62cf7f6c3dd5
BLAKE2b-256 checksum
How to use checksums
a220f996ee8c4961c313b32838df2dafa9797736236d908ca63bf8b456a01945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page