Skip to main content

Check Product Subscription

Type: GET

Description: /v4/finance/product-position

Check if user has subscribed to a specific product.

Parameters

NameTypeMandatoryDescription
productIdlongtrueProduct ID

Request Example

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

Response Example

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

Response Fields

FieldTypeDescription
resultstring"true" if user has subscribed, "false" otherwise

Check Structured Product Subscription

Description:

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

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

Parameters

NameTypeMandatoryDescription
productIdlongtrueProduct ID

Response Example

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