Skip to main content

Update Copy Follower Settings (TRADE)

  • POST /capi/v3/copy/follower/settings

Weight(IP): 10

Request Parameters

ParameterTypeRequiredDescription
traderIdLongYesCopy trader UID.
settingTypeStringYesSetting mode: unified or per_symbol.
unifiedTraceConfigObjectConditionalRequired when settingType is unified. symbols controls which copy-trading symbols to follow.
symbolTraceConfigsArrayConditionalRequired when settingType is per_symbol. You must pass one config for every copy-trading symbol.

TraceConfig Object

ParameterTypeRequiredDescription
symbolStringConditionalSymbol, for example BTCUSDT. Required only for symbolTraceConfigs.
symbolsArrayConditionalSymbol list. Required only for unifiedTraceConfig; every symbol must be supported by copy trading.
traceTypeStringYesCopy type: percent or amount.
traceValueStringYesCopy value.
maxHoldQtyStringNoMaximum holding quantity, range 10-100000. Required for symbolTraceConfigs.
stopProfitRatioStringNoTake-profit ratio, range 0-4. Required for symbolTraceConfigs.
stopLossRatioStringNoStop-loss ratio, range 0-4. Required for symbolTraceConfigs.
slippageRatioStringNoSlippage ratio. 0 means no limit; otherwise the range is 0.001-0.01. Required for symbolTraceConfigs.
marginTypeStringNoMargin type: cross, isolated, or trader. For symbolTraceConfigs, only trader is allowed.
leverageTypeStringNoLeverage type: fixed, trader, or specify. For symbolTraceConfigs, only fixed and trader are allowed.
fixedLongLeverageIntegerNoFixed long leverage. Required when symbolTraceConfigs[].leverageType is fixed; defaults to 10 for unified settings when omitted.
fixedShortLeverageIntegerNoFixed short leverage. Required when symbolTraceConfigs[].leverageType is fixed; defaults to 10 for unified settings when omitted.
customLeveragesArrayConditionalCustom leverage list. Required when unified leverageType is specify; its symbols must exactly match unifiedTraceConfig.symbols.
customLeverages[].symbolStringYesSymbol.
customLeverages[].longLeverageIntegerNoLong leverage. Default: 10.
customLeverages[].shortLeverageIntegerNoShort leverage. Default: 10.

Unified Request Example

curl -X POST "https://api-contract.weex.com/capi/v3/copy/follower/settings" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "Content-Type: application/json" \
-d '{
"traderId": 123456,
"settingType": "unified",
"unifiedTraceConfig": {
"symbols": ["BTCUSDT", "ETHUSDT"],
"traceType": "amount",
"traceValue": "100",
"maxHoldQty": "1000",
"stopProfitRatio": "0.2",
"stopLossRatio": "0.1",
"slippageRatio": "0.001",
"marginType": "trader",
"leverageType": "specify",
"customLeverages": [
{
"symbol": "BTCUSDT",
"longLeverage": 10,
"shortLeverage": 10
},
{
"symbol": "ETHUSDT",
"longLeverage": 10,
"shortLeverage": 10
}
]
}
}'

Per-Symbol Request Example

{
"traderId": 123456,
"settingType": "per_symbol",
"symbolTraceConfigs": [
{
"symbol": "BTCUSDT",
"traceType": "amount",
"traceValue": "100",
"maxHoldQty": "1000",
"stopProfitRatio": "0.2",
"stopLossRatio": "0.1",
"slippageRatio": "0.001",
"marginType": "trader",
"leverageType": "fixed",
"fixedLongLeverage": 10,
"fixedShortLeverage": 10
}
]
}

Response Parameters

Returns the standard success response.

Response Example

{
"code": "200",
"msg": "success",
"requestTime": 1627354109502
}