Skip to main content

Set Auto Subscribe

Type: POST

Description: /v4/finance/auto-subscribe

Enable or disable auto subscribe for a specific product.

Parameters

NameTypeMandatoryDescription
productIdlongtrueProduct ID
enabledbooleantrueEnable or disable auto subscribe

Request Example

Request
curl -X POST "https://sapi.xt.com/v4/finance/auto-subscribe" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d '{
"productId": 1001,
"enabled": true
}'

Response Example

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

Response Fields

FieldTypeDescription
resultbooleanOperation result