Skip to content

Basics ​

API base URL ​

https://api.valuescan.io/api

Stream base URL ​

SSE and WebSocket push endpoints use a dedicated Stream domain:

TypeBase URL
HTTPS/SSEhttps://stream.valuescan.ai
WebSocketwss://stream.valuescan.ai

Request method ​

Query endpoints use POST. Parameters are sent as JSON in the request body.

SSE and WebSocket push endpoints use Stream URLs. Authentication parameters are passed via Query String when establishing the connection.

Common request headers ​

HeaderRequiredDescription
Content-TypeYesFixed value application/json
X-API-KEYYesYour API key
X-TIMESTAMPYesCurrent timestamp (milliseconds)
X-SIGNYesRequest signature
AcceptNoRecommended */* or application/json

Common response structure ​

All endpoints return a unified JSON structure:

json
{
    "code": 200,
    "message": "success",
    "data": { ... },
    "requestId": "xxx-xxx-xxx"
}
FieldTypeDescription
codeintegerStatus code; 200 means success, other values indicate errors
messagestringResponse message; success on success, error description on failure
dataobject/arrayResponse payload; structure varies by endpoint
requestIdstringUnique request identifier for troubleshooting

Core concepts ​

vsTokenId ​

vsTokenId is the unique token identifier in ValueScan. Most token-related endpoints require this parameter.

How to obtain:

  • Call the Token list endpoint and search by token name or symbol to get the corresponding vsTokenId
  • Cache frequently used vsTokenId values locally to avoid repeated lookups

Credits ​

Each API call consumes credits. See the Credits section in each endpoint doc for the exact amount.

Credits are the billing unit for this Open API platform and differ from in-app membership points.

Enumeration overview ​

EnumPurposeDescription
BucketTypeK-line time windowSecond, minute, hour, day, week, month granularity
KlineTypeK-line data sourceExchange source (Binance spot, futures, etc.)
TimeParticleEnumTime period granularityMinute through year
PriceMarketTypePrice market directionUp or down
TradeTypeTrade typeSpot or futures
FundsMovementTypeFund anomaly typeInflow/outflow and other anomaly categories
ChanceMessageTypeOpportunity message typeOpportunity token message categories
RiskMessageTypeRisk message typeRisk token message categories