Skip to content

Strategy detail

Description

Query details of a currently available strategy by ValueScan strategy ID, including strategy info, trading symbols, performance metrics, risk analysis, and version information.

Endpoint

  • Method: GET
  • Path: /open/v1/strategy/detail

Credits

  • Cost: 1

Request parameters

Parameters are passed via Query String and must participate in signing according to the GET request rules in the authentication documentation.

FieldTypeRequiredDescription
strategyIdlongYesValueScan strategy ID; obtainable from the id field in the strategy list endpoint
languagestringNoResponse content language; supports zh-CN, zh-TW, en-US, vi-VN, ja-JP, ko-KR; default zh-CN; returns 70005 when content for the requested language is temporarily unavailable; returns 40002 for unsupported values

Request example

bash
curl --location 'https://api.valuescan.ai/api/open/v1/strategy/detail?strategyId=1001&language=zh-CN' \
--header 'X-API-KEY: xxxxx' \
--header 'X-TIMESTAMP: xxxxx' \
--header 'X-SIGN: xxxxx'

Response fields

FieldTypeDescription
strategyobjectBasic strategy info, including id, name, description, riskLabel, marketType, performance and signal status
summaryobjectStrategy summary, including trading symbols, leverage, running days, return metrics, and NAV trend
versionobjectCurrent version details
calculatedMetricsobjectPlatform-calculated metrics, including source, pointCount, totalReturn, maxDrawdown
analyticsobjectAnalysis results generated from strategy NAV data
performanceSegmentsobjectPerformance metrics by phase, including backtest and live phase data
riskScopeobjectRisk scope, including trading symbols, max leverage, backtest window, historical max drawdown, cost model, and fee basis
simulationobjectStrategy run overview, including run status, start time, and latest confirmed NAV
symbolsarrayStrategy trading symbol binding info

Main fields of version:

FieldTypeDescription
idlongCurrent version record ID
versionstringStrategy version number
marketTypestringMarket type
navKindstringNAV type
feeBasisstringFee basis
maxLeveragenumberMaximum leverage
avgLeveragenumberAverage leverage
failureModesstringFailure scenario description
remarkstringRemarks
changelogarray/objectVersion change log
ruleSpecstringStrategy rule description
costModelobjectCost model
selfStatsobjectStrategy statistics
selfMetricsobjectStrategy metrics

Fields in each item of symbols:

FieldTypeDescription
symbolstringStrategy trading pair symbol
vsTokenIdlongValueScan token ID
vsTokenSymbolstringValueScan token symbol
vsTokenNamestringValueScan token name
vsTokenIconstringValueScan token icon
exchangestringExchange
marketTypestringMarket type
productTypestringProduct type
exchangeSymbolstringExchange trading pair symbol
settleCoinstringSettlement currency
contractSizenumberContract size; may be null

Success response example

json
{
  "code": 200,
  "message": "success",
  "data": {
    "strategy": {
      "id": 1001,
      "name": "BTC Trend Strategy",
      "description": "Trend-following strategy for BTC perpetual futures.",
      "riskLabel": "medium",
      "marketType": "perpetual"
    },
    "summary": {
      "id": 1001,
      "tokens": [{"vsTokenId": 1, "symbol": "BTC", "name": "Bitcoin"}],
      "maxLeverage": 3,
      "backtestCagr": 0.25
    },
    "version": {
      "id": 2001,
      "version": "1.0.0",
      "marketType": "perpetual",
      "navKind": "backtest",
      "maxLeverage": 3
    },
    "calculatedMetrics": {
      "source": "valuescan_recalculated",
      "pointCount": 365,
      "totalReturn": 0.31,
      "maxDrawdown": 0.12
    },
    "analytics": {},
    "performanceSegments": {},
    "riskScope": {},
    "simulation": {},
    "symbols": []
  },
  "requestId": "xxx-xxx-xxx"
}

Error codes

CodeDescription
40001Missing strategyId
40002Invalid strategyId parameter
50001The requested endpoint does not exist or is currently unavailable
60001Rate limit exceeded
70001Insufficient OpenAPI credits
70002OpenAPI access for the current user has been disabled
70004Strategy does not exist or is currently unavailable
70005Strategy content for the requested language is temporarily unavailable