delete_asset
Delete an asset from Pit Officer control-plane configuration. Refuses assets with dependents, held currencies, or referenced barriers; forced deletion is not allowed.
Instructions
Delete an asset. An asset with dependent rows, the market-data and trading instruments that reference it included, is refused with has_dependents, and so is an asset an account or group holds as its currency. The delete is refused with loosening_refused while a rate-limit or order-size barrier references the asset or a Spot Funds P&L bound is denominated in it, and always with force: force would delete the asset's dependent rows with it - balances, orders, trades, adjustments and barriers among them. Mutates Officer control-plane config; protected and disabled by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset code | |
| force | No | Refused with loosening_refused whatever the asset carries: an agent may not force a delete, which would also delete the asset's dependent rows - balances, orders, trades, adjustments and barriers among them, and the market-data and trading instruments that reference it. Without it an asset with dependents is refused with has_dependents |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset code | |
| force | No | Refused with loosening_refused whatever the asset carries: an agent may not force a delete, which would also delete the asset's dependent rows - balances, orders, trades, adjustments and barriers among them, and the market-data and trading instruments that reference it. Without it an asset with dependents is refused with has_dependents |