Skip to main content
POST
/
v1
/
solana
/
dex
/
tokens
/
search-profiles
Search Profiles
curl --request POST \
  --url https://refract.prismapi.io/v1/solana/dex/tokens/search-profiles \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "query": {
    "text": "bonk",
    "fields": [
      "name",
      "symbol"
    ]
  },
  "filter": [
    {
      "field": "time_windows.14d.avg_daily_roi",
      "min": 10,
      "max": 200
    },
    {
      "field": "time_windows.7d.pnl",
      "min": 1000
    },
    {
      "field": "time_windows.30d.max_drawdown",
      "max": 20
    },
    {
      "field": "time_windows.7d.sortino_ratio",
      "eq": 1.5
    }
  ],
  "sort": {
    "field": "time_windows.7d.pnl",
    "direction": "desc"
  },
  "time_windows": [
    "30d",
    "14d",
    "7d"
  ]
}
'
[
  {
    "token_address": "<string>",
    "last_trade_at": 123,
    "created_at": 123,
    "symbol": "<string>",
    "name": "<string>",
    "dev_address": "<string>",
    "dev_migrations": 123,
    "image": "<string>",
    "fdv": 123,
    "market_cap": 123,
    "price": 123,
    "liquidity": 123,
    "holders": 123,
    "total_supply": 123,
    "circulating_supply": 123,
    "top_holdings": 123,
    "dev_holdings": 123,
    "bonding_curve_progress": 123,
    "migrated_at": 123,
    "verified": true,
    "twitter": "<string>",
    "telegram": "<string>",
    "website": "<string>",
    "discord": "<string>"
  }
]
To access and filter/sort nested fields, use dot notation to specify the full field path.
[
    {
        "field": "time_windows.7d.cumulative_pnl",
        "min": 65000
    },
    {
        "field": "time_windows.30d.token_distribution.gt500",
        "min": 5
    }
]

Authorizations

X-Api-Key
string
header
required

Your Prism API key. You can get one for free in the Prism Dashboard.

Body

application/json
query
object

Query rule to apply.

filter
object[]

List of filter rules to apply.

Maximum array length: 20
sort
object

Sorting rule to apply.

time_windows
enum<string>[]

List of time windows to include in the profile.

Available options:
30d,
14d,
7d,
3d,
1d
limit
integer
default:20

Maximum number of results to return.

Required range: 1 <= x <= 100
cursor
string

Cursor to return the next page of results.

Response

List of filtered and sorted token profiles.

token_address
string
last_trade_at
integer<timestamp>
created_at
integer<timestamp>
symbol
string
name
string
dev_address
string
dev_migrations
integer
image
string
fdv
number
market_cap
number
price
number
liquidity
number
holders
integer
total_supply
number
circulating_supply
number
top_holdings
number
dev_holdings
number
bonding_curve_progress
number
migrated_at
integer
verified
boolean
twitter
string
telegram
string
website
string
discord
string