Skip to main content

Structured Products Re-invest Setting

Shark Fin Re-invest Setting

Type: POST

Description: /v4/finance/re-invest-shark-fin

Enable or disable auto re-invest for Shark Fin products.

Parameters

NameTypeMandatoryDescription
positionIdstringtruePosition ID
enabledbooleantrueEnable or disable re-invest

Request Example

Request
curl -X POST "https://sapi.xt.com/v4/finance/re-invest-shark-fin" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d '{
"positionId": "123456789",
"enabled": true
}'

Response Example

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

Smart Trend Re-invest Setting

Type: POST

Description: /v4/finance/re-invest-smart-trend

Enable or disable auto re-invest for Smart Trend products.

Parameters

NameTypeMandatoryDescription
positionIdstringtruePosition ID
enabledbooleantrueEnable or disable re-invest

Request Example

Request
curl -X POST "https://sapi.xt.com/v4/finance/re-invest-smart-trend" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d '{
"positionId": "123456789",
"enabled": true
}'

Response Example

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

Response Fields

FieldTypeDescription
resultbooleanOperation result