0% found this document useful (0 votes)
25 views41 pages

Project File

ip project class 12

Uploaded by

bharatibookdepot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views41 pages

Project File

ip project class 12

Uploaded by

bharatibookdepot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Project name: Stock Market

Name: Ravi Shankar, Tanuj sinha


Roll Number:

1|Page
CERTIFICATE
THIS IS TO CERTIFY THAT RAVI SHANKAR
AND TANUJ SINHA HAS SUCCESSFULLY
COMPLETED THE INFORMATICS PRACTICES
PROJECT TITLED Stock Market UNDER THE
SUPERVISION AND GUIDANCE OF RUCHIRA
MAM IN THE ACADEMIC YEAR 2024-25.

EXTERNAL INTERNAL

PRINCIPAL

2|Page
ACKNOWLEDGEMENT
I WOULD LIKE TO EXTEND MY HEARTFELT
GRATITUDE TO MY INFORMATICS PRACTICES
RUCHIRA MAM FOR THE HELP AND GUIDANCE
SHE PROVIDED FOR COMPLETION OF THIS
PROJECT. I ALSO THANK MY PARENTS WHO
GAVE THEIR IDEAS AND INPUTS IN MAKING
THIS PROJECT. MOST OF ALL I THANK THE
SCHOOL MANAGEMENT FOR PROVIDING US
WITH THE FACILITIES AND THE OPPORTUNITY
TO DO THIS PROJECT. ALSO, I WOULD LIKE TO
THANK MY CLASSMATE WHO HAS DONE THIS
PROJECT ALONG WITH ME. HIS SUPPORT MADE
THIS PROJECT FRUITFUL

3|Page
INTRODUCTION
Aim of the Project
The aim of this project on the stock market is to provide
an in-depth understanding of how stock markets operate,
the factors that influence stock prices, and the
significance of investing in stocks. The project will
explore key concepts such as market trends, investment
strategies, and the impact of economic indicators on stock
performance.
Reason for the Project
The stock market plays a crucial role in the economy by
enabling businesses to raise capital and providing
individuals with opportunities to invest and grow their
wealth. Understanding the stock market is essential for
making informed investment decisions and managing
financial risk. This project aims to equip students with
practical knowledge and skills related to financial literacy,
critical thinking, and analytical reasoning, which are vital
in todays increasingly complex financial landscape.
Additionally, by examining real-world data and case
studies, students will gain insights into market behavior
and the importance of strategic investment

4|Page
HARDWARE AND SOFTWARE
Hardware Used
1. Computer or Laptop: Essential for data analysis,
research, and presentation.
2. Internet Connection: Required for accessing stock
market data, news, and online trading platforms.
3. Printer: For printing reports and visual aids for
presentations
Software Used
 Stock Market Simulation Software (e.g., Investopedia Stock
Simulator):
 For practical experience in trading without financial risk.
 Programming Languages (e.g., Python with libraries like
Pandas and Matplotlib):
 For data analysis, statistical modeling, and automating
tasks.
 Research Tools (e.g., Financial News Websites, Stock
Market Apps):
 For gathering real-time data and news relevant to the stock
market

5|Page
Stock Market
import pandas as pd
import matplotlib.pyplot as pl
import numpy as np
print("
___________________________________________________________________
_______________________________")
print("{|
___________________________________________________________________
___________________________ |}")
print("(| | | |)")
print("(| | | |)")
print("(| | WELCOME TO THE STOCK MARKET | |)")
print("(| | | |)")
print("(|
|___________________________________________________________________
_________________________| |)")
print("{|_____________________________________________________________
___________________________________|}")
portfolio = {}
print()
print()
print()
print()
print()
print()
print()
print()
print()
print()
print(" _____")
print(" \MENU\ ")
print(" '''''''")
print()
print("1. Get information about stock market")
print("2. Add Stock")
print("3. Exit")
choice = input("Enter your choice (1-3): ")
if choice =="1":
print("1. Definition")
print("2. Stocks")

6|Page
print("3. Stock Exchanges")
print("4. Stock Indices")
print("5. Bulls and Bears")
print("6. Investors")
print("7. Brokers")
print("8. Initial Public Offering (IPO)")
print("9. Dividends")
print("10. Market Capitalization")
print("11. Market Orders and Limit Orders")
print("12. Volatility")
print("13. Blue-Chip Stocks")
print("14. P/E Ratio")
print("15. Market News and Analysis")
print("16. Regulation")
print("17. Global Stock Markets")
print("18. Risks and Rewards")
print("19. Long-Term vs. Short-Term Investing")
print("20. Diver sification")
info=int(input("Enter the number of the information you want"))
if info == 1:
print("The stock market refers to the collection of markets and exchanges where activities")
print("such as buying selling, and issuingshares of publicly-held companies take place.")
elif info == 2:
print("Stocks, also known as shares or equities, represent ownership in a
company.Investors")
print(" buy stocks to become partial owners and share in the company's profits.")
elif info == 3:
print("Stock exchanges are platforms where stocks are bought and sold. Examples include
the New York Stock ")
print("Exchange (NYSE) and the Nasdaq in the United States, and the London Stock
Exchange (LSE) in the UK.")
elif info == 4:
print("Stock indices, such as the S&P 500, Dow Jones Industrial Average, and NASDAQ
Composite, ")
print("representa group of stocks and serve as indicators of overall market performance.")
elif info == 5:
print("A 'bull market' refers to rising prices and optimism, while a 'bear market'")
print(" is characterized by falling prices and pessimism.")
elif info == 6:
print("Individuals or entities that buy and sell stocks are investors. They can be
categorized")
print(" as retail investors (individuals) or institutional investors (large organizations).")
elif info == 7:
print("Brokers are intermediaries that facilitate stock transactions. They can be full-service
brokers")
print("brokers providing advice or discount brokers offering a platform for self-directed
trading")
7|Page
elif info == 8:
print("An IPO is the process by which a private company becomes public by issuing")
print("its shares on the stock market for the first time.")
elif info == 9:
print("Dividends are payments made by companies to shareholders as a share")
print("of the company's profits. Not all stocks pay dividends.")
elif info == 10:
print("Market cap is the total value of a company's outstanding shares of stock. It is")
print("calculated by multiplying the stock price by the number of outstanding shares.")
elif info == 11:
print("A market order is an order to buy or sell a stock immediately at the currentmarket
price.A limit")
print("order, on the other hand, is an order to buy or sell a stock at a specific price or
better.")
elif info == 12:
print("Volatility measures the degree of variation in the price of a financial instrument over
")
print("time. High volatility can present both opportunities and risks for investors.")
elif info == 13:
print("Blue-chip stocks are shares in large, well-established companies with a history")
print(" of stable performance. They are often considered safer investments.")
elif info == 14 :
print("The price-to-earnings ratio (P/E ratio) is a valuation metric calculated by dividing
the market price")
print("per share by the earnings per share. It helps investors assess the relative value of a
stock.")
elif info == 15:
print("News and analysis about companies, economic indicators, and global events impact
stock prices.")
print("Investors often rely on financial news sources and analysis to make informed
decisions.")
elif info == 16:
print("Stock markets are regulated to ensure fair and transparent trading. Regulatory
bodies,such as the U.S.")
print(" Securities and Exchange Commission (SEC), oversee the functioning of the stock
market.")
elif info == 17:
print("Stock markets operate globally, and international investors can buy and")
print(" sell stocks listed on various exchanges around the world.")
elif info == 18:
print("Investing in stocks involves both risks and rewards. While stocks have the")
print("potential for high returns, they also carry the risk of losing value.")
elif info == 19:
print("Investors can adopt different strategies, such as long-term investing for steady")
print("growth or short-term trading to capitalize on short-term price movements.")
elif info == 20:

8|Page
print("Diversification involves spreading investments across different asset classes and
sectors")
print("to reduce risk. It is a common strategy to protect against market fluctuations.")
elif choice == "2":
print("1. What factors to consider when investing in a country")
print("2. invest in a country")
a=int(input("if you want to get info on when to invest in a country enter 1 or else enter 2"))
if a == 1:
print("1. Government stability")
print("2. Exchange rate stability")
print("3. Market scope")
print("4. Policy and concessions")
print("5. Other favorable location factors (including logistics and labor)")
print("6. Flexibility in government policy")
print("7. Proactive measures by the Government to promote investment (infrastructure)")
factors=int(input("enter the digit which you want to view"))
if factors == 1:
print("A stable government is an essential condition for any investment. Investors will")
print("always consider the influence of this factor when investing in a country, trying")
print(" to find a government that gives support to investments. Investors should")
print("not have any fear of a government take over.")
elif factors == 2:
print("The commercial viability of any FDI is based on exchange rate stability")
print("This means that the value of the domestic currency is not unusually reducedso that
while foreign")
print("investors do not lose a lot of money. The exchange rate should be more or less the
same")
print("as the current rate at the time of the investment.")
elif factors == 3:
print("FDIs must be in a position to tap the market and expand both in domestic and
foreign markets.")
print("This will reduce their production costs and will give them a wide scope to
diversify.")
elif factors == 4:
print("The government should adopt uniform tax policies according to international
standards.")
print("Heavy excise or sales taxes or customs duties will deter foreign direct investment.")
print("A moderate tax policy should be maintained, so that FDIs feel comfortable.")
elif factors == 5:
print("Labor productivity in the country should be high. A sufficient skilled labor force is")
print("needed, especially in technical fields. Various means of transport with a proper")
print("coordination among road, rail and air should be available.")
elif factors == 6:
print("Certain investments are not allowed in the context of FDI, but a rigid policy will not
help the development")
print("of industries. Under the WTO rules, the government must adopt flexible policies that
allow")
9|Page
print(" FDIs in all sectors including those ones where they were previously restricted.")
elif factors == 7:
print("The government also needs to take proactive measures like the development of the
highway network, the")
print("strengthening of captive power and nuclear power plants, the expansion of the
ports, etc.")
print("These measures will attract more foreign direct investment.")
elif a == 2:
print("country")
print("India")
print("America")
print("France")
print("Germany")
print("Russia")
country=input("enter the country in which you want to invest in")
if country == "India":
print(" Important detals befour investing in stocks in India")
print()
print("Introduction")
print("India has been rapidly growing in terms of economy and GDP in the last decade,
with the current")
print("GDP being $2.62 trillion. In spite of the pandemic and economic crisis, India has
managed to")
print("stay afloat and even see a rise in share values.")
print("Recently, the Indian share market has been getting numerous new investors.
Businessmen and salaried employees")
print("are looking towards shares to grow their money and keep a nest egg for the
future.Arguably, investing")
print("in shares makes your money grow the fastest, even with its risks and
apprehensions.")
print()
print("How to Buy Shares Online in India")
print("Get a PAN Card")
print("A permanent account number or PAN is a 10-character alphanumeric identifier
issued by the Indian")
print("Income Tax Department. You must obtain a PAN card before you start your trading
journey.")
print("Government regulations require you to have a PAN card before you can make
financial")
print("transactions in the share market. It assesses your tax liability. A PAN card can")
print("be obtained by visiting a centre or applying online. If you have a valid")
print("Aadhaar card, you will get a PAN in a couple of days.")
print("")
print("Open a Demat Account")
print("The second step towards investing in shares online is opening a Demat account.")
print("A Demat or Dematerialized account has the records of the shares you hold")
print("in a dematerialized or electronic format.")
10 | P a g e
print("You can open a free Demat account through any authorized bank, financial")
print("institution, or broker, with valid documents and ID proofs. After your")
print("online Demat account is active, you will receive a Demat Account Number.")
print("This unique number is essential to buy or sell shares.")
print("")
print("Start a Trading Account")
print("Next, you must open a trading account to buy and sell shares in the stock market.")
print("This account is required, in addition to the Demat account, to buy shares")
print("online in India. You will also get a unique Trading Account Number,")
print("which must be provided while buying shares online.")
print("")
print("Get Registered with a Broker")
print("Shares cannot be purchased directly from stock markets; you need a broker to
handle the transaction.")
print("This broker can be an individual or a brokerage platform or agency that acts as a
financial")
print("intermediary between you and the stock market.")
print("A stock market broker must be certified by the Securities Exchange Board of India
(SEBI),the")
print(" market regulator. Needless to say, all this is futile if you do not have a bank
account.")
print("Your Demat and Trading account must be linked to your bank account for
transactions.")
print("")
print("Obtain a UIN")
print("Unique Identification Number of UIN is mandatory by SEBI for stock market
investors.")
print("You can get a UIN through NSDL, for share transactions amounting to one lakh
Indian")
print("rupees or more. You can transact for lesser amounts even if you do not have a
UIN.")
print("Once you follow through with all these steps, you are all set to purchase shares.")
print("The shares you order for purchase will be matched with a similar sale orderm in
the")
print("stock exchange. Then, it will be settled and credited into your Demat account. ")
print()
print()
print()
TATA=200.0
Reliance=250.0
Adani=330.0
Infosys=350.0
ITC=700.0
stock=[TATA,Reliance,Adani,Infosys,ITC]
a=[23,75,27,46,34]
stockdata={"price of per share":stock,"NO. of shares avalable":a}
stock_data = {
11 | P a g e
'TATA': 200.0,
'Reliance': 250.0,
'Adani': 330.0,
'Infosys': 350.0,
'ITC': 700.0}
investments = []
print("Options:")
print("1. price of per share,NO. of shares avalable and graph")
print("2. Make an investment")
print("3. View latest investments")
print("4. Exit")
option = int(input("Choose an option: "))
while option!=4:
option = int(input("Choose an option: "))
if option ==1:
print("price of per share,NO. of shares avalable and graph")
d=pd.DataFrame(stockdata)
print(d)
d.to_csv("H:\\New folder (2)\\Book1.csv")
w=[[TATA,Reliance,Adani,Infosys,ITC],[23,75,27,46,34]]
x=np.arange(5)
pl.bar(x+.00,w[0],color='orange',width=0.25)
pl.bar(x+.25,w[1],color='lightblue',width=0.25)
pl.xticks(x,['TATA','Reliance','Adani','nfosys','ITC'])
pl.savefig("H:\\New folder\multibar.pdf")
pl.show()
if option == 2:
print("choose the company to invest")
print("TATA")
print("Reliance")
print("Adani")
print("Infosys")
company = input("Enter the company to invest in (TATA,Reliance, Adani, Infosys,
ITC): ")
print("chose Currency")
print("INR")
print("USD")
print("EUR")
print("ADE")
print("RUB")
currency=input("enter the currency")
if currency == "INR":
exchange_rates = {'USD': 0.014, 'EUR': 0.012, 'AED': 0.052, 'RUB': 1.03}
inr_amount = float(input("Enter the amount in Indian Rupees (INR): "))
usd_amount = inr_amount * exchange_rates['USD']
eur_amount = inr_amount * exchange_rates['EUR']
aed_amount = inr_amount * exchange_rates['AED']
12 | P a g e
rub_amount = inr_amount * exchange_rates['RUB']
print(Converted amounts:")
print("INR:",inr_amount,": Indian Rupees")
print("USD:",usd_amount,": American Dollars")
print("EUR:",eur_amount,": Euros")
print("AED:",aed_amount,": UAE Dirhams")
print("RUB:",rub_amount,": Russian Rubles")
elif currency == "USD":
exchange_rates = {'INR': 71.50, 'EUR': 0.85, 'AED': 3.67, 'RUB': 75.0}
amount_usd = float(input("Enter the amount in American Dollars (USD): "))
inr_amount = amount_usd * exchange_rates['INR']
print("Converted amounts:")
print("USD:",amount_usd,"American Dollars")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "EUR":
exchange_rates = {'USD': 1.18, 'INR': 85.0, 'AED': 4.18, 'RUB': 91.0}
amount_eur = float(input("Enter the amount in Euros (EUR): "))
inr_amount = amount_eur * exchange_rates['INR']
print("Converted amounts:")
print("EUR:",amount_eur,"Euros")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "ADE":
exchange_rates = {'USD': 0.27, 'INR': 20.38, 'EUR': 0.23, 'RUB': 14.55}
amount_aed = float(input("Enter the amount in UAE Dirhams (AED): "))
inr_amount = amount_aed * exchange_rates['INR']
print("Converted amounts:")
print("ADE:",amount_aed,"UAE Dirhams")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "RUB":
exchange_rates = {'USD': 0.014, 'INR': 1.16, 'EUR': 0.012, 'AED': 0.052}
amount_rub = float(input("Enter the amount in Russian Rubles (RUB): "))
inr_amount = amount_rub * exchange_rates['INR']
print("Converted amounts:")
print("RUB:",amount_rub,"Russian Rubles")
print("INR:",inr_amount,"Indian Rupees")
else:
print("Invalid currency symbol. Please enter a valid symbol.")
investment_amount = inr_amount
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)

13 | P a g e
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 3:
print("Current Investments:")
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 4:
print("Exiting program. Goodbye!")
elif country == "America":
print("several special points to consider befour investing in American companies")
print("1. Research the company:")
print("Conduct thorough research on the company you plan to invest in. Look into their
financials,")
print("management team, competitive advantage, and growth prospects")
print("2. Understand the market:")
print("Gain insights into the industry and market in which the company operates.")
print("Assess any potential risks or challenges that could impact its performance.")
print("3. Evaluate financial health:")
print("Analyze the company's financial statements, including revenue growth,")
print("profitability, debt levels, and cash flow generation.")
print("4. Diversify your portfolio:")
print("Consider diversifying your investments across different sectors and")
print("industries to reduce risk and increase potential returns.")
print("5. Stay updated on news and trends:")
print("Keep track of relevant news articles, economic indicators, industry trends,")
print("or regulatory changes that can affect your investments.")
print("6. Consult with professionals:")
print("If needed or if you're unsure about making investment decisions yourself,consider
consulting")
print(" with a financial advisor who specializes in investing in American companies.")
print()
print()
print()
# Dummy data for stock symbols and prices (replace with actual data)
APPLE=150.0
14 | P a g e
GOOGLE=270.0
MICROSOFT=300.0
AMAZON=330.0
TSLA=700.0
stock=[APPLE,GOOGLE,MICROSOFT,AMAZON,TSLA]
a=[67,73,29,69,65]
stockdata={"price of per share":stock,"NO. of shares avalable":a}
stock_data = {
'APPLE': 150.0,
'GOOGLE': 270.0,
'MICROSOFT': 300.0,
'AMAZON': 330.0,
'TSLA': 700.0}
investments = []
print("Options:")
print("1. price of per share,NO. of shares avalable and graph")
print("2. Make an investment")
print("3. View latest investments")
print("4. Exit")
option = int(input("Choose an option: "))
while option!=4:
option = int(input("Choose an option: "))
if option ==1:
print("price of per share,NO. of shares avalable and graph")
f=pd.DataFrame(stockdata)
print(f)
f.to_csv("H:\\New folder (2)\\Book1.csv")
w=[[APPLE,GOOGLE,MICROSOFT,AMAZON,TSLA],[23,75,27,46,34]]
x=np.arange(5)
pl.bar(x+.00,w[0],color='orange',width=0.25)
pl.bar(x+.25,w[1],color='lightblue',width=0.25)
pl.xticks(x,['APPLE','GOOGLE','MICROSOFT','AMAZON','TSLA'])
pl.savefig("H:\\New folder\multibar.pdf")
pl.show()
if option == 2:
print("choose the company to invest")
print("APPLE")
print("GOOGLE")
print("MICROSOFT")
print("AMAZON")
print("TSLA")
company = input("Enter the company to invest in
(APPLE,GOOGLE,MICROSOFT,AMAZON,TSLA): ")
print("chose Currency")
print("INR")
print("USD")
print("EUR")
15 | P a g e
print("ADE")
print("RUB")
currency=input("enter the currency")
if currency == "INR":
exchange_rates = {'USD': 0.014, 'EUR': 0.012, 'AED': 0.052, 'RUB': 1.03}
inr_amount = float(input("Enter the amount in Indian Rupees (INR): "))
usd_amount = inr_amount * exchange_rates['USD']
eur_amount = inr_amount * exchange_rates['EUR']
aed_amount = inr_amount * exchange_rates['AED']
rub_amount = inr_amount * exchange_rates['RUB']
print("Converted amounts:")
print("INR:",inr_amount,": Indian Rupees")
print("USD:",usd_amount,": American Dollars")
print("EUR:",eur_amount,": Euros")
print("AED:",aed_amount,": UAE Dirhams")
print("RUB:",rub_amount,": Russian Rubles")
elif currency == "USD":
exchange_rates = {'INR': 71.50, 'EUR': 0.85, 'AED': 3.67, 'RUB': 75.0}
amount_usd = float(input("Enter the amount in American Dollars (USD): "))
inr_amount = amount_usd * exchange_rates['INR']
print("Converted amounts:")
print("USD:",amount_usd,"American Dollars")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "EUR":
exchange_rates = {'USD': 1.18, 'INR': 85.0, 'AED': 4.18, 'RUB': 91.0}
# Input amount in EUR
amount_eur = float(input("Enter the amount in Euros (EUR): "))
inr_amount = amount_eur * exchange_rates['INR']
print("Converted amounts:")
print("EUR:",amount_eur,"Euros")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "ADE":
exchange_rates = {'USD': 0.27, 'INR': 20.38, 'EUR': 0.23, 'RUB': 14.55}
amount_aed = float(input("Enter the amount in UAE Dirhams (AED): "))
inr_amount = amount_aed * exchange_rates['INR']
print("Converted amounts:")
print("ADE:",amount_aed,"UAE Dirhams")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "RUB":
exchange_rates = {'USD': 0.014, 'INR': 1.16, 'EUR': 0.012, 'AED': 0.052}
amount_rub = float(input("Enter the amount in Russian Rubles (RUB): "))
inr_amount = amount_rub * exchange_rates['INR']
print("Converted amounts:")
print("RUB:",amount_rub,"Russian Rubles")
print("INR:",inr_amount,"Indian Rupees")
else:
print("Invalid currency symbol. Please enter a valid symbol.")
16 | P a g e
investment_amount = inr_amount
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 3:
print("Current Investments:")
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 4:
print("Exiting program. Goodbye!")
elif country == "France":
print("there are a few key points you should consider befour investing in France")
print("1. Legal framework:")
print("Familiarize yourself with the legal and regulatory environment governing
investments in France.")
print("This includes understanding the rights and obligations of shareholders,")
print("as well as any specific rules for foreign investors.")
print("2. Market analysis:")
print("Conduct thorough market research to identify potential investment opportunities
and")
print("assess the viability of the company you are considering investing in. Understand")
print("the industry dynamics, competition, target market, and growth prospects.")
print("3. Financial due diligence:")
print("Review the financial statements and performance of the company to evaluate its")
print("financial health, profitability, cash flow situation, and potential risks.")
print("It's advisable to seek professional assistance from accountants or")
print("financial advisors for a comprehensive analysis.")
print("4. Management team:")
17 | P a g e
print("Assess the competence and experience of the management team leading the
company.")
print("Strong leadership is crucial for successful business operations and long-term
growth.")
print("5. Risk assessment:")
print("Identify any potential risks associated with your investment such as political
instability,")
print("economic factors, legal challenges, or industry-specific risks that")
print("may impact your return on investment.")
print("6. Tax considerations: Understand the tax implications of investing in French
companies both")
print("at home (if applicable) and abroad to effectively plan your investment strategy.")
print()
print()
print()
ActivaCapital=420.0
NaxicapPartners=350.0
Equistone=370.0
CitizenCapital=340.0
Abenex=280.0
stock=[ActivaCapital,NaxicapPartners,Equistone,CitizenCapital,Abenex]
a=[76,76,56,69,63]
stockdata={"price of per share":stock,"NO. of shares avalable":a}
stock_data = {
'ActivaCapital': 420.0,
'NaxicapPartners': 350.0,
'Equistone': 370.0,
'CitizenCapital': 340.0,
'Abenex': 280.0}
investments = []
print("Options:")
print("1. price of per share,NO. of shares avalable and graph")
print("2. Make an investment")
print("3. View latest investments")
print("4. Exit")
option = int(input("Choose an option: "))
while option!=4:
option = int(input("Choose an option: "))
if option ==1:
print("price of per share,NO. of shares avalable and graph")
g=pd.DataFrame(stockdata)
print(g)
g.to_csv("H:\\New folder (2)\\Book1.csv")

w=[[ActivaCapital,NaxicapPartners,Equistone,CitizenCapital,Abenex],[76,76,56,69,63]]
x=np.arange(5)
pl.bar(x+.00,w[0],color='orange',width=0.25)
18 | P a g e
pl.bar(x+.25,w[1],color='lightblue',width=0.25)
pl.xticks(x,['Activa','Naxicap','Equistone','CitizenCapital','Abenex'])
pl.savefig("H:\\New folder\multibar.pdf")
pl.show()
if option == 2:
print("choose the company to invest")
print("ActivaCapital")
print("NaxicapPartners")
print("Equistone")
print("CitizenCapital")
print("Abenex")
company = input("Enter the company to invest in
(ActivaCapital,NaxicapPartners,Equistone,CitizenCapital,Abenex): ")
print("chose Currency")
print("INR")
print("USD")
print("EUR")
print("ADE")
print("RUB")
currency=input("enter the currency")
if currency == "INR":
exchange_rates = {'USD': 0.014, 'EUR': 0.012, 'AED': 0.052, 'RUB': 1.03}
inr_amount = float(input("Enter the amount in Indian Rupees (INR): "))
usd_amount = inr_amount * exchange_rates['USD']
eur_amount = inr_amount * exchange_rates['EUR']
aed_amount = inr_amount * exchange_rates['AED']
rub_amount = inr_amount * exchange_rates['RUB']
print("Converted amounts:")
print("INR:",inr_amount,": Indian Rupees")
print("USD:",usd_amount,": American Dollars")
print("EUR:",eur_amount,": Euros")
print("AED:",aed_amount,": UAE Dirhams")
print("RUB:",rub_amount,": Russian Rubles")
elif currency == "USD":
exchange_rates = {'INR': 71.50, 'EUR': 0.85, 'AED': 3.67, 'RUB': 75.0}
amount_usd = float(input("Enter the amount in American Dollars (USD): "))
inr_amount = amount_usd * exchange_rates['INR']
print("Converted amounts:")
print("USD:",amount_usd,"American Dollars")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "EUR":
exchange_rates = {'USD': 1.18, 'INR': 85.0, 'AED': 4.18, 'RUB': 91.0}
amount_eur = float(input("Enter the amount in Euros (EUR): "))
inr_amount = amount_eur * exchange_rates['INR']
print("Converted amounts:")
print("EUR:",amount_eur,"Euros")
print("INR:",inr_amount,"Indian Rupees")
19 | P a g e
elif currency == "ADE":
exchange_rates = {'USD': 0.27, 'INR': 20.38, 'EUR': 0.23, 'RUB': 14.55}
amount_aed = float(input("Enter the amount in UAE Dirhams (AED): "))
inr_amount = amount_aed * exchange_rates['INR']
print("Converted amounts:")
print("ADE:",amount_aed,"UAE Dirhams")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "RUB":
exchange_rates = {'USD': 0.014, 'INR': 1.16, 'EUR': 0.012, 'AED': 0.052}
amount_rub = float(input("Enter the amount in Russian Rubles (RUB): "))
inr_amount = amount_rub * exchange_rates['INR']
print("Converted amounts:")
print("RUB:",amount_rub,"Russian Rubles")
print("INR:",inr_amount,"Indian Rupees")
else:
print("Invalid currency symbol. Please enter a valid symbol.")
investment_amount = inr_amount
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 3:
print("Current Investments:")
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 4:
print("Exiting program. Goodbye!")
elif country == "Germany":
print("wayes to envest in germany:")
20 | P a g e
print("1. Research and Education:")
print("Understand the German stock market: Germany has a well-developed stock
market,")
print("and the two primary indices are the DAX and MDAX. Learn about the German
economy,")
print("political stability, and business environment.")
print("2. Brokerage Account:")
print("Open an international brokerage account that allows you to trade on the German
stock market.")
print("Many online brokerages offer access to global markets.")
print("3. Legal and Regulatory Considerations")
print("Ensure that you comply with all legal and regulatory requirements for
international investments.")
print("This may include tax considerations and adherence to German financial
regulations.")
print("4. Choose Specific Companies:")
print("Identify German companies you want to invest in. Consider factors such as
financial health,")
print("market position, growth potential, and industry trends.")
print("5. Stock Analysis:")
print("Analyze the financial statements, earnings reports, and overall performance of
thecompanies you are")
print("interested in. Consider using fundamental analysis and, if applicable, technical
analysis.")
print("6. Currency Exchange:")
print("Be aware of currency exchange rates, as your investment returns will be influenced
by changes in the")
print(" exchange rate between your local currency and the Euro (Germany's currency.")
print("7. Diversification:")
print("Diversify your investments to spread risk. Consider not putting all your funds into
one company or industry.")
print("8. Risk Assessment:")
print("Assess the risks associated with investing in a foreign market. Understand
geopolitical risks,")
print("economic conditions, and any other factors that may impact your investments.")
print("9. Monitor the Market:")
print("Keep an eye on the German stock market, economic indicators, and news that may
affect your investments.")
print("10. Execution:")
print("Once you've done your research and are comfortable with your investment
decisions,")
print("execute your trades through your chosen brokerage platform.")
print("11. Long-Term Perspective:")
print("Consider adopting a long-term investment perspective. Stock prices can be volatile
in the short term,")
print("but a long-term approach may help mitigate risks.")
print("12. Stay Informed:")
21 | P a g e
print("Stay informed about changes in the companies you've invested in, as well as any
developments")
print("in the German market and economy.")
print()
print()
print()
Allianz=230.0
Verdane=270.0
QuadrigaCapital=400.0
CICC=335.0
DrakeStar=450.0
stock=[Allianz,Verdane,QuadrigaCapital,CICC,DrakeStar]
a=[67,78,65,45,46]
stockdata={"price of per share":stock,"NO. of shares avalable":a}
stock_data = {
'Allianz': 230.0,
'Verdane': 270.0,
'QuadrigaCapital': 400.0,
'CICC': 335.0,
'DrakeStar': 450.0}
investments = []
print("Options:")
print("1. price of per share,NO. of shares avalable and graph")
print("2. Make an investment")
print("3. View latest investments")
print("4. Exit")
option = int(input("Choose an option: "))
while option!=4:
option = int(input("Choose an option: "))
if option ==1:
print("Allianz")
print("Verdane")
print("Quadriga Capital")
print("CICC")
print("Drake Star")
print("price of per share,NO. of shares avalable and graph")
h=pd.DataFrame(stockdata)
print(h)
h.to_csv("H:\\New folder (2)\\Book1.csv")
w=[[Allianz,Verdane,QuadrigaCapital,CICC,DrakeStar],[67,78,65,45,46]]
x=np.arange(5)
pl.bar(x+.00,w[0],color='orange',width=0.25)
pl.bar(x+.25,w[1],color='lightblue',width=0.25)
pl.xticks(x,['Allianz','Verdane','QuadrigaCapital','CICC','DrakeStar'])
pl.savefig("H:\\New folder\multibar.pdf")
pl.show()
if option == 2:
22 | P a g e
print("choose the company to invest")
print("Allianz")
print("Verdane")
print("Quadriga Capital")
print("CICC")
print("Drake Star")
company = input("Enter the company to invest in
(Allianz,Verdane,QuadrigaCapital,CICC,DrakeStar): ")
print("chose Currency")
print("INR")
print("USD")
print("EUR")
print("ADE")
print("RUB")
currency=input("enter the currency")
if currency == "INR":
exchange_rates = {'USD': 0.014, 'EUR': 0.012, 'AED': 0.052, 'RUB': 1.03}
inr_amount = float(input("Enter the amount in Indian Rupees (INR): "))
usd_amount = inr_amount * exchange_rates['USD']
eur_amount = inr_amount * exchange_rates['EUR']
aed_amount = inr_amount * exchange_rates['AED']
rub_amount = inr_amount * exchange_rates['RUB']
print("Converted amounts:")
print("INR:",inr_amount,": Indian Rupees")
print("USD:",usd_amount,": American Dollars")
print("EUR:",eur_amount,": Euros")
print("AED:",aed_amount,": UAE Dirhams")
print("RUB:",rub_amount,": Russian Rubles")
elif currency == "USD":
exchange_rates = {'INR': 71.50, 'EUR': 0.85, 'AED': 3.67, 'RUB': 75.0}
amount_usd = float(input("Enter the amount in American Dollars (USD): "))
inr_amount = amount_usd * exchange_rates['INR']
print("Converted amounts:")
print("USD:",amount_usd,"American Dollars")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "EUR":
exchange_rates = {'USD': 1.18, 'INR': 85.0, 'AED': 4.18, 'RUB': 91.0}
amount_eur = float(input("Enter the amount in Euros (EUR): "))
inr_amount = amount_eur * exchange_rates['INR']
print("Converted amounts:")
print("EUR:",amount_eur,"Euros")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "ADE":
exchange_rates = {'USD': 0.27, 'INR': 20.38, 'EUR': 0.23, 'RUB': 14.55}
amount_aed = float(input("Enter the amount in UAE Dirhams (AED): "))
inr_amount = amount_aed * exchange_rates['INR']
print("Converted amounts:")
23 | P a g e
print("ADE:",amount_aed,"UAE Dirhams")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "RUB":
exchange_rates = {'USD': 0.014, 'INR': 1.16, 'EUR': 0.012, 'AED': 0.052}
amount_rub = float(input("Enter the amount in Russian Rubles (RUB): "))
inr_amount = amount_rub * exchange_rates['INR']
print("Converted amounts:")
print("RUB:",amount_rub,"Russian Rubles")
print("INR:",inr_amount,"Indian Rupees")
else:
print("Invalid currency symbol. Please enter a valid symbol.")
investment_amount = inr_amount
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 3:
print("Current Investments:")
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares at",current_price,":
per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 4:
print("Exiting program. Goodbye!")
else:
print("Invalid option. Please choose a valid option.")
elif country == "Russia":
print("1. Research and Education:")
print("Understand the Russian stock market, which is primarily represented by the
Moscow Exchange (MOEX).")

24 | P a g e
print("Learn about the Russian economy, political landscape, and business
environment.")
print("2. Brokerage Account:")
print("Open an international brokerage account that allows you to trade on the Moscow
Exchange.")
print("Many online brokerages offer access to global markets.")
print("3. Legal and Regulatory Considerations:")
print("Ensure that you comply with all legal and regulatory requirements for
international investments.")
print("This may include tax considerations and adherence to Russian financial
regulations.")
print("4. Choose Specific Companies:")
print("Identify Russian companies you want to invest in. Consider factors such as
financial health,")
print("market position, growth potential, and industry trends.")
print("5. Stock Analysis:")
print("Analyze the financial statements, earnings reports, and overall performance of
the companies you are")
print(" interested in. Consider using fundamental analysis and, if applicable, technical
analysis.")
print("6. Currency Exchange:")
print("Be aware of currency exchange rates, as your investment returns will be
influenced by changes")
print("in the exchange rate between your local currency and the Russian Ruble.")
print("7. Diversification:")
print("Diversify your investments to spread risk. Consider not putting all your funds
into one company or industry.")
print("8. Risk Assessment:")
print("Assess the risks associated with investing in a foreign market. Understand
geopolitical risks,")
print("economic conditions, and any other factors that may impact your investments.")
print("9. Monitor the Market:")
print("Keep an eye on the Russian stock market, economic indicators, and news that
may affect your investments.")
print("10. Execution:")
print("Once you've done your research and are comfortable with your investment
decisions, execute your")
print("trades through your chosen brokerage platform.")
print("11. Long-Term Perspective:")
print("Consider adopting a long-term investment perspective. Stock prices can be
volatile in the short term,")
print("but a long-term approach may help mitigate risks.")
print("12. Stay Informed:")
print("Stay informed about changes in the companies you've invested in, as well as any
developments")
print("in the Russian market and economy.")
print()
25 | P a g e
print()
print()
Sberbank=345.0
Rosneft=540.0
BrightCapital=390.0
RussiaPartners=130.0
Gazprom=500.0
stock=[Sberbank,Rosneft,BrightCapital,RussiaPartners,Gazprom]
a=[76,57,58,76,68]
stockdata={"price of per share":stock,"NO. of shares avalable":a}
stock_data = {
'Sberbank': 150.0,
'Rosneft': 270.0,
'BrightCapital': 300.0,
'RussiaPartners': 330.0,
'Gazprom': 700.0}
investments = []
print("Options:")
print("1. price of per share,NO. of shares avalable and graph")
print("2. Make an investment")
print("3. View latest investments")
print("4. Exit")
option = int(input("Choose an option: "))
while option!=4:
option = int(input("Choose an option: "))
if option ==1:
print("Sberbank")
print("Rosneft")
print("BrightCapital")
print("RussiaPartners")
print("Gazprom")
print("price of per share,NO. of shares avalable and graph")
j=pd.DataFrame(stockdata)
print(j)
j.to_csv("H:\\New folder (2)\\Book1.csv")
w=[[Sberbank,Rosneft,BrightCapital,RussiaPartners,Gazprom],[76,57,58,76,68]]
x=np.arange(5)
pl.bar(x+.00,w[0],color='orange',width=0.25)
pl.bar(x+.25,w[1],color='lightblue',width=0.25)
pl.xticks(x,['Sberbank','Rosneft','BrightCapital','RussiaPartners','Gazprom'])
pl.savefig("H:\\New folder\multibar.pdf")
pl.show()
if option == 2:
print("choose the company to invest")
print("Sberbank")
print("Rosneft")
print("BrightCapital")
26 | P a g e
print("RussiaPartners")
print("Gazprom")
company = input("Enter the company to invest in
(Sberbank,Rosneft,BrightCapital,RussiaPartners,Gazprom): ")
print("chose Currency")
print("INR")
print("USD")
print("EUR")
print("ADE")
print("RUB")
currency=input("enter the currency")
if currency == "INR":
exchange_rates = {'USD': 0.014, 'EUR': 0.012, 'AED': 0.052, 'RUB': 1.03}
inr_amount = float(input("Enter the amount in Indian Rupees (INR): "))
usd_amount = inr_amount * exchange_rates['USD']
eur_amount = inr_amount * exchange_rates['EUR']
aed_amount = inr_amount * exchange_rates['AED']
rub_amount = inr_amount * exchange_rates['RUB']
print("Converted amounts:")
print("INR:",inr_amount,": Indian Rupees")
print("USD:",usd_amount,": American Dollars")
print("EUR:",eur_amount,": Euros")
print("AED:",aed_amount,": UAE Dirhams")
print("RUB:",rub_amount,": Russian Rubles")
elif currency == "USD":
exchange_rates = {'INR': 71.50, 'EUR': 0.85, 'AED': 3.67, 'RUB': 75.0}
amount_usd = float(input("Enter the amount in American Dollars (USD): "))
inr_amount = amount_usd * exchange_rates['INR']
print("Converted amounts:")
print("USD:",amount_usd,"American Dollars")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "EUR":
exchange_rates = {'USD': 1.18, 'INR': 85.0, 'AED': 4.18, 'RUB': 91.0}
amount_eur = float(input("Enter the amount in Euros (EUR): "))
inr_amount = amount_eur * exchange_rates['INR']
print("Converted amounts:")
print("EUR:",amount_eur,"Euros")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "ADE":
exchange_rates = {'USD': 0.27, 'INR': 20.38, 'EUR': 0.23, 'RUB': 14.55}
amount_aed = float(input("Enter the amount in UAE Dirhams (AED): "))
inr_amount = amount_aed * exchange_rates['INR']
print("Converted amounts:")
print("ADE:",amount_aed,"UAE Dirhams")
print("INR:",inr_amount,"Indian Rupees")
elif currency == "RUB":
exchange_rates = {'USD': 0.014, 'INR': 1.16, 'EUR': 0.012, 'AED': 0.052}
27 | P a g e
amount_rub = float(input("Enter the amount in Russian Rubles (RUB): "))
inr_amount = amount_rub * exchange_rates['INR']
print("Converted amounts:")
print("RUB:",amount_rub,"Russian Rubles")
print("INR:",inr_amount,"Indian Rupees")
else:
print("Invalid currency symbol. Please enter a valid symbol.")
investment_amount = inr_amount
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares
at",current_price,": per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 3:
print("Current Investments:")
if company in stock_data:
current_price = stock_data[company]
shares_to_buy = investment_amount / current_price
investment_details = {
'stock_symbol': company,
'shares_to_buy': shares_to_buy,
'current_price': current_price}
investments.append(investment_details)
print("Investing in",company,":Buy",shares_to_buy,": shares
at",current_price,": per share")
else:
print("Invalid company symbol. Please enter a valid symbol.")
elif option == 4:
print("Exiting program. Goodbye!")
elif choice == "3":
print("Exiting the program. Goodbye!")
else:
print("Invalid choice. Please enter a number between 1 and 3.")

28 | P a g e
GRAPHS

INDIA

AMERICA
29 | P a g e
FRANCE

GERMANY
30 | P a g e
RUSSIA

31 | P a g e
EXCEL TABLES

INDIA

AMERICA

FRANCE

32 | P a g e
GERMANY

RUSSIA

33 | P a g e
OUTPUT

34 | P a g e
35 | P a g e
36 | P a g e
37 | P a g e
38 | P a g e
END
39 | P a g e
Conclusion
In conclusion, this project on the stock market has
successfully integrated both financial concepts and
programming skills to enhance our understanding of market
dynamics. We have explored how stock prices are influenced
by various economic factors and investor sentiment, gaining
insights into trading strategies and investment principles.
Through the use of programming languages like Python, we
were able to analyze stock data, visualize trends, and
simulate trading scenarios. This hands-on approach not only
reinforced our understanding of stock market mechanisms but
also highlighted the importance of data analysis in making
informed investment decisions.
By combining knowledge of the stock market with
programming skills, we are better equipped to navigate the
complexities of modern finance. This project has emphasized
the significance of financial literacy and technological
proficiency, preparing us for future challenges in both
personal finance and the broader economic landscape.
Ultimately, understanding the interplay between
programming and the stock market empowers us to become
informed investors and critical thinkers in a rapidly evolving
financial world

40 | P a g e
Reference
 Investopedia. "Stock Market Basics."
 www.investopedia.com.
 Yahoo Finance. "Market Data."
 finance.yahoo.com.
 NSE India. "National Stock Exchange of
 India." www.nseindia.com.

41 | P a g e

You might also like