type: "ACTION" and an action object.
Action types
action_type | Meaning |
|---|---|
BUY_MARKET_OUTCOME | Buy a market outcome. |
SELL_MARKET_OUTCOME | Sell a market outcome. |
HOLD | Hold a market outcome. |
MOVE_TO_WALLET | Move capital to a wallet target. |
MOVE_TO_VAULT | Move capital to a vault target. |
Market target
Market actions require atarget.market object.
current_price when you want validation to estimate the required minimum principal more accurately.
Allocation
Useallocation_pct when an action belongs to a split decision group.
In SPLIT_100 mode, all selected actions must include allocation_pct, and the total must equal 100.
For SINGLE mode, one action receives the selected capital.
Wallet target
UseMOVE_TO_WALLET when the strategy should exit to a wallet target.
Vault target
UseMOVE_TO_VAULT when the strategy should move capital to a vault target.