Skip to content

Quick start

Integration flow

Step 1: Obtain an API key

In the Console, obtain your API key.

Step 2: Confirm base URLs

TypeBase URL
API query endpointshttps://api.valuescan.io/api
SSE push endpointshttps://stream.valuescan.ai
WebSocket push endpointswss://stream.valuescan.ai

Step 3: Make your first request

Using the Token list endpoint as an example:

Request example

json
{
    "search": "BTC"
}

cURL example

bash
curl --location --request POST 'https://api.valuescan.io/api/open/v1/vs-token/list' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your-api-key' \
--header 'X-TIMESTAMP: millisecond-timestamp' \
--header 'X-SIGN: signature' \
--data-raw '{
    "search": "BTC"
}'

Step 4: Handle the response

json
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "id": 1,
            "symbol": "BTC",
            "name": "Bitcoin"
        }
    ],
    "requestId": "xxx-xxx-xxx"
}

Core parameters

ParameterDescriptionHow to obtain
vsTokenIdUnique token identifierVia the Token list endpoint
coinKeyOn-chain token identifierVia the Token details endpoint

Typical call chain

1. Token list → obtain vsTokenId

2. Token details → obtain token info and coinKey

3. Business endpoints → call specific data APIs (K-line, funds, on-chain, etc.)

Next steps

  • Read Basics for full API conventions
  • Read Error handling for error code definitions
  • Consult individual endpoint docs for detailed parameters