Welcome to the new WEEX API documentation. Looking for the previous version?Switch to the legacy docs
WEEX
WEEX Copy Trading REST API

Follower API

Endpoint

Get Copy Follower Open Orders (USER_DATA)

Get Copy Follower Open Orders (USER_DATA).

GET
/capi/v3/copy/follower/openOrders
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight10

Get Copy Follower Open Orders (USER_DATA) › query Parameters

symbol
​string

Filter by symbol, for example BTCUSDT.

limit
​integer

Page size, 1-100. Default: 100.

page
​integer

Page number, starts from 1. Default: 1.

Get Copy Follower Open Orders (USER_DATA) › Responses

200

Successful response

​object[]
trackingNo
​integer

Tracking order ID.

traderName
​string

Copy trader name.

openOrderId
​integer

Open order ID generated by the trading system.

closeOrderId
​integer

Close order ID.

traderID
​integer

Copy trader UID.

symbol
​string

Symbol.

openLeverage
​integer

Open leverage.

openPriceAvg
​string

Average open price.

openTime
​integer

Open time in milliseconds.

openSize
​string

Open order size.

openFee
​string

Open fee.

openMarginAmount
​string

Open margin amount.

openFillSize
​string

Filled open size.

positionSide
​string

Position side: LONG, SHORT, or BOTH.

status
​string

Tracking order status.

tpTriggerPrice
​string

Take-profit trigger price.

slTriggerPrice
​string

Stop-loss trigger price.

closeAvgPrice
​string

Average close price.

closeSize
​string

Close size.

closeTime
​string

Close time.

realizedPnl
​string

Realized PnL.

profitRate
​string

Profit rate.

netProfit
​string

Follower net profit.

createdTime
​integer

Create time in milliseconds.

updateTime
​integer

Update time in milliseconds.


Get Copy Follower History Orders (USER_DATA)

Get Copy Follower History Orders (USER_DATA).

GET
/capi/v3/copy/follower/historyOrders
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight10

Get Copy Follower History Orders (USER_DATA) › query Parameters

symbol
​string

Filter by symbol, for example BTCUSDT.

limit
​integer

Page size, 1-100. Default: 100.

startTime
​integer

Start time in milliseconds. The maximum query range is 90 days.

endTime
​integer

End time in milliseconds. The maximum query range is 90 days.

nextKeyId
​integer

Cursor ID returned from the previous page.

nextKeyTime
​integer

Cursor time returned from the previous page.

Get Copy Follower History Orders (USER_DATA) › Responses

200

Successful response

​object[]

History tracking order list. The item structure is the same as Get Copy Follower Open Orders.

nextFlag
​boolean

Whether there is a next page.

nextKey
​object | null

Cursor for the next page.


Get My Copy Traders (USER_DATA)

Get My Copy Traders (USER_DATA).

GET
/capi/v3/copy/follower/myTraders
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight10

Get My Copy Traders (USER_DATA) › query Parameters

pageNo
​integer

Page number, starts from 1. Default: 1.

pageSize
​integer

Page size, 1-100. Default: 100.

Get My Copy Traders (USER_DATA) › Responses

200

Successful response

​object[]

Trader list.

nextFlag
​boolean

Whether there is a next page.

total
​integer

Total count.


Get Copy Follower Settings (USER_DATA)

Get Copy Follower Settings (USER_DATA).

GET
/capi/v3/copy/follower/settings
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight10

Get Copy Follower Settings (USER_DATA) › query Parameters

traderId
​integer · required

Copy trader UID.

Get Copy Follower Settings (USER_DATA) › Responses

200

Successful response

​object[]
copyEnable
​boolean

Whether the user is currently copying this trader.

symbol
​string | null

Symbol. Unified settings return null.

symbols
​string[]

Symbol list. Used for unified settings.

productType
​string

Product type, currently USDT-FUTURES.

settingMode
​string

Setting mode: unified or per_symbol.

traceType
​string

Copy type: percent or amount.

traceValue
​string

Copy value.

maxHoldSize
​string

Maximum copy holding size.

marginType
​string

Margin type: cross, isolated, or trader.

marginCoin
​string

Margin coin, currently USDT.

leverageType
​string

Leverage type: fixed, trader, or specify.

longLeverage
​integer

Long leverage.

shortLeverage
​integer

Short leverage.

​object[]

Custom leverage list.

takeProfitRatio
​string

Take-profit ratio.

stopLossRatio
​string

Stop-loss ratio.

slippageRatio
​string

Slippage ratio.


Update Copy Follower Settings (TRADE)

Update Copy Follower Settings (TRADE).

POST
/capi/v3/copy/follower/settings
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight10

Update Copy Follower Settings (TRADE) › Request Body

traderId
​integer · int64 · required

Copy trader UID.

Example: 123456
settingType
​string · enum · required

Setting mode: unified or per_symbol.

Enum values:
unified
per_symbol
Example: unified
​object

Required when settingType is unified. symbols controls which copy-trading symbols to follow.

Example: {"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}]}
​object[]

Required when settingType is per_symbol. You must pass one config for every copy-trading symbol.

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
requires: unifiedTraceConfig
requires: symbolTraceConfigs
Properties for Variant 1:
settingType
​enum
Enum values:
unified

Update Copy Follower Settings (TRADE) › Responses

200

Successful response

code
​string
msg
​string
requestTime
​integer

Close Copy Follower Position (TRADE)

Close Copy Follower Position (TRADE).

POST
/capi/v3/copy/follower/closePos
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight50

Close Copy Follower Position (TRADE) › Request Body

symbol
​string · required

Symbol.

Example: BTCUSDT
copyNo
​integer · int64 · required

Tracking order ID to close.

Example: 9000000001

Close Copy Follower Position (TRADE) › Responses

200

Successful response

code
​string
msg
​string
requestTime
​integer

Stop Copying Trader (TRADE)

Stop Copying Trader (TRADE).

POST
/capi/v3/copy/follower/stopCopy
https://api-contract.weex.com
Request weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate-limit capacity.
Learn more in the Access Restrictions section.
IP weight10

Stop Copying Trader (TRADE) › Request Body

traderId
​integer · int64 · required

Copy trader UID to stop copying.

Example: 123456

Stop Copying Trader (TRADE) › Responses

200

Successful response

code
​string
msg
​string
requestTime
​integer