Download as pdf or txt
Download as pdf or txt
You are on page 1of 28

MAHATMA GANDHI INSTITUTE OF TECHNOLOGY

(Affiliated to Jawaharlal Nehru Technological University, Hyderabad)


Gandipet, Hyderabad-500075

CERTIFICATE

This is to certify that the project entitled "CRYPTOCURRENCY ADVICE


OPTIONS" is being submitted by KADALI HARSHA VARDHAN bearing Roll
No. 20261A05E4 in partial fulfilment of the requirements for the award of the degree
of Bachelor of Technology in Computer Science and Engineering is a record of
bonafide work carried out by them. The design and results of the project enclosed in
this report have been verified and found satisfactory.

Supervisor Head of the Department

Dr. K Sreekala Dr. C.R.K. Reddy


Assistant Professor, Dept. of CSE Professor, Dept. of CSE

External Examiner

i
DECLARATION

This is to certify that the work reported in this project entitled


"CRYPTOCURRENCY ADVICE OPTIONS" is a record of work done by me in the
Department of Computer Science and Engineering, Mahatma Gandhi Institute of
Technology, Hyderabad.

No part of the work is copied from books/journals/internet and wherever the portion is
taken, the same has been duly referred to in the text. The report is based on the work
done entirely by me and not copied from any other source.

KADALI HARSHA VARDHAN


(20261A05E4)

ii
ACKNOWLEDGEMENT

I would like to express my sincere thanks to Dr. G. Chandra Mohan Reddy,


Principal MGIT, for providing the working facilities in college.

I wish to express our sincere thanks and gratitude to Dr. C. R. K. Reddy, Professor
and HOD, Department of CSE, MGIT, for all the timely support and valuable
suggestions during the period of project.

I am extremely thankful to Dr. C. R. K. Reddy, Professor, Mr. A. Ratna Raju,


Assistant Professor, Department of CSE, MGIT, mini project coordinators for their
encouragement and support throughout the project.

I am extremely thankful and indebted to my internal guide Dr. K.Sreekala, Assistant


Professor, Department of CSE, for their constant guidance, encouragement and moral
support throughout the project.

Finally, we would also like to thank all the faculty and staff of CSE Department who
helped us directly or indirectly, for completing this project.

KADALI HARSHA VARDHAN


(20261A05E4)

iii
TABLE OF CONTENTS
CERTIFICATE i

DECLARATION ii

ACKNOWLEDGEMENT iii

LIST OF FIGURES vi

LIST OF TABLES vii

ABSTRACT viii

1. INTRODUCTION 1
1.1 Problem Statement 2

1.2 Objectives 2

1.3 Existing System and Disadvantages 3

1.4 Proposed System and Advantages 4

1.5 Requirements Specification 5

1.5.1 Software Requirements 5

1.5.2 Hardware Requirements 5

2. LITERATURE SURVEY 6

3. DESIGN OF CRYPTOCURRENCY ADVICE OPTIONS 8


3.1 System Architecture of Cryptocurrency advice options 8

3.2 Uml Diagrams of Cryptocurrency advice options 9

3.2.1 Class Diagram of Cryptocurrency advice options 9

3.2.2 Use Case Diagram of Cryptocurrency advice options 9

3.2.3 Sequence Diagram of Cryptocurrency advice options 10

iv
4. IMPLEMENTATION 11

4.1 Steps 11
4.2 Methodology 11

5. TESTING AND RESULTS 12


5.1 Testing 12

5.2 Results 12

5.2.1 Screenshots 12

6. CONCLUSION AND FUTURE SCOPE 15


6.1 Conclusion 15

6.2 Future Scope 15

BIBLIOGRAPHY

APPENDIX

v
LIST OF FIGURES

FIGURE NO. NAME OF THE FIGURE PAGE NO.


3.1 System Architecture 8
3.2.1 Class Diagram 9
3.2.2 Use case Diagram 9
3.2.3 Sequence Diagram 10
5.2.1 Analyzing Cryptos 12
5.2.2 User Preferences Interface 13
5.2.3 Result(1) 13
5.2.4 Result(2) 14
5.2.5 Result(3) 14

vi
LIST OF TABLES

TABLE NO. NAME OF THE TABLE PAGE NO.

1. Literature Survey 7

vii
ABSTRACT

The Bulk Crypto Analyzer, alias Crypto Advice Options, epitomizes a pioneering
initiative in the dynamic realm of cryptocurrency analysis. In response to the
escalating significance of digital assets, this project seeks to provide an unparalleled
platform for enthusiasts, investors, and institutions. By seamlessly integrating the
WazirX and TradingView APIs, it empowers users with real-time data, advanced
analytics, and invaluable insights. The project's foundation lies in a meticulously
crafted architecture that harmonizes user-defined time frames, dynamic data
acquisition, and sophisticated algorithms. Users, endowed with the flexibility to tailor
analyses, embark on a journey guided by the WazirX API's real-time market data,
including essential metrics like prices and trading volumes. The integration of the
TradingView API enhances this journey with advanced charting and technical analysis
features. The Bulk Crypto Analyzer goes beyond data retrieval, employing analytical
algorithms to unravel patterns and trends within specified temporal boundaries. The
user experience is paramount, ensuring accessibility for a broad spectrum of users.
The project's user-friendly interface transforms complex insights into actionable
narratives, providing a compass for data-driven decision-making in navigating the
labyrinth of market trends. Ultimately, the Bulk Crypto Analyzer transcends
conventional tools, embodying a transformative force in cryptocurrency analysis. This
abstract illuminates the project's objectives, methodologies, and the profound impact
it stands to make in redefining our approach to the evolving landscape of digital
finance.

viii
1. INTRODUCTION
In the era of digital disruption, cryptocurrencies have emerged as transformative
assets, reshaping the landscape of global finance. As the decentralized financial
ecosystem continues to evolve, the need for sophisticated tools to navigate the
complexities of cryptocurrency markets becomes paramount. The Bulk Crypto
Analyzer, affectionately dubbed Crypto Advice Options, stands at the forefront of this
paradigm shift, offering a comprehensive and dynamic platform for the analysis of
cryptocurrency performance within specified time frames. This project is not merely a
tool; it is a strategic response to the challenges posed by the inherent volatility and
intricacy of the cryptocurrency domain. By seamlessly integrating two powerful APIs
– WazirX and TradingView – the Bulk Crypto Analyzer transcends traditional market
analysis, providing users with real-time data, advanced analytics, and actionable
insights. Its architecture is meticulously designed, weaving together user-defined time
frames, dynamic data acquisition, and sophisticated algorithms to create a holistic and
user-centric analytical framework.

At its core, the Bulk Crypto Analyzer serves as a catalyst for informed decision-
making. Users wield the flexibility to define their own time frames, empowering them
to tailor analyses according to individual preferences and strategic objectives.
Leveraging the WazirX API, the project fetches real-time market data, including
essential metrics such as cryptocurrency prices and trading volumes. The
incorporation of the TradingView API further enriches the analytical journey, offering
advanced charting and technical analysis features that go beyond the scope of
conventional tools. This introductory exploration into the Bulk Crypto Analyzer sets
the stage for a transformative journey through the intricacies of cryptocurrency
analysis. It is a testament to the fusion of innovation and necessity, redefining how we
perceive and engage with the dynamic world of digital finance. As we delve deeper
into the layers of this project, its multifaceted features and user-centric design unfold,
promising a nuanced understanding of the cryptocurrency landscape and a compass
for navigating its ever-shifting currents.

1
1.1 PROBLEM STATEMENT
In the realm of cryptocurrency analysis, users face the critical challenge of navigating
a dynamic and volatile market landscape. Existing tools often fall short in providing a
comprehensive, user-friendly platform that integrates real-time data and advanced
analytics. This gap hinders enthusiasts, investors, and institutions from making well-
informed decisions within specified time frames. The absence of a robust solution
capable of seamlessly harnessing the power of APIs, such as WazirX and
TradingView, leaves users without a holistic tool for deciphering market trends and
evaluating cryptocurrency performance. The problem at hand is the need for an
innovative and versatile platform that addresses these challenges, empowering users
to navigate the complexities of the cryptocurrency market with precision and
confidence.

1.2 OBJECTIVES
 The primary objectives of the "CRYPTOCURRENCY ADVICE OPTIONS"
project are to revolutionize the modern student's academic experience through
the integration of advanced technologies.
 The key goals include providing tailored solutions for complex coursework,
fostering personalized and efficient learning experiences, and bridging the gap
between traditional educational methods and contemporary student needs.
 The toolkit's multifaceted features, including File Inquiry, Code Assistant,
Resume Critique, Email Crafter, Easy Notes, Grammar Guide, and
DocuMentor, collectively strive to empower students with real-time
assistance, enhance their productivity, and promote overall well-being. By
leveraging artificial intelligence,
 The project endeavors to create a dynamic, responsive, and user-centric
platform that not only meets the academic demands of today's students but
also transforms the educational landscape by catering to individual learning
styles and fostering success.

2
1.3 EXISTING SYSTEM
The existing system for cryptocurrency analysis is often characterized by limitations
and drawbacks that hinder users from obtaining a comprehensive and insightful
understanding of market trends. Some notable disadvantages of the current state of
cryptocurrency analysis include:

1. Fragmented Data Sources:

Existing tools may rely on fragmented data sources, making it challenging for users to
access a unified and comprehensive dataset. This fragmentation can lead to
incomplete analyses and hinder the ability to make informed decisions

2. Limited Time Frame Flexibility:

Many platforms lack user-defined time frame flexibility, restricting users to


predefined intervals for analyzing cryptocurrency performance. This limitation may
not align with individual preferences or strategic considerations, hampering the
adaptability of analyses.

3. Insufficient Real-Time Data:

Some tools may not provide real-time data, resulting in delayed or outdated
information. In the fast-paced world of cryptocurrency markets, timely insights are
crucial for effective decision-making, and a lack of real-time data can put users at a
disadvantage.

4. Inadequate Analytical Features:

Existing systems may lack advanced analytical features, such as in-depth charting and
technical analysis capabilities. This deficiency limits the depth of insights users can
gain, hindering their ability to perform thorough evaluations of cryptocurrency
performance.

5. Limited API Integration:

The integration of APIs is often limited in scope, restricting the diversity of data
sources and analytical tools available to users. This limitation may undermine the
completeness of analyses and limit the range of cryptocurrencies that can be
effectively assessed.

3
6. Complex User Interfaces:

Some platforms may have complex and unintuitive user interfaces, creating barriers
for users with varying levels of expertise. A lack of user-friendly design can impede
accessibility and hinder the adoption of these tools by a broader audience.

1.4 PROPOSED SYSTEM


The proposed Bulk Crypto Analyzer system is envisioned as an innovative and
comprehensive solution to address the limitations of the existing cryptocurrency
analysis landscape. The platform aims to introduce several advantages that will
significantly enhance the user experience and provide more insightful analyses of
cryptocurrency performance. Key features and advantages of the proposed system
include:

1. Unified Data Aggregation:


The Bulk Crypto Analyzer will integrate multiple data sources, consolidating
information from the WazirX and TradingView APIs. This unified approach ensures a
comprehensive dataset, enabling users to access a holistic view of the cryptocurrency
market.

2. User-Defined Time Frame:


One of the primary advantages of the proposed system is the introduction of user-
defined time frames. Users will have the flexibility to customize analysis periods,
aligning with their specific preferences and strategic objectives. This adaptability
enhances the relevance and applicability of analyses.

3. Real-Time Data Integration:


The proposed system will leverage the WazirX API to provide real-time market data,
ensuring users have access to the latest information. Timely insights into
cryptocurrency prices, trading volumes, and other metrics empower users to make
informed decisions in a rapidly changing market.

4
4. Advanced Analytical Features:
Building upon the TradingView API integration, the Bulk Crypto Analyzer will offer
advanced charting and technical analysis features. This includes in-depth chart
visualization, trend analysis, and other tools to empower users with sophisticated
analytical capabilities.

5. Comprehensive Cryptocurrency Coverage:


The proposed system aims to expand the range of cryptocurrencies that can be
effectively analyzed. By integrating diverse data sources, users will gain insights into
a broader spectrum of digital assets, enabling a more comprehensive evaluation of
market trends.

1.5 REQUIREMENTS SPECIFICATION


The following are the software and hardware requirements needed for the system to
run the project “cryptocurrency advice options”

1.5.1 Software Requirements


 Operating system : Windows 7 or higher versions, macOS, linux
 Frontend Development : Streamlit Framework.
 Backend Development : Python
 API Integration : WazirX and TradingView API.

1.5.2 Hardware Requirements:


 Processor : Pentium –IV
 RAM : 4 GB or above
 Hard Disk : 20 GB or above
 Input Devices : Mouse and Keyboard

5
2. LITERATURE SURVEY
Literature survey provides insights into best practices, theoretical frameworks, and
user experiences, guiding the project team in making informed decisions and
addressing potential challenges. The survey informs technology selection,
benchmarks against existing solutions, and ensures legal and ethical considerations
are taken into account in the project development.

Payal Pagariya et al [1] They proposed a web system, which will help to understand
cryptocurrency in a more statistical way. Proposed system focuses mainly on four
coins: Bitcoin, Ethereum, Dogecoin and Shiba Inu performing analysis and
forecasting on all the four coins. System will also do statistical comparison between
the coins. Analysis and comparison is carried out using python libraries and modules
whereas LSTM and ARIMA are used for forecasting. Extensive research was
conducted using real-time and historical information, on four key cryptocurrencies,
two of which had the greatest market capitalization, notably Bitcoin and Ethereum,
while the other, Dogecoin and Shiba Inu, that had a significant growth in market
capitalization over the previous year.

Israa Alqassem et al [2] They performed this analysis as the first step towards
specification of the crypto currency reference architecture. The future reference
architecture will serve as a starting architectural point for the development of new
systems that leverage Bit coin protocol in different contexts and for various purposes.
Bit coin is a new protocol with a potential to revolutionize financial system. Bit coin
has a complex structure, where several interacting components build a peer-to-peer
currency and a payment system without relying on any trusted third party. Bit coin is
continually improved by an open source community, and various Bit coin libraries,
APIs, and alternative implementations are being developed.

Guosheng Hu et al [3] They proposed a web system, which will help to understand
cryptocurrency in a more statistical way. Proposed system focuses mainly on four
coins: Bitcoin, Ethereum, Dogecoin and Shiba Inu performing analysis and
forecasting on all the four coins. System will also do statistical comparison between
the coins. Analysis and comparison is carried out using python libraries and modules
whereas ML and Sentment Analysis are used for forecasting. Extensive research was
conducted using real-time and historical information,

6
Table 2.1: Literature Survey

Technology and
SI. Year of
Title Methodology Advantages Disadvantages
No. Publication
Used

Diversified
Data Quality
Analysis,
Cryptocurrency Python and
Statistical
1 2022 Analysis and Libraries, Availability,
Approach, Real-
Forecasting LSTM, ARIMA Diversified
time and
Analysis
Historical Data

Sentiment Statistical
Price movement
analysis Approach, Real- Diversified
2 2020 predition of
Machine time and Analysis
cryptocurrencies
Learning Historical Data

Towards
Reference Bitcoin Libraries
Reference
Architecture for and APIs, Complexity,
Architecture:,
3 2014 Cryptocurrencies: Decentralization, Ongoing
Community
Bitcoin Architectural Development
Involvement
Architectural Analysis
Analysis

7
3. DESIGN OF CRYPTOCURRENCY ADVICE
OPTIONS

3.1. SYSTEM ARCHITECTURE


The Crypto Advice Option system architecture comprises a modular design
integrating WazirX and TradingView APIs for real-time data retrieval. User requests
for custom time frames trigger data fetching, subsequently processed by analytical
algorithms. The system's core components include a data aggregator, analytical
engine, and a user interface module. The WazirX API fetches live market data, while
the TradingView API enhances analytical capabilities. The user interface provides an
intuitive platform for input and results presentation. Ensuring scalability and security,
this architecture forms a cohesive framework, offering cryptocurrency enthusiasts a
comprehensive and user-centric tool for insightful analysis within specified time
intervals.

Fig 3.1: System Architecture

8
3.2 UML DIAGRAMS

3.2.1 Class Diagram

The following is the class diagram for crypto currency advice options

Fig 3.2.1: Class Diagram

3.2.2 Use Case Diagram


The following is the Use case Diagam for crypto currency advice options

Fig 3.2.2: Use case Diagram

In the Use case diagram (3.2.2) we can observe that the user sends preferences to the
userinterface. User interface utilizes the WazirX API and TradingView API to fetch
results from the data center and display the results to the user.

9
3.2.3 Sequence Diagram
The following is the Sequence Diagam for crypto currency advice options

Fig 3.2.3: Sequence Diagram

In the Sequence diagram (Fig 3.2.3) we can observe that the user sends preferences to
the userinterface. User interface utilizes the WazirX API and TradingView API to
fetch results from the data center and display the results to the user

10
4. IMPLEMENTATION

4.1 STEPS
1. Data Aggregation:
Algorithms for efficiently collecting and consolidating data from multiple sources
(WazirX and TradingView APIs).
2. Time Frame Analysis:
Time series analysis algorithms to identify patterns and trends within user-defined
time frames.
3. Performance Evaluation:
Statistical algorithms to assess the performance of cryptocurrencies, considering
factors such as price movements, trading volumes, and historical trends.
4. Pattern Recognition:
Machine learning algorithms or pattern recognition algorithms to identify specific
market patterns and anomalies.
5. Technical Analysis:
Algorithms for technical analysis, including indicators such as moving averages,
Relative Strength Index (RSI), and Bollinger Bands.

4.2 METHODOLOGY
1. User Input Processing:
User inputs with their prefernces, and the algorithms process the user inputs, ensuring
flexibility and customization in defining time frames and preferences.
2. Agile Development:
Utilizing Agile methodologies for software development to ensure flexibility,
collaboration, and iterative improvements. This approach enables continuous
adaptation to evolving project requirements.
3. API Integration:
Adopting RESTful API integration methodology for seamless communication with
external platforms like WazirX and TradingView. This involves structured data
exchange to facilitate real-time data retrieval.

11
4. Time Series Analysis:
Applying time series analysis methodologies to extract meaningful insights from
historical cryptocurrency data within user-defined time frames. This involves
identifying patterns, trends, and potential correlations.
5. Technical Analysis Techniques:
Implementing methodologies from technical analysis, such as moving averages,
trendlines, and other indicators, to evaluate the performance of cryptocurrencies and
generate relevant insights.

5. TESTING AND RESULTS


5.1 TESTING
 Testing is a set of activities that can be planned in advance and conducted
systematically. A strategy for software testing must accommodate low-level
tests that are necessary to verify that a small source code segment has been
correctly implemented as well as high level tests that validate major system
functions against customer requirements.
 Unit testing is used as the user is simply using sample input and observing its
corresponding outputs.

5.2 RESULTS
The following are the images of the outputs generated by the Cryptocurrency advice
options Project
SCREENSHOTS:

Fig 5.2.1: Analyzing Crptos

12
As shown in Fig 5.2.1, it shows the terminal while running the program where the 268
targeted cryptos are analyzed.

Fig5.2.2: User Preferences Interface

As shown in Fig 5.2.2, the User Preferences Interface page is displayed using
Streamlit framework, where users can select or adjust any interval of time ranging
from 1 minute to 1 day.

Fig 5.2.3: Result(1)

As shown in Fig 5.2.3, We can see the output results of Cryptos which suggests strong
Buy in the user selected period of time.

13
Fig 5.2.4: Result(2)
As shown in Fig 5.2.4 We can see the output results of Cryptos which suggests Weak
Buy and Sell in the user selected period of time.

Fig 5.2.5: Result(3)

As shown in Fig, 5.2.5, We can see the output results of Cryptos which suggests
Neutral cryptos in the user selected period of time.

14
6. CONCLUSION AND FUTURE SCOPE

6.1 CONCLUSION
The "CRYPTOCURRENCY ADVICE OPTIONS" project stands as a testament to
innovation in the realm of cryptocurrency analysis, offering a user-centric platform
for enthusiasts and investors. Through the integration of the WazirX and TradingView
APIs, the system provides real-time data, advanced analytics, and personalized
insights. The user-defined time frame feature ensures flexibility, empowering users to
tailor analyses to their preferences. The secure and scalable architecture guarantees a
reliable experience. As the DataCenter fetches and enhances data, and the
UserInterface presents results, the project creates a seamless journey. By removing
complexities and prioritizing user-friendliness, the project transforms cryptocurrency
analysis into an accessible and insightful endeavor. In conclusion, the Bulk Crypto
Analyzer not only addresses the limitations of existing tools but also redefines how
users interact with and understand the dynamic cryptocurrency landscape, marking a
significant stride in the evolution of digital finance tools.

6.2 FUTURE SCOPE


The future scope of the "CRYPTOCURRENCY ADVICE OPTIONS" lays the
foundation for future advancements in cryptocurrency analysis. Potential extensions
include incorporating additional APIs for broader data coverage, implementing
machine learning for predictive insights, and enhancing the user interface for
augmented interactivity. Exploring integration with emerging blockchain technologies
and expanding support for a wider array of cryptocurrencies are also promising
avenues. Continuous refinements in algorithms and security measures, coupled with
community feedback, will ensure the project's adaptability to evolving market
dynamics, positioning it as an ever-evolving tool at the forefront of the dynamic
cryptocurrency landscape.

15
BIBLIOGRAPHY

[1]. Payal Pagariya, Sadhvee Shinde, Rupali Shivpure, Sakshi Patil, Ashwini
Jarali “Cryptocurrency Analysis and Forecasting”, IEEE Volume 6, Issue 17, Oct
2022.

[2]. Guosheng Hu, Yongxin Yang, Dong Yi, Josef Kitler, William Christmas,
Stan Z. Li, et al., "Price Movement Prediction of Cryptocurencies Using
Sentiment Analysis and Machine Learning", November 2020
[3].Israa Alqassem, Davor Svetinovic “Towards Reference Architecture for
Cryptocurrencies: Bitcoin Architectural Analysis”, IEEE International
Conference on Internet of Things, Sep 2014.

16
APPENDIX

CODE:
Main.py
// CRYPTOCURRENCY ADVICE OPTIONS
import requests
from tradingview_ta import TA_Handler, Interval
import streamlit as st
import pandas as pd
data = requests.get('https://api.wazirx.com/sapi/v1/tickers/24hr')
cryptos_listed = []
stron_buy = []
weak_buy = []
sell = []
neutral = []

data = data.json()
for i in range(len(data)):
if data[i]['quoteAsset'] == 'usdt':
cryptos_listed.append(data[i]['symbol'])
print(f'{i}). Symbole:{data[i]["symbol"]}')
print('**********************************')
print('Total number of cryptos:',len(data ))
print('QuoteAsset:USDT')
print('Total number of targated cryptos:',len(cryptos_listed ))
print('**********************************')

def get_predecation(stock_symbol,interval):
"""
Get analysis for a given stock

17
:param stock_symbol: symbol of the stock
:param interval: interval of the stock
:return:
"""
data = TA_Handler(
symbol=stock_symbol,
screener="crypto",
exchange="Binance",
interval=interval,
proxies={'http': 'http://50.114.128.23:3128'} # Uncomment to enable proxy
(replace the URL).
)
analysis = data.get_analysis().summary
return analysis

st.title("Technical Analysis")
st.markdown(
'''
<style>
[data-testid='sidebar'][aria-expanded='true'] > div:firstchild{width:400px}
[data-testid='sidebar'][aria-expanded='false'] > div:firstchild{width:400px ,
margin-left: -400px}
</style>
''',
unsafe_allow_html=True
)

st.markdown('---')
st.title("All Crypto Analysis")
interval = st.selectbox('interval', ['1m', '5m', '15m', '30m', '1h', '4h', '1d', '1w', '1M'])
if interval == '1m':
interval = Interval.INTERVAL_1_MINUTE
elif interval == '5m':

18
interval = Interval.INTERVAL_5_MINUTES
elif interval == '15m':
interval = Interval.INTERVAL_15_MINUTES
elif interval == '30m':
interval = Interval.INTERVAL_30_MINUTES
elif interval == '1h':
interval = Interval.INTERVAL_1_HOUR
elif interval == '4h':
interval = Interval.INTERVAL_4_HOURS
elif interval == '1d':
interval = Interval.INTERVAL_1_DAY
elif interval == '1w':
interval = Interval.INTERVAL_1_WEEK
elif interval == '1M':
interval = Interval.INTERVAL_1_MONTH
SUDMIT = st.button('UPLOAD DATA')
st.markdown('---')
if SUDMIT:
for num , n in enumerate(cryptos_listed):
try:
p = get_predecation(n,interval)

if p['RECOMMENDATION'] == 'STRONG_BUY':
stron_buy.append(n)
print(num,n,':',p['RECOMMENDATION'])

elif p['RECOMMENDATION'] == 'BUY':


weak_buy.append(n)
print(num,n,':',p['RECOMMENDATION'])

elif p['RECOMMENDATION'] == 'SELL':


sell.append(n)

19
print(num,n,':',p['RECOMMENDATION'])
elif p['RECOMMENDATION'] == 'NEUTRAL':
neutral.append(n)
print(num,n,':',p['RECOMMENDATION'])

else:
pass
except:
print(f'error processing {n}')

strongbuy = pd.DataFrame(stron_buy)
weakbuy = pd.DataFrame(weak_buy)
sell = pd.DataFrame(sell)
neutral = pd.DataFrame(neutral)
st.title("Strong Buy")
st.dataframe(strongbuy)
st.markdown('---')
st.title("Weak Buy")
st.dataframe(weakbuy)
st.markdown('---')
st.title("Sell")
st.dataframe(sell)
st.markdown('---')
st.title("Neutral")
st.dataframe(neutral)
st.markdown('---')
print('**************** END ****************')

20

You might also like