set_account_currency
Set or clear an account's realized P&L currency; an empty value inherits the group/default and stops P&L tracking. Changes are blocked while balances, positions, or active orders exist.
Instructions
Set or clear an account's own realized P&L currency; an empty currency clears it, so the account inherits its group's, then the default group's, and tracks no realized P&L when no tier is set. A change of the account's effective currency is refused with currency_change_blocked while the account holds any non-zero balance, position, cost-basis or P&L value, a P&L halt or an active order, or while a Spot Funds P&L bound applies to it. Mutates Officer control-plane config; protected and disabled by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account code | |
| currency | Yes | Realized P&L currency asset code; empty clears the account's own, so the account inherits its group's, then the default group's |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes |