Skip to main content

Check If User Subscribed (Structured Products)

Type: GET

Description:

  • Shark Fin: /v4/finance/product-position/shark
  • Smart Trend: /v4/finance/product-position/smart

Check if user has subscribed to structured products (Shark Fin or Smart Trend).

Request Parameters

NameTypeRequiredDescription
productIdlongYesProduct ID

Request Example (Shark Fin)

Request
curl -G "https://sapi.xt.com/v4/finance/product-position/shark" \
-d "productId=1001" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json"

Request Example (Smart Trend)

Request
curl -G "https://sapi.xt.com/v4/finance/product-position/smart" \
-d "productId=1001" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json"

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": "false"
}

Response Parameters

NameTypeDescription
resultstring"true" means subscribed, "false" means not subscribed