Runbooks
Full desk readiness checklist and integration certification tests.
Desk Readiness Checklist
Before going live, verify:
API Connectivity
- Staging endpoints tested
- Production endpoints configured (when available)
- Health check endpoint responding
- WebSocket connection stable
Authentication
- EIP-712 signing working
- Agent authorization configured (if applicable)
- Nonce management implemented
- Signature verification tested
Quoting System
- Bulk order placement tested
- Order lifecycle reconciliation verified
- Fill tracking implemented
- Cancel functionality tested
Risk Controls
- MMP configured and tested
- Margin model understood
- Tier restrictions verified
- Portfolio monitoring implemented
Monitoring
- WebSocket feeds subscribed
- Order/fill reconciliation automated
- Health checks configured
- Alerting set up
Kill Switch
- Ability to cancel all orders
- Ability to disconnect immediately
- Emergency procedures documented
Hedging
- Integration with Hyperliquid perps verified
- Delta hedging strategy implemented
- Perp margin calculation understood
Settlement
- Expiry handling tested
- Position settlement verified
- Reference price source understood
Integration Certification Tests
Test 1: Order Placement
Steps:
- Place single order via
POST /order - Verify order status:
ACKED→OPEN - Check order appears in
GET /orders?wallet=... - Verify WebSocket
order_updatesreceived
Expected: Order placed successfully, status updates received
Test 2: Bulk Order Placement
Steps:
- Place 10 orders via
POST /bulk_order - Verify all orders accepted
- Check order statuses via REST and WS
- Verify no signature/auth errors
Expected: All orders placed successfully
Test 3: Fill Tracking
Steps:
- Place order that will fill
- Monitor WebSocket
fillschannel - Verify fill received with correct
order_id - Check fill appears in
GET /fills?wallet=... - Verify order status updates to
FILLED
Expected: Fills tracked correctly, order status updated
Test 4: Partial Fill Tracking
Steps:
- Place order that will partially fill
- Monitor WebSocket
fillschannel (notorder_updates) - Verify partial fill received
- Aggregate fills by
order_idto compute filled size - Verify order status remains
OPEN(notPARTIALLY_FILLEDon WS)
Expected: Partial fills tracked via fills channel, order status correct
Test 5: Order Cancellation
Steps:
- Place order via
POST /order - Cancel order via
DELETE /order - Verify order status:
CANCELED - Check WebSocket
order_updatesreceived
Expected: Order canceled successfully, status updates received
Test 6: MMP Trigger
Steps:
- Configure MMP via
POST /mmp-config - Place MMP-enabled orders
- Trigger MMP by exceeding limits
- Verify orders canceled with MMP reason
- Check other MMP-enabled orders also canceled
Expected: MMP triggers correctly, orders canceled
Test 7: Margin Rejection
Steps:
- Place order that exceeds margin
- Verify order rejected with "Insufficient margin" reason
- Check rejection reason includes scenario type
- Verify order status:
REJECTED
Expected: Order rejected with clear reason
Test 8: Tier Restriction
Steps:
- Set wallet to
tier1viaPOST /user-tier - Attempt to place sell order without long position
- Verify order rejected with tier reason
- Place buy order (should succeed)
- Place sell order to close (should succeed)
Expected: Tier restrictions enforced correctly
Test 9: WebSocket Reconnection
Steps:
- Connect to WebSocket
- Subscribe to channels
- Disconnect WebSocket
- Reconnect with exponential backoff
- Resubscribe to channels
- Poll REST to catch up on missed updates
Expected: Reconnection works, state recovered
Test 10: Portfolio Reconciliation
Steps:
- Place and fill orders
- Check portfolio via
GET /portfolio?wallet=... - Verify positions match fills
- Check margin usage correct
- Reconcile with WebSocket
portfolioupdates
Expected: Portfolio state accurate, reconciliation successful
Production Readiness
Pre-Production Checklist
- All integration tests passed
- Monitoring and alerting configured
- Kill switch tested
- Emergency procedures documented
- Team trained on incident response
- Support contacts identified
Go-Live Checklist
- Staging environment fully tested
- Production endpoints verified
- Monitoring dashboards ready
- Alerting configured
- Team on-call schedule established
- Documentation reviewed
References
- Quickstart: Quickstart
- API reference: REST API
- Errors & rejections: Errors
- Incident playbook: Incidents