What should you check when a perpetual futures bot loses connection?

When a perpetual futures bot loses connection, the first problem is uncertain state: an order may have reached the exchange even if the response did not reach you. Pause new exposure where possible, verify positions and orders through an authoritative exchange view, and reconcile executions before retrying. Restarting a process is not evidence that account state and protective exits are correct.

Why is a timeout different from a rejection?

A timeout describes what your connection observed, not what the exchange completed. A clear rejection and an unknown response are different states. Bybit's order documentation explicitly says request acknowledgement is asynchronous acceptance and directs users to confirm final order status. Even acceptance is not a fill.

A local “disconnected” banner does not establish that exchange-held orders disappeared, or that an exit implemented by software is still functioning. This is a general operating checklist, not a claim about where Tradeture stores any particular order or how its recovery logic works. Verify the actual setup rather than assume a platform architecture.

How do you work through an uncertain-order incident?

  1. Pause new exposure. Suspend new entry instructions where controls are available, without blindly removing existing protective exits. Record the incident time and the last known request identifiers.
  2. Read exchange state. Check the correct account, contract, position side, open and conditional orders, recent executions and relevant order history. Preserve timestamps and identifiers; do not infer no exposure from an empty active-order list alone.
  3. Reconcile uncertain requests. Match each pending local intent to exchange order and execution records. Separate executed quantity, still-live remainder and confirmed cancellation. Do not resend an unknown entry as a new order merely because its response is missing.
  4. Verify protection and limits. Check actual remaining position, protective exit quantity and trigger instructions, plus margin and the written risk budget. If the intended protection is absent or cannot be verified, follow the prewritten manual risk-response plan using the exchange's available controls rather than assuming a restart fixes it.
  5. Resume only with evidence. Confirm fresh data, resolved uncertain instructions, correct position and protective state, and a passing operational check. Record unresolved items and remain paused if state is still unknown; reconcile the final account log before ordinary trading resumes.

How can a blind retry double exposure?

Arithmetic illustration only. An intended BTC USDT perpetual entry is 0.02 BTC at 60,000 with stop 59,500, giving 10 USDT of planned price risk before costs. The response is lost, but 0.012 BTC has executed and 0.008 BTC remains live. Current planned price risk is 6 USDT, with another 4 USDT pending.

If a fresh 0.02-BTC entry is sent blindly and all outstanding quantity executes, exposure becomes 0.012 + 0.008 + 0.02 = 0.04 BTC. The same stop distance now represents 20 USDT of planned price risk. The second request was not a harmless retry from the account's perspective.

An order identifier helps match records, but do not assume reusing an identifier guarantees safe replay on every venue. No universal idempotent retry behavior is asserted. Partial fills and trade reconciliation supply the underlying quantity and ledger checks.

What evidence belongs in the incident note?

Record connection symptoms, last verified data time, account and contract context, request/order/execution identifiers, status observations, actual exposure, protection checks, decisions and final reconciliation. Use the minimum necessary information. Never include API secrets, session credentials or full sensitive account screenshots in a public report.

A repeated stream update is not another execution. A successful reconnection is not proof that no fills occurred during the gap. History and current position must agree. Bybit notes that some recent closed-order records require order history after a server restart, which is why one active-order query is not enough.

What should be tested before an incident happens?

Rehearse the state checks in a suitable non-live environment, including a lost response, partial fill and cancellation arriving near an execution. Demo-to-live validation supplies acceptance cases. Use API key safety for permission and revocation rules; deleting a key does not itself prove that a position is closed. No procedure removes market or technical risk.

What are the short answers on bot outages?

Does a timeout mean the entry failed?

No. The request may have reached the exchange before the response was lost. Check order, execution and position records before deciding whether any replacement is appropriate.

Is restarting the bot enough to resume trading?

No. Reconcile uncertain instructions and verify actual exposure, protective exits, fresh data and limits before accepting new exposure.

Does deleting an API key prove my position is closed?

No. Revoking access and closing exposure are different actions. Verify the position and outstanding orders through the exchange's available controls.

Sources

Leveraged futures carry a high risk of loss.

Last reviewed by Ric Mescallado