Moved to https://www.gridtrade.xyz/
We believe anybody has the right to trade any asset anywhere, anytime!
Sea protocol is an ultimate DEX base on order-book & AMM, currently being developed on the Aptos & Sui blockchain.Sea protocol leverages the hyper parallelization of Aptos/Sui to bring incredible speed,reliability, and cost-effectiveness to decentralized trading.
Be the voice of freedom. Bank the unbanked. Speak for the silenced.
Grid order is also known as grid trading. grid orders at regular intervals across a range. Buy orders are replaced with sell orders when they fill and sell orders are replaced with buy orders.
for example, Alice place a grid order which has 8 orders, 4 is buy order, 4 is sell order, as following:
| Side | Price | Qty |
|---|---|---|
| Sell3 | 103 | 2.5 |
| Sell2 | 102 | 2.5 |
| Sell1 | 101 | 2.5 |
| Sell0 | 100 | 2.5 |
| Buy0 | 98 | 2.5 |
| Buy1 | 97 | 2.5 |
| Buy2 | 96 | 2.5 |
| Buy3 | 95 | 2.5 |
If Sell0 is filled, this order got 100*2.5 = 250 quote; then this order will filp to buy order:
| Side | Price | Qty |
|---|---|---|
| Buy | 99 | 2.5 |
If the filp order is filled, then it become sell order again:
| Side | Price | Qty |
|---|---|---|
| Sell | 100 | 2.5 |
As the price fluctuates up and down, the grid filp again and again, the makes will got more and more profit.
And we provide maximum flexibility: you can cancel any order in the grid at any time.
Uniswap v3 a continual ranged grid order.
Sea protocol set min lot size to protect Sybil attack.
The pair's min lot size is NOT set when the pair is created. The min lot size is set when first trade created, and the min lot size can be modify at anytime when the trade price is updated, but it is not necessary.
Because aptos stdlib coin balance is u64, so the coin's decimals can NOT be too big, the recommend max is 8.
When not consider the coin scale, price formula is following:
price = quote_volume / base_volume
If we consider the coin scale, it became:
price = (quote_amount * base_scale) / (base_amount * quote_scale)