Switch an account to a list of strategies

Moves one account onto the listed strategies with no template, in one accounts transaction: each entry keeps the unstamped managed sleeve on its strategy that already has its sleeve_name, else the lowest-id one on its strategy that no other entry took, else creates one, and winds down every other managed sleeve and the default sleeve. Funding and unmanaged sleeves are untouched. The account's buffer cash is cleared in the same transaction, so a template's cash target does not outlive it. If the account has a template assignment it is unassigned first; that is a separate write, so if the switch then fails the account is left untemplated with its old sleeves, and repeating the request finishes the switch.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≥ 1

The account to switch

strategies
array of objects
required
length between 1 and 25

One entry per sleeve the account ends with. A strategy may repeat under different sleeve names; a strategy and sleeve name pair may not repeat. Targets sum to at most 1.

strategies*

A sleeve to keep or create. Allocations are decimal fractions of the account's managed value, 0 <= min <= target <= max <= 1.

string
required
length ≥ 1
string
required
length ≥ 1
string
required
string
required
string
required
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json