ac-trading-operations-runbook
Operational procedures for a live trading book when the infrastructure misbehaves: pre-flight checks, order and position reconciliation, venue outage response, stuck and partial orders, liquidation and ADL verification, incident logging and postmortems, and automation guardrails. It prescribes procedures; it never recommends a trade, a venue, or a strategy. Use when asking "the API is down", "my order is stuck", "positions do not match", "the exchange halted withdrawals", "reconcile my book", "trading ops runbook". Not for the trade decision record (ac-crypto-trading-discipline), not for venue due diligence (ac-perp-venue-diligence), not for exchange account security (ac-exchange-account-security).
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- ac-trading-operations-runbook
- status
- seedling
- license
- MIT
- metadata
- { "domain": "crypto-trading" }
- description
- Operational procedures for a live trading book when the infrastructure misbehaves: pre-flight checks, order and position reconciliation, venue outage response, stuck and partial orders, liquidation and ADL verification, incident logging and postmortems, and automation guardrails. It prescribes procedures; it never recommends a trade, a venue, or a strategy. Use when asking "the API is down", "my order is stuck", "positions do not match", "the exchange halted withdrawals", "reconcile my book", "trading ops runbook". Not for the trade decision record (ac-crypto-trading-discipline), not for venue due diligence (ac-perp-venue-diligence), not for exchange account security (ac-exchange-account-security).
02 资源文件 10
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md385 B
- 参考文档subskills/automation-safety.md3.2 KB
- 参考文档subskills/incident-log-and-postmortem.md3.0 KB
- 参考文档subskills/liquidation-and-adl-verification.md3.3 KB
- 参考文档subskills/order-and-position-reconciliation.md3.4 KB
- 参考文档subskills/preflight-checks.md3.2 KB
- 参考文档subskills/stuck-and-partial-orders.md3.2 KB
- 参考文档subskills/venue-outage-response.md3.4 KB
- 参考文档TRUST.auto.yaml2.3 KB
03 SKILL.md 正文
Trading operations runbook
Overview
Markets fail in ordinary ways: an order endpoint times out, a fill arrives twice, a venue stops withdrawals, a position appears that nobody opened. The difference between an incident and a disaster is whether procedures existed before it started. This skill is those procedures, written as runbooks.
Every leaf assumes something is already wrong. None of them discusses strategy, entry, or edge; they discuss restoring an accurate picture of the book and reducing exposure while the picture is wrong.
Primary sources: https://sre.google/sre-book/table-of-contents/ and https://www.bybit.com/en/help-center.
When to use
- When an order, position, balance, or withdrawal does not match what the desk believes.
- When a venue reports an outage, a halt, or a change in trading conditions.
- Before every trading session, as the pre-flight ritual.
- After any liquidation, ADL event, or unexpected fill.
When NOT to use
- For deciding whether to enter or exit a position (use ac-crypto-trading-discipline).
- For evaluating whether a venue is safe before opening an account (use ac-perp-venue-diligence).
- For key or account compromise (use ac-exchange-account-security).
Subskill Index
| Leaf | Domain segment | Scope (one line) |
|---|---|---|
subskills/preflight-checks.md |
crypto-trading/preflight-checks |
The session ritual: keys, balances, margin, connectivity, clock sync, and kill switches armed. |
subskills/order-and-position-reconciliation.md |
crypto-trading/order-and-position-reconciliation |
Matching the desk's records against venue state, and the daily reconciliation that catches drift early. |
subskills/venue-outage-response.md |
crypto-trading/venue-outage-response |
API failures, halts, and withdrawal freezes: the order of decisions, and what not to do into a gapped book. |
subskills/stuck-and-partial-orders.md |
crypto-trading/stuck-and-partial-orders |
Orders that will not fill or cancel, reduce-only traps, cancel-on-disconnect, and the escalation path. |
subskills/liquidation-and-adl-verification.md |
crypto-trading/liquidation-and-adl-verification |
What to verify after a liquidation or ADL event, what the record must show, and the restart rules. |
subskills/incident-log-and-postmortem.md |
crypto-trading/incident-log-and-postmortem |
The incident record: timeline, impact, cause, fix, and the runbook change that follows. |
subskills/automation-safety.md |
crypto-trading/automation-safety |
Guardrails for automated trading: size caps, rate limits, dead-man switches, staged rollout, rollback. |
Status and honest limits
Procedures reduce the damage of an incident; they do not prevent one. A runbook that has never been rehearsed is a document, not a capability. The pre-flight leaf is the only one that runs every day; the others should be exercised deliberately, with a paper book, before they are needed live. When a venue behaves in a way no leaf anticipated, the correct action is to reduce exposure and write the situation down, not to invent procedure in the moment.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.