Inspiration
For this project I wanted to combine my passion for ml, data science and finance to the blockchain. it was my first time doing anything on the blockchain so it was an eye opening experience.
What it does
This project analyzes a given solana wallet, assigns a risk score to it based on volatility, sharpe ratio as well as concentration risk then it summarizes the score using gemini AI to give the user a clearer view of the solana wallet.
How we built it
Python backend with Streamlit frontend, integrated with Solana blockchain via Helius API and Google Gemini AI.
Portfolio Analyzer: Fetches real Solana wallet data (2500+ tokens), filters to 979 meaningful ones, adds realistic mock prices Risk Engine: Calculates volatility, Sharpe ratio, concentration risk using financial algorithms AI Insights: Google Gemini generates portfolio analysis, risk assessment, and recommendations Dashboard: Clean Streamlit UI with gradient styling, real-time updates, educational sections volatility: Weighted average of individual token volatilities
sharpe ratio: (Expected Return - Risk-Free Rate) / Volatility
concentration risk: How much portfolio is concentrated in largest positions
API's used:
Helius API Gemini API
Mock pricing system for realistic demo data ($2.5B portfolio)
Challenges we ran into
I found out that when integrating the helius api to fetch real solana wallet data there was no price information or token symbols so i had to mock a token price and token name. I was unable to properly retrieve portfolio value. This was my first time building on the blockchain so i had to grow with the project. CoinGecko API which wouldve made it easier to retrieve token price, token name and portfolio value was too expensive too use.
Accomplishments that we're proud of
Building something on the solana blockchain for the first time. Testing my prompt engineering skills
What we learned
I learned about sharpe ratio. I learned how to use the helius API. This is my third project using the gemini API and im getting more creative with how and when i use it.
What's next for Solana Wallet risk Analyzer
I will work on properly retrieving portfolio value as well as other info i couldnt retrieve, i will explore other crypto and solana api's in order to improve functionality.
Built With
- blockchain
- gemini
- helius
- python
- sharpe
- solana
- streamlit

Log in or sign up for Devpost to join the conversation.