GTO Mechanics
Last updated
Last updated
The limit order book is restricted to 100 bids and 100 asks. This fixed size data set enables fast, efficient trading on blockchain networks. However it also adds an attack vector where malicious actors could manipulate their orders to try and gain an advantage in the orderbook.
To mitigate this risk the contract algorithm optimizes for both price and volume.
Traders want the most volume possible at the most competitive price to reduce slippage.
In traditional exchanges orders at the same price will get filled on a first in first out basis. However this is not optimal in an environment where we want to incentivize high volume orders for better liquidity.
ODEX prioritizes fills based on price first and volume second. If two bids are equal at the same price tick the bid with the highest volume will get filled first. Likewise orders which are far away from competitive pricing and for low volumes are cleared first to make way for more competitive incoming orders.
This creates a dynamic fixed size orderbook which is game theory optimal to incentivize competitive pricing and high volume orders.