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 of pattern
  • Headers
  • Body
  • Example request
  • Response
  • Data return
  1. API Introduction

Chart pattern

PreviousCandle DetectionNextToken Info and Technical Analyst Indicator

Last updated 7 months ago

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:

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

float

The completion percentage of the pattern.

string

The name of the technical pattern.

float

The probability that the pattern will reach its target price.

float

The predicted price target.

completion
name
prediction
targetPrice
https://defilens.ai/tokens/bitcoin/pattern-detection