The API is currently in development and is not yet available for production use. Please check back later.
curl --request POST \
--url https://refract.prismapi.io/v1/solana/dex/profiles/tokens/search-profiles \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"$or": [
{
"$and": [
{
"metrics.7d.cumulative_pnl": {
"$gt": 65000,
"$lt": 100000
}
},
{
"metrics.30d.max_drawdown": {
"$lt": 20
}
}
]
},
{
"metrics.7d.sortino_ratio": {
"$in": [
1.5,
2
]
}
}
]
}
'{
"count": 123,
"cursor": "<string>",
"data": [
{
"token_address": "<string>",
"metadata": {
"last_trade_at": 123,
"created_at": 123,
"symbol": "<string>",
"name": "<string>",
"image": "<string>",
"verified": true,
"creator_address": "<string>",
"twitter": "<string>",
"discord": "<string>",
"website": "<string>",
"telegram": "<string>"
},
"market": {
"fdv": 123,
"market_cap": 123,
"price": 123,
"liquidity": 123,
"holders": 123,
"total_supply": 123,
"circulating_supply": 123,
"top_holdings": 123,
"dev_holdings": 123
},
"metrics": {
"7d": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"1d": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"6h": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"1h": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"5m": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"1m": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
}
}
}
]
}Search and filter token profiles based on specified metrics and conditions.
curl --request POST \
--url https://refract.prismapi.io/v1/solana/dex/profiles/tokens/search-profiles \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"$or": [
{
"$and": [
{
"metrics.7d.cumulative_pnl": {
"$gt": 65000,
"$lt": 100000
}
},
{
"metrics.30d.max_drawdown": {
"$lt": 20
}
}
]
},
{
"metrics.7d.sortino_ratio": {
"$in": [
1.5,
2
]
}
}
]
}
'{
"count": 123,
"cursor": "<string>",
"data": [
{
"token_address": "<string>",
"metadata": {
"last_trade_at": 123,
"created_at": 123,
"symbol": "<string>",
"name": "<string>",
"image": "<string>",
"verified": true,
"creator_address": "<string>",
"twitter": "<string>",
"discord": "<string>",
"website": "<string>",
"telegram": "<string>"
},
"market": {
"fdv": 123,
"market_cap": 123,
"price": 123,
"liquidity": 123,
"holders": 123,
"total_supply": 123,
"circulating_supply": 123,
"top_holdings": 123,
"dev_holdings": 123
},
"metrics": {
"7d": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"1d": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"6h": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"1h": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"5m": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
},
"1m": {
"largest_trade_win": 123,
"largest_trade_loss": 123,
"avg_buy_size": 123,
"avg_sell_size": 123,
"avg_price": 123,
"avg_buy_price": 123,
"avg_sell_price": 123,
"avg_buy_mcap": 123,
"avg_sell_mcap": 123,
"avg_holding_duration": 123,
"avg_trade_pnl": 123,
"avg_trade_roi": 123,
"avg_wallet_winrate": 123,
"avg_wallet_pnl": 123,
"avg_wallet_roi": 123,
"wallet_roi_distribution": {
"gt_500": 123,
"200_500": 123,
"0_200": 123,
"neg50_0": 123,
"lt_neg50_0": 123
},
"makers_count": 123,
"buyers_count": 123,
"sellers_count": 123,
"buy_count": 123,
"sell_count": 123,
"win_position_count": 123,
"loss_position_count": 123,
"win_pnl": 123,
"loss_pnl": 123,
"buy_volume": 123,
"sell_volume": 123,
"pnl": 123,
"trade_count": 123,
"volume": 123,
"position_count": 123,
"volume_weighted_winrate": 123,
"volume_weighted_roi": 123,
"wallet_hit_ratio": 123,
"profit_factor": 123,
"win_loss_size_ratio": 123,
"pnl_volume_ratio": 123,
"price_stability": 123,
"price_volatility": 123,
"roi_stability": 123,
"roi_volatility": 123,
"pnl_volatility": 123,
"pnl_stability": 123,
"sharpe_ratio": 123,
"sortino_ratio": 123,
"max_drawdown": 123
}
}
}
]
}Learn how to filter
metrics.7d.cumulative_pnlmarket.fdvmetadata.symbolfilter object must be constructed using explicit operators.$and - All conditions must match.{"$and": [{"field": { "$eq": "value" }}, {"field": { "$gt": "value" }}]}
$or - At least one condition must match.{"$or": [{"field": { "$eq": "value" }}, {"field": { "$gt": "value" }}]}
$eq - Equal to.
{"field": { "$eq": "value" }}
$ne - Not equal to.
{"field": { "$ne": "value" }}
$gt - Greater than.
{"field": { "$gt": "value" }}
$lt - Less than.
{"field": { "$lt": "value" }}
$gte - Greater than or equal to.
{"field": { "$gte": "value" }}
$lte - Less than or equal to.
{"field": { "$lte": "value" }}
$in - In the list.
{"field": { "$in": ["value1", "value2"] }}
$nin - Not in the list.
{"field": { "$nin": ["value1", "value2"] }}
Your Prism API key. You can get one for free in the Prism Dashboard.
Query rule to apply.
Show child attributes
Filter rules to apply. An object following a MongoDB query like syntax.
Sorting rule to apply.
Show child attributes
List of time windows to include in the profile metrics.
7d, 1d, 6h, 1h, 5m, 1m Maximum number of results to return.
1 <= x <= 100Cursor to return the next page of results.
Was this page helpful?