Order Matching
Last updated
Was this helpful?
TxFlow uses a Price-Time Priority Central Limit Order Book (CLOB).
Best price first — highest bid (for sells) or lowest ask (for buys) matches first
Oldest Order First — among orders at the same price, the earliest order is matched first
When a taker order arrives:
Find the best maker order on the opposite side.
Execute at the maker's price (takers receive price improvement when possible).
Repeat until the taker order is fully filled or no more crossing orders exist.
If unfilled remainder exists — limit orders rest in the book; market and IOC orders are cancelled.
Order book state:
2 BTC
$49,950
5 BTC
$49,900
$50,000
3 BTC
$50,050
4 BTC
Scenario: You place a Market BUY for 5 BTC.
Match 3 BTC @ $50,000 (oldest ask at best price)
Match 2 BTC @ $50,050 (next best ask)
Order fully filled; average execution price = $50,020
Market, Limit, and advanced orders
Detailed liquidation mechanics
Trading and funding fees
Last updated
Was this helpful?
Was this helpful?

