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

Signal Matrix

PreviousAPI IntroductionNextAI Position

Last updated 7 months ago

Signal Matrix

GET /signal-matrix

The Signal Matrix API provides trading signals and their associated statistics for specific cryptocurrency tokens. This documentation outlines the usage, request format, and response structure of the API.

Example on DeFi Lens:

Headers

Name
Type
Description

x-partner-key

string

Your API Key

Ex: xxxx

Body

Name
Type
Description

token_id

string

Token name Ex: bitcoin

Possible enum values for token_id include the following tokens:

["bitcoin", "ethereum", "binancecoin", "solana", "dogecoin", "chainlink", "ripple", "polkadot", "shiba-inu", "cosmos", "near", "axie-infinity", "avalanche-2", "algorand", "injective-protocol", "oraichain-token"]

Example request

curl "https://api.defilens.ai/strategies/signal-matrix?token_id=bitcoin" \
  -H "x-partner-key: xxx"

Response


    "data": [
        {
            "signal_id": "VSA",
            "1d": {
                "total_count": 30,
                "win_count": 15,
                "action_side": "neutral"
            },
            "1h": {
                "total_count": 30,
                "win_count": 18,
                "action_side": "neutral"
            },
            "15m": {
                "total_count": 30,
                "win_count": 16,
                "action_side": "sell"
            },
            "5m": {
                "total_count": 30,
                "win_count": 13,
                "action_side": "neutral"
            }
        },
        {
            "signal_id": "RSI 7",
            "1d": {
                "total_count": 30,
                "win_count": 19,
                "action_side": "sell"
            },
            "1h": {
                "total_count": 30,
                "win_count": 18,
                "action_side": "neutral"
            },
            "15m": {
                "total_count": 30,
                "win_count": 14,
                "action_side": "sell"
            },
            "5m": {
                "total_count": 30,
                "win_count": 14,
                "action_side": "sell"
            }
        },
        {
            "signal_id": "Bollinger Bands and RSI",
            "1d": {
                "total_count": 30,
                "win_count": 16,
                "action_side": "buy"
            },
            "1h": {
                "total_count": 30,
                "win_count": 12,
                "action_side": "buy"
            },
            "15m": {
                "total_count": 30,
                "win_count": 15,
                "action_side": "buy"
            },
            "5m": {
                "total_count": 30,
                "win_count": 16,
                "action_side": "sell"
            }
        }
    ],
    "summary": {
        "1d": {
            "action_side": "buy",
            "win_rate": 40.0
        },
        "1h": {
            "action_side": "sell",
            "win_rate": 56.67
        },
        "15m": {
            "action_side": "buy",
            "win_rate": 43.33
        },
        "5m": {
            "action_side": "sell",
            "win_rate": 66.67
        }
    }
}

Data return

Name
Type
Description

string

Type of technical indicator.

object

Chart interval

integer

The total number of orders that have been placed based on historical data

integer

The total number of win orders based on backtesting data

string

The specific action taken during the backtesting process at a given point in time Ex: buy, sell, neutral

float

The percentage calculated based on action_side, win_count, and the corresponding weight

signal_id
"1d", "1h", "15m", "5m"
total_count
win_count
action_side
win_rate
https://defilens.ai/tokens/bitcoin/signals