-
bitcoin $60420.395274 USD
0.96% -
ethereum $1695.332609 USD
1.66% -
tether $0.998858 USD
0.00% -
bnb $561.196033 USD
1.09% -
usd-coin $0.999780 USD
-0.02% -
xrp $0.951515 USD
0.67% -
solana $72.928496 USD
1.39% -
tron $0.289540 USD
-2.90% -
hyperliquid $68.621919 USD
2.14% -
zcash $839.982326 USD
10.07% -
dogecoin $0.059145 USD
2.21% -
unus-sed-leo $9.318055 USD
1.82% -
monero $391.558339 USD
-3.87% -
chainlink $9.330022 USD
2.38% -
cardano $0.150322 USD
3.92%
How to Check Whether a Binance Spot Order Is Partially Filled
Binance’s `PARTIALLY_FILLED` order status signals at least one execution has occurred while residual quantity remains open—immutable, monotonic, and reliably reflected in both REST `get_order` (≤100ms latency) and WebSocket `executionReport` streams.
Oct 16, 2026 at 07:40 am
Understanding Order Status Fields
1. The status field in Binance’s order response indicates the current lifecycle stage: NEW, PARTIALLY_FILLED, FILLED, CANCELED, or REJECTED.
2. A value of PARTIALLY_FILLED means at least one fill has occurred but the full origQty remains unexecuted.
3. This status is returned immediately upon the first partial execution, regardless of whether further fills are expected.
4. It persists until either the remaining quantity is fully executed or the order is manually canceled.
5. Status updates are delivered via REST response on get_order and streamed in real time through user data stream events.
Analyzing Execution Quantities
1. Compare executedQty against origQty: if executedQty is greater than zero but less than origQty, the order is partially filled.
2. Examine cummulativeQuoteQty — it reflects the total quote asset value matched so far and must be non-zero when partial fills exist.
3. Inspect the fills array: a non-empty list confirms at least one trade execution has taken place.
4. Each entry in fills contains price, qty, commission, and tradeId, providing granular evidence of partial execution.
5. Note that executedQty and cummulativeQuoteQty are string-typed decimal values; direct float comparison must be avoided to prevent precision loss.
Using the get_order API Endpoint
1. Call trade.get_order(symbol='BTCUSDT', orderId=123456789) with valid credentials and correct symbol casing.
2. Parse the data object inside the response — do not rely solely on top-level code or msg fields.
3. Extract status, executedQty, origQty, and fills from the nested data payload.
4. Validate numeric consistency: ensure executedQty ≤ origQty and cummulativeQuoteQty matches the sum of price × qty across all fills.
5. Treat any deviation from this invariant as an anomaly requiring manual reconciliation or upstream investigation.
Monitoring Through User Data Stream
1. Subscribe to the executionReport event under a valid user data stream WebSocket connection.
2. Filter messages where eventType equals executionReport and symbol matches the target trading pair.
3. Detect partial fills by checking for executionType equal to TRADE while orderStatus remains PARTIALLY_FILLED.
4. Accumulate lastExecutedQuantity and lastPrice from each executionReport to reconstruct fill history without polling.
5. Use eventTime to sequence fills chronologically and identify gaps or duplicate reports caused by network jitter or reconnection.
Frequently Asked Questions
Q: Can PARTIALLY_FILLED status revert to NEW after being reported?A: No. Binance’s order state machine is strictly monotonic. Once PARTIALLY_FILLED is issued, it transitions only to FILLED, CANCELED, or EXPIRED.
Q: Does get_orders_pending include partially filled orders?A: Yes. get_orders_pending returns all open orders, including those with PARTIALLY_FILLED status and remaining unfilled quantity.
Q: Is there a delay between a fill occurring and the status update appearing in get_order?A: Under normal conditions, the REST API reflects the latest state within 100 milliseconds. Higher latency may occur during exchange maintenance windows or regional API routing failures.
Q: What happens to the fills array when an order is canceled after partial execution?A: The fills array remains intact and unchanged. Cancellation affects only future execution; historical fills are immutable and preserved in the order record.
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.
- XRP ETF Inflows Buck Trend as BTC, ETH, SOL Bleed Out
- 2026-11-30 16:35:01
- L-BTC Supply Declines Amidst Large Peg-Outs, Defiant Reports Highlight Network Dynamics
- 2026-11-30 12:50:01
- Sky Price Up: Emergency Buyback Sparks Recovery Amidst Crypto Fear
- 2026-11-30 12:45:02
- SpaceX-Tesla Merger Talks Intensify: A Bold Move Towards Corporate Consolidation?
- 2026-11-30 12:45:02
- Coinbase Sees Influx of Older Bitcoin as Binance Focuses on Derivatives Amidst Market Shift
- 2026-11-30 05:12:30
- GoMining's Revamped Referral Program Fuels Bitcoin Mining and AI Computing Growth
- 2026-11-29 23:07:39
Related knowledge
How to Recover a Crypto Deposit Sent to the Wrong Network on MEXC
Nov 23,2026 at 04:00pm
Understanding Network Mismatch on MEXC1. When users initiate a cryptocurrency deposit on MEXC, the platform generates a unique wallet address tied to ...
How to Set a Stop-Loss Order on Bitget Spot Trading
Nov 21,2026 at 12:20am
Understanding Stop-Loss Orders in Spot Trading1. A stop-loss order is a risk management tool that automatically sells a cryptocurrency when its price ...
How to Transfer USDC From Gate.io to Coinbase
Nov 21,2026 at 05:20am
Understanding USDC and Network Compatibility1. USDC is a regulated, fully reserved stablecoin issued by Circle and Coinbase, pegged 1:1 to the US doll...
How to Withdraw Litecoin From KuCoin to an External Wallet
Nov 20,2026 at 03:39am
Understanding Litecoin Withdrawal Mechanics on KuCoin1. Litecoin (LTC) operates on its own blockchain, which uses the Scrypt hashing algorithm and sup...
How to Buy XRP With USDT on Bybit Spot Trading
Dec 01,2026 at 09:39am
Understanding XRP and USDT Pair Dynamics on Bybit1. XRP is the native digital asset of the Ripple network, designed to facilitate fast, low-cost cross...
How to Deposit USDC Into Kraken Using the Base Network
Dec 01,2026 at 09:19am
Understanding USDC and the Base Network on Kraken1. USDC is a regulated, fully reserved stablecoin pegged 1:1 to the US dollar and issued by Circle; K...
How to Recover a Crypto Deposit Sent to the Wrong Network on MEXC
Nov 23,2026 at 04:00pm
Understanding Network Mismatch on MEXC1. When users initiate a cryptocurrency deposit on MEXC, the platform generates a unique wallet address tied to ...
How to Set a Stop-Loss Order on Bitget Spot Trading
Nov 21,2026 at 12:20am
Understanding Stop-Loss Orders in Spot Trading1. A stop-loss order is a risk management tool that automatically sells a cryptocurrency when its price ...
How to Transfer USDC From Gate.io to Coinbase
Nov 21,2026 at 05:20am
Understanding USDC and Network Compatibility1. USDC is a regulated, fully reserved stablecoin issued by Circle and Coinbase, pegged 1:1 to the US doll...
How to Withdraw Litecoin From KuCoin to an External Wallet
Nov 20,2026 at 03:39am
Understanding Litecoin Withdrawal Mechanics on KuCoin1. Litecoin (LTC) operates on its own blockchain, which uses the Scrypt hashing algorithm and sup...
How to Buy XRP With USDT on Bybit Spot Trading
Dec 01,2026 at 09:39am
Understanding XRP and USDT Pair Dynamics on Bybit1. XRP is the native digital asset of the Ripple network, designed to facilitate fast, low-cost cross...
How to Deposit USDC Into Kraken Using the Base Network
Dec 01,2026 at 09:19am
Understanding USDC and the Base Network on Kraken1. USDC is a regulated, fully reserved stablecoin pegged 1:1 to the US dollar and issued by Circle; K...
See all articles














