delete_account
Delete a trading account from Pit Officer's control-plane configuration, optionally forcing removal of dependent rows; accounts with protected barriers or trading fee-account conflicts are refused.
Instructions
Delete an account. An account with dependent rows is refused with has_dependents unless force deletes them with it; a trading connection's fee account is refused with conflict, even with force. The delete is refused with loosening_refused, even with force, when the account is blocked, when it is in a blocked group or in a group with a group-scoped Spot Funds P&L bound, when it carries a rate-limit, order-size or Spot Funds P&L barrier of its own, or while any rate-limit barrier is configured. Force-deleting removes the account's venue-fee adjustments, so fees it received may be booked again to the connection's current fee account on the next restart. Mutates Officer control-plane config; protected and disabled by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Also delete the account's dependent rows, its venue-fee adjustments included, so fees it received may be booked again to the connection's current fee account on the next restart; without it an account with dependents is refused with has_dependents. A trading connection's fee account is refused even with force, and force deletes no barrier: an account carrying a barrier of its own is refused with loosening_refused even with force | |
| account | Yes | Account code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Also delete the account's dependent rows, its venue-fee adjustments included, so fees it received may be booked again to the connection's current fee account on the next restart; without it an account with dependents is refused with has_dependents. A trading connection's fee account is refused even with force, and force deletes no barrier: an account carrying a barrier of its own is refused with loosening_refused even with force | |
| account | Yes | Account code |