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.

Controls

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 mirrored

  • autoSellProfileKey (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

Mirror

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 the address field is excluded from this object.

  • All other fields from the Mirror object are optional. Provide only the keys you wish to modify.

UpdateMirror

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 in autoSellProfileKey

  • createdIso - ISO-8601 time the profile was made

  • profileName - label shown in the GUI

  • takeProfitRules - array of { percentOfPosition, percentGain } steps

  • stopLossRules - 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.

AutoSellProfile

Last updated

Was this helpful?