reset-oco - Reset OCO Monitoring
UtilityStop OCO monitoring for active groups without cancelling orders on the exchange.
What is reset-oco?
reset-oco stops Flipr.Cloud's internal OCO monitoring system for active groups. It does NOT cancel any orders on the exchange - orders remain active. It only stops the automatic cancellation logic that OCO groups provide.
Common Use Cases:
Orphaned Monitoring
You cancelled orders manually on the exchange, but Flipr.Cloud is still monitoring them
Strategy Change
You're switching strategies and want to stop all OCO monitoring
Debugging / Troubleshooting
Clean up OCO state when something isn't working correctly
Fresh Start
Reset everything before setting up new OCO groups
Important: Orders Are NOT Cancelled
reset-oco does NOT cancel orders on the exchange
It only stops Flipr.Cloud's internal OCO monitoring system
Orders remain active on the exchange and can still fill
If you want to cancel orders, use cancel or rem BEFORE reset-oco.
Syntax
reset-oco [scope]
// scope is optional, defaults to 'this'Parameters
scopeOptionalType: keyword | Default: this
Determines which OCO monitoring groups to reset:
| Value | What Gets Reset |
|---|---|
this / symbol / pair | Reset OCO monitoring for current symbol only (e.g., BTCUSDT) |
api / key / all | Reset ALL OCO monitoring for entire API key (all symbols) |
If you don't specify a scope, reset-oco defaults to this (current symbol only).
Real-World Examples
1. Reset OCO for Current Symbol
Stop OCO monitoring for BTCUSDT only, without affecting other symbols.
BTCUSDT on Binance_F
// Stop OCO monitoring for BTCUSDT
reset-oco this
// Or simply (defaults to 'this')
reset-ocoOrders on BTCUSDT remain active on the exchange. Only OCO monitoring stops.
2. Reset All OCO Monitoring for Entire API Key
Stop ALL OCO monitoring across all symbols for this API key (e.g., BTCUSDT, ETHUSDT, SOLUSDT...).
BTCUSDT on Binance_F
// Reset OCO monitoring for entire Binance_F key
reset-oco api
// Alternative keywords
reset-oco key
reset-oco allUseful when you want to completely reset OCO state for all trading pairs on this exchange.
3. Scenario: Orders Cancelled Manually on Exchange
You manually cancelled orders on Binance, but Flipr.Cloud is still monitoring them as OCO groups.
ETHUSDT on Binance_F
// Orders were cancelled manually on exchange
// Now stop Flipr.Cloud's OCO monitoring for them
reset-oco this
// OCO monitoring cleaned up
// Ready to create new OCO groupsThis cleans up "orphaned" OCO monitoring that no longer has corresponding orders.
4. Scenario: Complete Strategy Reset
Cancel all orders AND reset all OCO monitoring before starting a new strategy.
BTCUSDT on Binance_F
// Step 1: Cancel all orders on exchange
cancel all
// Step 2: Reset OCO monitoring
reset-oco this
// Step 3: Close position
pos 0
// Now start fresh with new strategy
market long 0.01
stoploss off 2%
takeprofit off 5%
smart-oco sellComplete reset workflow: cancel orders, reset monitoring, close position, then start fresh.
5. Scenario: Debugging OCO Issues
OCO groups aren't behaving correctly. Reset everything and rebuild from scratch.
SOLUSDT on BloFin
// Something's wrong with OCO monitoring
// Step 1: Cancel all orders
cancel all
// Step 2: Reset ALL OCO monitoring on this API key
reset-oco api
// Step 3: Verify with oco status command
oco status
// Step 4: Rebuild OCO groups from scratchNuclear option for troubleshooting: reset everything and start over.
When to Use reset-oco
Orphaned Monitoring: You cancelled orders manually on exchange (via web UI or API), but Flipr.Cloud still thinks they're active
Strategy Change: You're switching to a new strategy and want to stop all existing OCO monitoring
Debugging: OCO groups aren't working correctly and you want to clean up state
Fresh Start: You want a completely clean slate before creating new OCO groups
Recommended Workflow: Complete Reset
When you want to completely reset OCO state and start fresh:
Step 1:
Cancel orders withcancel all(if you want to remove them)Step 2:
Reset OCO monitoring withreset-ocoStep 3:
Verify withoco statusor check logsStep 4:
Create new OCO groups withocoorsmart-oco
This ensures a clean state before setting up new monitoring.
Best Practices
Cancel orders first: Use
cancel allbeforereset-ocoif you want to remove ordersUse 'this' scope: Reset only current symbol unless you need to clean up entire API key
Verify after reset: Check
oco statusor logs to confirm monitoring stoppedUse for troubleshooting: When OCO behavior is unexpected, try resetting and recreating groups
Not a regular command: This is a utility/debugging tool, not for normal trading workflows
Common Patterns
Complete Reset
cancel all
reset-oco this
pos 0Cancel orders, reset monitoring, close position
Clean Up Orphaned Monitoring
// Orders already cancelled manually on exchange
reset-oco thisStop monitoring for orders that no longer exist
Nuclear Reset (All Symbols)
// Reset OCO for ALL symbols on this API key
reset-oco apiComplete OCO monitoring reset across entire exchange
Debugging Workflow
cancel all
reset-oco api
oco status
// Verify monitoring is clearedTroubleshooting: clear everything and verify
Related Commands
oco- Create standard OCO groups with manual configuration
smart-oco- Monitor existing orders against position conditions
cancel / rem- Cancel orders on the exchange (use before reset-oco)
oco status- View active OCO groups (verify after reset)