Types
Controls
The Controls type defines your global copy-trading settings. These act as default parameters applied to all mirrored wallets, unless specifically overridden at the individual mirror level.
Mirror
The Mirror type defines a specific wallet you are copy-trading. It includes all fields from the Controls object with the following modifications:
address(required, new field): the public Solana address of the wallet being mirroredautoSellProfileKey(optional, modified field): key of an existing auto-sell profile. May also be the magic value"override_to_empty"which forces this mirror to have no auto-sell profile even if one is set in Controls
UpdateMirror
UpdateMirror is the type used in the request body of PATCH /v1/mirror/{address}. It allows you to update or clear specific settings for an existing mirror without modifying its address.
The
{address}path parameter identifies which mirror to update, so theaddressfield is excluded from this object.All other fields from the
Mirrorobject are optional. Provide only the keys you wish to modify.
AutoSellProfile
The AutoSellProfile type stores a reusable set of take-profit and stop-loss rules. Profiles are created or edited in the OdinBot interface, then referenced in Controls or Mirror via their id. Each profile contains:
id– unique key used inautoSellProfileKeycreatedIso- ISO-8601 time the profile was madeprofileName- label shown in the GUItakeProfitRules- array of{ percentOfPosition, percentGain }stepsstopLossRules- array of{ percentOfPosition, percentLoss }steps
The API provides read-only access through GET /v1/auto-sell-profiles (list) and GET /v1/auto-sell-profile/{id} (single profile); no create, update, or delete calls are exposed.
Last updated
Was this helpful?