Market Cap: $2.8003T 2.04%
Volume(24h): $76.1875B 3.63%
Fear & Greed Index:

79 - Extreme Greed

  • Market Cap: $2.8003T 2.04%
  • Volume(24h): $76.1875B 3.63%
  • Fear & Greed Index:
  • Market Cap: $2.8003T 2.04%
Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos
Top Cryptospedia

Select Language

Select Language

Select Currency

Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos

How to Cancel an Order on Bybit?

Bybit’s order cancellation API validates status (New/PartiallyFilled/Untriggered), returns `ret_code: 0` on success, consumes rate limit quota, and supports USDT/inverse perpetuals—no fee, but slippage possible.

Sep 22, 2026 at 10:40 am

Order Cancellation Mechanics

1. Order cancellation on Bybit operates through a REST API endpoint that accepts specific parameters including symbol, order ID, and account type.

2. The system validates the order status before processing; only orders with status 'New', 'PartiallyFilled', or 'Untriggered' can be cancelled.

3. A successful cancellation returns a JSON object containing ret_code: 0, confirming execution without error.

4. Each cancellation request consumes one unit from the user’s rate limit quota, which resets every minute based on the platform’s current configuration.

5. Failure responses include codes such as ret_code: 30025 for non-existent orders or ret_code: 30028 when attempting to cancel a fully filled order.

USDT Perpetual Contract Cancellation

1. For USDT-margined perpetual contracts, the symbol must follow uppercase format like 'BTCUSDT' or 'ETHUSDT'.

2. The order ID is a UUID string generated at submission time and must be passed exactly as received in the initial order response.

3. Example call: test.order_cancel('BITUSDT','d265a3ea-d5a3-4d17-865b-6863bfc13003') yields a result indicating immediate cancellation confirmation.

4. Time-in-force settings do not affect cancellation eligibility—GTC, IOC, or FOK orders are all cancellable if unfilled.

5. No fee is charged for cancelling an order, though slippage may occur if market conditions change between submission and cancellation.

Inverse Perpetual Contract Cancellation

1. Inverse perpetual contracts require base currency denominated symbols such as 'BTCUSD' or 'ETHUSD'.

2. The cancellation interface preserves full order metadata including side, price, quantity, and leverage settings in the response body.

3. If the order has partially executed, cancellation only affects remaining quantity—the executed portion remains settled.

4. The last_exec_time and cum_exec_qty fields reflect real-time execution history even during cancellation attempts.

5. Order link IDs remain intact post-cancellation, allowing traceability across internal systems and audit logs.

Social Engineering Vulnerabilities in Wallet Management

1. Attackers exploited social engineering to obtain multi-signature wallet access credentials, bypassing standard approval workflows.

2. Safe v1.1.1 contract logic was manipulated using delegatecall to inject unauthorized transfer instructions.

3. Frontend validation layers failed to detect anomalous signature patterns prior to transaction broadcast.

4. No dynamic risk scanning occurred before execution, enabling malicious transfers despite valid cryptographic signatures.

5. Permission controls lacked granular whitelisting for high-risk operations like cross-contract calls.

Frequently Asked Questions

Q: Can I cancel an order after it has been triggered but not yet filled?A: Yes. Triggered conditional orders remain cancellable until execution begins, provided they retain 'Untriggered' or 'New' status in the system.

Q: Does cancelling an order affect my trading history or KYC records?A: No. Cancellation events are logged internally but do not appear in public trade history or modify KYC documentation.

Q: What happens if I submit duplicate cancellation requests?A: Subsequent requests return ret_code: 30025 indicating the order no longer exists in an active state.

Q: Is there a time window after order placement where cancellation is blocked?A: No. Orders may be cancelled immediately after submission unless already matched or rejected by the matching engine.

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Related knowledge

See all articles

User not found or password invalid

Your input is correct