Chart pattern

List of pattern

GET /charts/list-pattern

The API can automatically detect common chart patterns such as head and shoulders, double tops, double bottoms, triangles, and flags. These patterns are crucial for traders looking to make informed decisions based on historical trends.

Example on DeFi Lens: https://defilens.ai/tokens/bitcoin/pattern-detection

Headers

Name
Type
Description

x-partner-key

string

Your API Key

Ex: xxxx

Body

Name
Type
Description

tokenId

string

Source token symbol Ex: bitcoin

interval

string

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

  • 1d: 1 day

  • 4h: 4 hours

  • 1h: 1 hour

Example request

curl -X 'GET' \
  'https://api.defilens.ai/charts/list-pattern?tokenId=bitcoin&interval=1h' \
  -H 'accept: */*'

Response

{
    "data": [
        {
            "name": "Double Bottom",
            "completion": 81.56,
            "prediction": 26.84,
            "targetPrice": 714.3
        }
    ]
}

Data return

Name
Type
Description
completion

float

The completion percentage of the pattern.

name

string

The name of the technical pattern.

prediction

float

The probability that the pattern will reach its target price.

targetPrice

float

The predicted price target.

Last updated