Collect Trading Pair
Type: POST
Description: /future/user/v1/user/collection/add
Remark:
Content-Type = application/x-www-form-urlencodedorapplication/json
Limit Flow Rules
200/s/apikey
Parameters
| Name | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| symbol | string | true | N/A | Trading pair | — |
Request Example
Request
curl -X POST "https://fapi.xt.com/future/user/v1/user/collection/add" \
-H "validate-appkey: $APPKEY" \ # Required
-H "validate-timestamp: $TIMESTAMP" \ # Required
-H "validate-singature: $SINGATURE" \ # Required
-H "Content-Type: application/x-www-form-urlencoded" \ # Required
-d "symbol=btc_usdt" # Required
Response Example
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": true,
"returnCode": 0
}
Error code
| Error code | Desc |
|---|---|
| invalid_symbol | The trading pair does not exist |