create_account
Creates an account with a code, optional title, and realized P&L currency, inheriting group or default currency when omitted.
Instructions
Create an account with a code, an optional title and an optional realized P&L currency. Without its own currency the account inherits its group's, then the default group's; with no tier set it tracks no realized P&L. The create is refused with loosening_refused, as a new account starts unblocked, with no barrier of its own and no balance or P&L history, so it could bring back a code that was deleted or renamed away. Mutates Officer control-plane config; protected and disabled by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Account code | |
| title | No | Account title; omitted leaves the account untitled | |
| currency | No | Realized P&L currency asset code; omitted sets none, so the account inherits its group's, then the default group's, and tracks no realized P&L when no tier is set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes |