Skip to main content
A user’s copy trading settings, one set per trader in their Trade Feed. They apply to the trader’s next trade from the moment you save them; instructions already sent are not changed. The user is a platform user (by external_id or csid_id) or a person who signed in to your app with the scope trade_feed (by csid_id), within your plan’s user limit. Copied buys below $1 are not sent. Sells are copied as a share of the user’s copied position, see Sizing.

Read the settings

GET /v1/copy-trading/settings All traders in the user’s Trade Feed with their copy settings, those copied first, then newest first. With trader, only that one trader as a single object.

Query Parameters

string
The user, by your own user id. Alternatively pass csid_id.
string
The user’s CabalSpy ID. Required unless you pass external_id.
string
Only this trader: a handle (with or without @) or a csid_id. Alternatively pass trader_external_id for one of your own platform users.
string
Only this trader, by your own user id of a platform user.
string
Your Instance ID. Only needed when your account has several instances.
string
required
Your API key. Alternatively pass it as an Authorization Bearer header.

Usage Example

Response

array
One entry per trader in the user’s Trade Feed, or a single entry when you passed trader.
The same copy object is also part of each trader’s settings in GET /v1/trade-feed/traders.

Errors

Change the settings

POST /v1/copy-trading/settings Changes the copy settings of one user for one trader. Send only the settings you want to change, at least one of them. If the trader is not in the user’s Trade Feed yet, they are added first (with the user’s default alert settings) and the response has status 201; otherwise 200. Switching copying on ("enabled": true) makes your instance the platform that copies this trader for this user. While another platform copies the trader for the user, the request is refused with 409 copy_managed_elsewhere. Each call counts towards the user’s Trade Feed changes, at most 120 per hour.

Body

string
The user, by your own user id. Alternatively pass csid_id.
string
The user’s CabalSpy ID. Required unless you pass external_id.
string
required
The trader to copy: a handle (with or without @) or a csid_id. Alternatively pass trader_external_id.
string
The trader, by your own user id of one of your platform users.
boolean
true to copy this trader, false to stop.
string
fixed_usd or percent.
number
USD per copied buy in fixed_usd mode. Above 0, at most 1,000,000.
number
Share of the trader’s buy in percent mode. Above 0, at most 1,000.
number
Cap per copied buy. Above 0, at most 1,000,000. null or 0 removes the cap.
string
buys or both.
integer
Whole number from 1 to 5,000.
string
required
Your API key. Alternatively pass it as an Authorization Bearer header.

Usage Example

Response

The trader’s entry as in Read the settings: trader, copy and managed_by_other_platform.
Response

Errors

See Errors for the full list.