July 24, 2020
Auction is a process to settle delivery, which in turn determines the funding rate. It happens every hour, the auction will take place 5 minutes prior to each funding round.
The system will take net delivery = (long delivered – short delivered) to the corresponding Repo order book. If net delivery > 0, the auction buys repo. If net delivery < 0, the auction sells repo. The net delivery will be used for market buying/selling in the repo book during the auction. All the executed bids/asks will be adjusted to the last traded price.
Repo book |
|||
Price |
Amount (BTC) |
Total amount (BTC) |
|
0.025% |
10 |
40 |
|
0.020% |
10 |
30 |
|
0.015% |
10 |
20 |
|
Ask |
0.010% |
10 |
10 |
Bid |
-0.010% |
10 |
10 |
-0.015% |
10 |
20 |
|
-0.020% |
20 |
40 |
|
-0.025% |
30 |
70 |
In this example, net delivery = 100-80 = 20 BTC. The system is going to buy 20 BTC of repo from the order book. Hence, all the orders executed at 0.01% will be repriced at 0.015%, the last traded price.
If the Repo order book does not have enough orders for auction, it is considered as delivery failure. The auction will buy/sell all existing ask/bid orders on a first-in-first-out basis, which means that those who are confirmed to deliver will have their positions delivered first. In this situation, the funding rate becomes the highest possible value, and those who are not able to have their positions delivered will also receive funding.
Funding occurs at every hour. You will have to pay or receive funding only if you are holding a Perpetual position at this time. Funding will be paid or received in margin currency. If you close or deliver your position before the funding exchange, then you will not pay or receive funding.
Funding = Position*funding rate
Funding rate = (clearing price of the auction) Take the previous example. The auction clearing price is 0.015%, and the funding rate becomes -0.015%. When the funding rate is positive, long pays short; when the funding rate is negative, short pay long.