Layer 2 — Wallet Intelligence
FIFO cost-basis PnL, 30-dimensional behavior profiling, wallet similarity, focused classification, position-correct skill, and funding provenance.
Rate limits: 300 REST req/min, 1,500,000 calls a month included, 20 WebSocket connections, 500 tracked wallets, 1,000 similarity queries/day, full PnL history.
WebSocket Streams
events.wallet.{addr}.pnl
Channel: wallet:{addr}:pnl
Real-time realized PnL events, published on every sell.
- Rich event payload: entry/exit timestamps, signatures, slots, prices, amounts
- Fee allocation: entry fees (pro-rata) + exit fees
- PnL in both USD and SOL, percentage gain, position type (Full/DCA)
- Exit classification: Full/Partial, exit number, remaining cost basis
- Bot detection flags, DEX info
events.wallet.{addr}.position
Channel: wallet:{addr}:positions
Live position deltas — every open/close/partial-exit as it happens.
- FIFO cost-basis accounting: buys create entries, sells pop from front of queue
- Handles partial exits with pro-rata fee allocation
- Transfer-out detection: inventory consumed without PnL attribution
events.wallet.{addr}.labels
Channel: wallet:{addr}:labels
Enriched wallet-label payload published when the analytics emitter processes wallet activity and detects a label-state change. The live event may contain more analytics fields than the focused REST label object.
- Deduplicated — only publishes on actual state change
- Rate limited to prevent flooding
- Fields include:
kol_username,kol_platform, trader type, performance level, badges, and activity metrics - An alias-table update alone does not guarantee an event for a dormant wallet. Use
GET /v1/wallet/{addr}/identitywhen identity freshness is required. - Empty-string
kol_username/kol_platformvalues explicitly clear cached identity state; do not ignore them as absent patch fields. REST compact projections use JSONnullfor absence.
REST Endpoints
For endpoint selection, exact empty-result semantics, platform-safe links, and handle-to-wallet workflows, see Public KOL Identity.
GET /v1/wallet/{addr}/identity
Returns a wallet’s preferred public KOL identity plus every active alias. This endpoint is independent of trading-label coverage, so an alias-only wallet can resolve before it has enough activity for classification.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
addr | path | string | yes | A Solana key (32–44 characters from the Solana base58 alphabet) or an EVM address (0x and 40 hex digits, any case); route-level syntax check |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/$WALLET_ADDRESS/identity"Response
{
"wallet_address": "A5SEXYJY4jTEi6sjMLfZs5KAP8SVFvLDPDV67GgSSZSk",
"primary": {
"platform": "x",
"username": "frankdegods",
"profile_url": "https://x.com/frankdegods",
"source": "fomo",
"verification": "source_asserted",
"created_at": "2026-08-20T18:30:00Z",
"updated_at": "2026-08-25T09:15:00Z"
},
"aliases": [
{
"platform": "x",
"username": "frankdegods",
"profile_url": "https://x.com/frankdegods",
"source": "fomo",
"verification": "source_asserted",
"created_at": "2026-08-20T18:30:00Z",
"updated_at": "2026-08-25T09:15:00Z"
}
]
}primary is null and aliases is empty when no active association exists. primary is the alias the registry chose for the wallet’s label, verified before predicted. source_asserted describes the provenance of the association; it is not cryptographic proof that the account owner controls the wallet. created_at and updated_at are RFC 3339 in UTC (Z), with fractional seconds only when they are not zero, e.g. 2026-10-10T20:55:25.598085Z.
GET /v1/kol-wallets/{username}
Resolves a normalized public username to every actively associated Solana wallet. The leading @ is optional and matching is case-insensitive.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
username | path | string | yes | X or Telegram username, with or without @ |
platform | query | string | no | Restrict results to x or telegram |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/kol-wallets/frankdegods?platform=x"Response
{
"username": "frankdegods",
"wallets": ["A5SEXYJY4jTEi6sjMLfZs5KAP8SVFvLDPDV67GgSSZSk"]
}An unknown username returns 200 with an empty wallets array. The response username is normalized to lowercase, and wallets are sorted by address rather than relevance or performance. Use the wallet identity endpoint to retrieve platform-correct profile URLs and alias provenance for a returned address.
GET /v1/wallet/{addr}/profile
Multi-dimensional behavior vector breakdown with raw and normalized values.
Feature Groups
| Group | Covers |
|---|---|
| Hold timing | Exit timing patterns and hold duration |
| Exit discipline | Win rate, exit behavior, DCA patterns |
| Performance | Return metrics, risk-adjusted performance |
| Velocity & sizing | Trading frequency, position sizing, diversification |
| Infrastructure | DEX usage, automation level, tool patterns |
| Provenance | Funding origin, account history |
Gating
A wallet must meet minimum activity thresholds to have a profile (minimum closed positions, activity span, and trade count).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
addr | path | string | yes | Solana wallet address |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../profile"Response
{
"wallet": "7xKXtg...",
"has_vector": true,
"profile": {
"trader_type": "DAY_TRADER",
"performance_level": "EARNER",
"size_class": "SHRIMP",
"exit_style": "MIXED",
"win_rate": 0.2222,
"total_pnl_usd": 101219.79,
"total_trades": 107,
"labels": ["CEX_FUNDED", "LOTTO_PLAYER"]
},
"features": [
{
"name": "hold_first_exit_p25",
"description": "Time to first exit (25th pctl)",
"raw_value": 325,
"normalized_value": 0.429
}
]
}features holds 30 entries, one per behavior feature, each with its name, a short description, its raw value and a normalized_value from 0 to 1 for comparison across wallets. has_vector is false when the wallet has too few closed positions to be compared with others; the features are still returned, and /similar answers 404 for that wallet. Cache TTL: 60 seconds.
GET /v1/wallet/{addr}/similar
k-NN wallet similarity search powered by Qdrant.
Parameters
| Parameter | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
addr | path | string | yes | — | Solana wallet address |
limit | query | integer | no | 20 | Max results (max 100) |
min_trades | query | integer | no | — | Minimum trade count filter |
performance_level | query | string | no | — | Filter: EARNER, BREAK_EVEN, UNPROFITABLE, UNRATED, DORMANT |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../similar?limit=10&performance_level=EARNER"Response
{
"query_wallet": "7xKXtg...",
"query_profile": {
"trader_type": "DAY_TRADER",
"performance_level": "EARNER",
"size_class": "SHRIMP",
"exit_style": "MIXED",
"win_rate": 0.2222,
"total_pnl_usd": 101219.79,
"total_trades": 107,
"labels": ["CEX_FUNDED", "LOTTO_PLAYER"]
},
"similar_wallets": [
{
"wallet": "FPLN1n...",
"similarity": 0.985,
"trader_type": "DAY_TRADER",
"performance_level": "DORMANT",
"size_class": "FISH",
"win_rate": 0.3442,
"total_pnl_usd": 3228.67,
"total_trades": 171,
"shared_traits": ["Bot activity share", "CEX-funded via provenance"],
"key_differences": ["Profit factor (gross profit / gross loss) (lower)"]
}
]
}similar_wallets lists up to limit wallets, most similar first; similarity is cosine similarity, where 1 means the same behavior. shared_traits names the features the two wallets match on most, and key_differences the ones they differ on most, each marked (higher) or (lower) for the similar wallet. query_profile is the queried wallet’s own summary, as on /profile. A wallet with no behavioral profile (fewer than 10 closed positions) answers 404 with {"error": "Wallet <address> has no behavioral profile (needs ≥10 closed positions)", "code": 404}.
GET /v1/wallet/{addr}/provenance
Funding chain resolution — where did this wallet’s SOL come from?
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
addr | path | string | yes | Solana wallet address |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../provenance"Response
{
"wallet": "7xKXtg...",
"root_entity": "Binance",
"root_source": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"hops": 3,
"direct_funder": "9aBcD...",
"last_funded_ts": "2026-03-01 08:30:00.412",
"root_address_label": {
"name": "Binance",
"type": "exchange",
"role": "Hot Wallet",
"tier": "verified",
"reason": "verified: Conyr's curated list, plain wallet at slot 460080146; Conyr's roots list and Binance proof of reserves agree"
},
"direct_funder_address_label": null
}- Traces funding chain back to originating CEX or known entity
- Curated root wallet database covering major exchanges
root_address_labelanddirect_funder_address_labelare the registry’s labels of the root and of the direct funder ({name, type, role, tier, reason}) when they are services or carry the OFAC mark, andnullotherwise. They come from the registry’s ClickHouse dictionary, 5–10 minutes behind a registry load. See Address Labels for the receipts behind a label- When no known root is found, the response is
{ "wallet": ..., "root_entity": null, "hops": null, "funding_path": null, "root_address_label": null, "direct_funder_address_label": null }— theroot_source,direct_funder, andlast_funded_tskeys appear only when a root is resolved last_funded_tsis UTC text,YYYY-MM-DD HH:MM:SS.mmm(a space, milliseconds, no zone), e.g.2026-11-15 11:32:21.514; empty when unknown. It is not RFC 3339
GET /v1/wallet/{addr}/trades
Historical realized-PnL trade records for a wallet — one row per closed or partial exit.
/pnl endpoint. A wallet’s realized-PnL trade history is served here at /trades; aggregate stats live on /performance.Parameters
| Parameter | In | Type | Required | Default | Constraints |
|---|---|---|---|---|---|
addr | path | string | yes | — | — |
limit | query | integer | no | 50 | Max 200 |
offset | query | integer | no | 0 | — |
token | query | string | no | — | Filter by token mint |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../trades?limit=20&token=EPjFWd..."Response
{
"trades": [
{
"wallet_address": "7xKXtg...",
"token_mint": "BYHRxt...",
"entry_signature": "4Y4i4H...",
"exit_signature": "5AANmm...",
"entry_timestamp": "2026-11-18 02:28:20.856",
"exit_timestamp": "2026-11-18 03:19:31.177",
"hold_time_seconds": 3070,
"entry_price_usd": 6423.017343,
"exit_price_usd": 117.741853,
"realized_pnl_usd": 107.071051,
"realized_pnl_sol": 1.434054,
"percentage_gain": 1003.4,
"position_type": "DCA_EXIT",
"exit_type": "FULL",
"exit_dex": "PumpSwap",
"entry_dex": "PumpFun",
"basis": "own"
}
],
"limit": 20,
"offset": 0
}- One row per exit.
entry_price_usdis what the whole entry position cost in US dollars, not a price per token and not only the part sold in this exit.exit_price_usdis the dollars this exit received.realized_pnl_usdandpercentage_gain(in percent) are for the part sold. basisisownwhen this wallet bought the tokens it sold, andreceived_transferwhen another wallet bought them and moved them here.entry_timestampandexit_timestampare UTC text,YYYY-MM-DD HH:MM:SS.mmm(a space, milliseconds, no zone), e.g.2026-11-18 02:28:20.856. They are not RFC 3339: read them as UTC. Full FIFO cost-basis accounting; the entry and exit signatures let you check each row on chain.
GET /v1/wallet/{addr}/positions
Current open positions with FIFO cost basis. Mark-to-market unrealized PnL is not part of this response. To derive it, the cost basis of what is left is remaining_amount * price_per_token, and a recent trade gives the current price in the same unit: base_price_usd / token_amount from GET /v1/token/{mint}/trades?limit=1.
Parameters
| Parameter | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
addr | path | string | yes | — | Solana wallet address |
status | query | string | no | all | open, closed, or all |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../positions?status=open"Response
{
"positions": [
{
"wallet_address": "7xKXtg...",
"token_mint": "7DvUqn...",
"entry_signature": "2QSRsC...",
"entry_timestamp": 1784866619681,
"entry_price_usd": 952.907276,
"original_amount": 33983701270529,
"remaining_amount": 33983701270529,
"price_per_token": 2.8040126e-11,
"status": "OPEN",
"exit_count": 0,
"entry_dex": "PumpFun"
}
]
}entry_timestampis Unix time in milliseconds, an integer (e.g.1784866619681), unlike the text times of/trades.original_amountandremaining_amountare in the token’s smallest unit.entry_price_usdis what the lot cost in US dollars, andprice_per_tokenis that cost per smallest unit (entry_price_usd / original_amount).statusisOPEN,PARTIALorCLOSED. One row per entry lot, newest first, at most 100 rows. No current value is included; see the note above.
GET /v1/wallet/{addr}/labels
Focused classification object. For broader agent reasoning, use the MCP query_wallet_xray or wallet_overview tools, which compose labels with performance, provenance, and profile data.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
addr | path | string | yes | Solana wallet address |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../labels"Response
{
"wallet": "7xKXtg...",
"kol_username": "frankdegods",
"kol_platform": "x",
"address_label": null,
"trader_type": "DAY_TRADER",
"performance_level": "EARNER",
"size_class": "SHARK",
"exit_style": "DCA_OUT",
"automation_label": "ORGANIC",
"primary_terminal": "photon",
"primary_tool": "photon",
"primary_tool_pct": 0.85,
"is_fresh_6h": 0,
"is_fresh_24h": 0,
"funded_by_farm": 0,
"trade_badges": ["CONSISTENT_WINNER", "RUNNER_KEEPER", "STOP_LOSS_USER"],
"identity_badges": [],
"special_labels": [],
"description": "Earner day trader, DCA exits, funded by a known CEX root.",
"label_hash": "a1b2c3d4e5f6"
}Freshness: the compact KOL pair first passes through a ClickHouse dictionary with a 5–10 minute refresh lifetime; the complete labels response is then cached for 60 seconds.
kol_username and kol_platform are nullable. This endpoint is backed by the wallet-label snapshot and may return null for an alias-only wallet with no classification row; use /v1/wallet/{addr}/identity for a lookup independent of trading activity. Build x.com/{kol_username} links only when kol_platform is x, and t.me/{kol_username} links when it is telegram.
address_label is the registry’s label of the wallet itself ({name, type, role, tier, reason}) when it is a service or carries the OFAC mark, and null otherwise, through the same kind of 5–10 minute dictionary. A service wallet rarely has a classification row, so this endpoint often answers null for one as a whole: read /v1/address/{addr}/label to learn what any address is. identity_badges is kept for older clients and is always empty.
GET /v1/wallet/{addr}/quality
The position-correct skill signal. Conyr keeps the fully closed FIFO entry-lot win rate separate from the per-exit-row rate because a DCA-out can emit several profitable rows from one lot. This endpoint exposes both units and their non-negative gap. Read the 194,610-wallet temporal study for the current method, results, sensitivity analysis, and closed-only limitations.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
addr | path | string | yes | Solana wallet address |
Example
curl -H "Authorization: Bearer $API_KEY" \
"https://api.conyr.ai/v1/wallet/7xKXtg.../quality"Response
Returns 200 with the object below, or 200 with literal null when the wallet has no snapshot row yet.
{
"wallet": "7xKXtg...",
"rated": true,
"skill_score": 72.4,
"performance_level": "EARNER",
"trader_type": "SWING_TRADER",
"exit_style": "RUNNER_KEEPER",
"size_class": "SHARK",
"closed_positions": 184,
"position_win_rate_pct": 41.2,
"raw_exit_win_rate_pct": 63.7,
"win_rate_inflation_pts": 22.5,
"disposition_index": 0.84,
"conviction_sizing": 1.32,
"profit_factor": 2.1,
"sharpe_ratio": 1.8,
"runner_score": 0.61,
"avg_loss_roi_pct": -18.3,
"loss_consistency_stddev": 12.4,
"roi_p10_pct": -42.0,
"roi_p50_pct": 6.1,
"roi_p90_pct": 88.0,
"big_wins": 14,
"big_losses": 6,
"realized_pnl_usd": 18243.55,
"trade_badges": ["RUNNER_KEEPER", "CONSISTENT_WINNER"]
}ratedistruewhenclosed_positions >= 10.skill_score(0–100) =0.40·position_win_rate + 0.30·profit_factor + 0.15·disposition + 0.15·runner, each normalized and clamped — heuristic and explainable, not a calibrated probability.position_win_rate_pctis the fully closed FIFO entry-lot rate;raw_exit_win_rate_pctis the per-exit-row rate;win_rate_inflation_pts=raw_exit − position, floored at 0.roi_p10_pct,roi_p50_pctandroi_p90_pctarenullwhenclosed_positionsis 0.
GET /v1/token/{mint}/buyer-quality
Buyer-quality is a Free-tier endpoint, available on every tier (higher tiers include all lower endpoints). The response is identical at all tiers — there is no Layer-2-specific enrichment. Supports ?window_hours= (default 1).
See Free Tier → Buyer Quality for the full response schema.