Signal Matrix

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: https://defilens.ai/tokens/bitcoin/signals

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
signal_id

string

Type of technical indicator.

"1d", "1h", "15m", "5m"

object

Chart interval

total_count

integer

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

win_count

integer

The total number of win orders based on backtesting data

action_side

string

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

win_rate

float

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

Last updated