okx-onchain-analyst

Analyzes wallet portfolios using 30-day onchain kline data to compute PnL, volatility, Sharpe ratio, and diversification scores.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-onchain-analyst-nith567
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-onchain-analyst
Source: https://github.com/Nith567/xlayer-skills-arena/tree/main/okx-onchain-analyst
Command: npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-onchain-analyst-nith567

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Crypto holders lack visibility into how their wallet is actually performing across chains, making it hard to judge risk, diversification, and which tokens drive gains or losses. ## Core Features & Use Cases - Portfolio Analytics: Fetches 30-day kline history for every token in a wallet and computes PnL, annualized volatility, Sharpe ratio, RSI, and momentum scores. - Diversification & Risk Analysis: Builds a token correlation matrix, chain distribution breakdown, risk label, and a 0-100 portfolio health score with weighted sub-scores. - Actionable Signals: Generates RSI- and momentum-based hold/add/trim signals and hands off to okx-auto-rebalance for execution. - Use Case: Ask "analyze my portfolio and show Sharpe ratio" to receive a ranked 30-day performance table, risk profile, correlation heatmap, and three data-driven action suggestions. ## Quick Start Ask the agent to analyze my portfolio and show my 30 day PnL, risk profile, and diversification score.

Frequently Asked Questions about okx-onchain-analyst

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze my crypto wallet portfolio performance?▼

Ask the agent to analyze your portfolio; it fetches wallet balances via onchainos, pulls 30-day kline history per token, and returns a ranked table of returns, volatility, Sharpe ratio, and RSI for each holding.

How is the portfolio Sharpe ratio calculated from onchain data?▼

The skill computes daily returns from 30-day kline closes, then divides annualized mean return by annualized standard deviation, using a simplified zero risk-free rate. Portfolio Sharpe uses the weighted average return over portfolio volatility.

Which chains does the portfolio analysis support?▼

It works on all chains supported by the OKX onchainos CLI, including Base, Ethereum, Solana, and X Layer. Chain names and chainIndex values come from the shared chain-support reference file.

Can I rebalance my portfolio based on the analysis results?▼

Yes. After the health score and action suggestions, the skill offers to hand off to okx-auto-rebalance with a suggested allocation, such as taking profit from top performers or increasing stablecoin hedge.

What are the limitations of the 30-day portfolio metrics?▼

All metrics are derived from 30 days of historical kline data and do not predict future returns. The simplified portfolio volatility ignores cross-token correlation, and signals are data-driven heuristics, not financial advice.