DeFi Lens
  • API Introduction
    • Signal Matrix
    • AI Position
    • Similar chart
    • Candle Detection
    • Chart pattern
    • Token Info and Technical Analyst Indicator
    • ICO/IDO
    • Market
    • Errors
  • Privacy Policy
  • Terms of Use
Powered by GitBook
On this page
  • List similar tokens
  • Headers
  • Body
  • Example request
  • Response
  • Data return
  1. API Introduction

Similar chart

PreviousAI PositionNextCandle Detection

Last updated 7 months ago

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:

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

float

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

float

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

string

Indicates the trend direction prediction

similarity
diffPercent
type
https://defilens.ai/tokens/bitcoin/similar-chart