Skip to content

Trade count trend

Description

Counts and notionals of sends/receives for an address on one coinKey.

Use cases

  • Activity level
  • Buy vs sell intensity

Update: Daily

Endpoint

  • Method: POST
  • Path: /open/v1/chain/trade/token/tradeCountTrend

Credits

  • Cost: 2

Prerequisites

vsTokenId, coinKey, address — same as other address-scoped chain APIs

Request body (JSON)

FieldTypeRequiredDescription
vsTokenIdlongYesToken id
coinKeystringYesChain key
addressstringYesWallet
startTimelongNoStart (ms)
endTimelongYesEnd (ms)

Response — data[]

FieldTypeSerializedDescription
vsTokenIdlongstringToken id
symbolstringstringTicker
namestringstringName
datelonglongTime (ms)
fromCountintegerstringOutgoing tx count
toCountintegerstringIncoming tx count
fromAmountnumberstringOut amount
toAmountnumberstringIn amount
pricenumberstringPrice

Semantics

FieldMeaningTip
fromCountSells / sendsHigher → more distribution txs
toCountBuys / receivesHigher → more accumulation txs
fromAmount / toAmountNotionalsFlow direction

Example

json
{
    "vsTokenId": 1,
    "coinKey": "BTC_BTC",
    "address": "3M219KR5vEneNb47ewrPfWyb5jQ2DjxRP6",
    "endTime": 1773479265534
}

cURL (Linux/macOS)

bash
curl --location --request POST 'http://${host}/api/open/v1/chain/trade/token/tradeCountTrend' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: xxxxx' \
--header 'X-TIMESTAMP: xxxxx' \
--header 'X-SIGN: xxxxx' \
--header 'Accept: */*' \
--data-raw '{
    "vsTokenId": 1,
    "coinKey": "BTC_BTC",
    "address": "3M219KR5vEneNb47ewrPfWyb5jQ2DjxRP6",
    "endTime": 1773479265534
}'

cURL (Windows CMD)

cmd
curl --location --request POST "http://${host}/api/open/v1/chain/trade/token/tradeCountTrend" ^
--header "Content-Type: application/json" ^
--header "X-API-KEY: xxxxx" ^
--header "X-TIMESTAMP: xxxxx" ^
--header "X-SIGN: xxxxx" ^
--header "Accept: */*" ^
--data-raw "{    \"vsTokenId\": 1,    \"coinKey\": \"BTC_BTC\",    \"address\": \"3M219KR5vEneNb47ewrPfWyb5jQ2DjxRP6\",    \"endTime\": 1773479265534}"

Sample success

json
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "vsTokenId": "1",
            "symbol": "BTC",
            "name": "Bitcoin",
            "date": 1542038400000,
            "fromCount": "1",
            "toCount": "1",
            "fromAmount": "0.01",
            "toAmount": "0.01",
            "price": "6359.49"
        }
    ],
    "requestId": "xxx-xxx-xxx"
}