Similar chart

List similar tokens

GET /charts/list-similar-chart

This API endpoint retrieves a list of tokens similar to a specified source token. It helps users discover tokens with similar attributes or characteristics based on the given token ID.

Example on DeFi Lens: https://defilens.ai/tokens/bitcoin/similar-chart

Headers

Name
Type
Description

x-partner-key

string

Your API Key

Ex: xxxx

Body

Name
Type
Description

tokenId

string

The unique identifier of the source token for which similar tokens are being requested. Ex: bitcoin

interval

string

Specifies the time interval for the signals. Possible values include:

  • 1d: 1 day

  • 1h: 1 hour

  • 15m: 15 minutes

  • 5m: 5 minutes

Example request

curl -X 'POST' \
  'https://api.defilens.ai/charts/list-similar-chart' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "tokenId": "string",
  "interval": "string"
}'

Response

{
    "data": {
        "listSimilar": [
            {
                "id": "binancecoin",
                "name": "BNB",
                "symbol": "BNB",
                "image": "https://s2.coinmarketcap.com/static/img/coins/64x64/1839.png",
                "similarity": 0.8332416349456443,
                "diffPercent": 41.83807439824946,
                "type": "up"
            },
            {
                "id": "zcash",
                "name": "Zcash",
                "symbol": "ZEC",
                "image": "https://s2.coinmarketcap.com/static/img/coins/64x64/1437.png",
                "similarity": 0.8580445923660363,
                "diffPercent": 66.98610445615716,
                "type": "up"
            },
            {
                "id": "moonbeam",
                "name": "Moonbeam",
                "symbol": "GLMR",
                "image": "https://s2.coinmarketcap.com/static/img/coins/64x64/6836.png",
                "similarity": 0.8523633484654966,
                "diffPercent": 27.780094476469806,
                "type": "down"
            },
            {
                "id": "kucoin-shares",
                "name": "KuCoin Token",
                "symbol": "KCS",
                "image": "https://s2.coinmarketcap.com/static/img/coins/64x64/2087.png",
                "similarity": 0.8480175163707522,
                "diffPercent": 11.54337926194298,
                "type": "up"
            }
        ]
    }
}

Data return

Name
Type
Description
similarity

float

The percentage similarity of the source token's chart with the historical chart of the similar token.

diffPercent

float

The predicted percentage increase or decrease trend of the source token.

type

string

Indicates the trend direction prediction

Last updated