Advanced limit order offers 3 more order options than a regular limit order, including “Post Only”, “Fill or Kill” and “Immediate or Cancel”. The regular limit order has been defaulted as “Good till Canceled”.
1. Post Only: it never takes liquidity and makes sure the user will be a market If your order would cause a match with a pre-existing order, your post-only limit order will be canceled.
2. Fill or Kill: it makes sure the buy/sell order is executed or canceled entirely without partial fulfillments.
3. Immediate or Cancel: requires all or part of the order to be executed immediately, and any unfilled parts of the order are cancelled.
For example, if a user wishes to buy BTC and the order book is shown as the below screenshot:
1. If the user wishes to pay by maker fee, they can select the “Post Only” option under the Advanced Limit If they have set the buy price as USD18737.00, the order would not take liquidity as they are a market maker. If the buy price is USD18737.25, the order will be executed with Buy (1). If the user is a market taker, the order will be canceled;
2. If the user selected the “Fill or Kill” option, set the buy price as 00 and the order amount is 300 BTC, as the total amount on the order book is only 266 BTC (1+1+8+100+156), the order amount is not fulfilled (300-266=34 BTC) and will be canceled entirely. But if the user only ordered 200 BTC, the order will be executed accordingly;
3. If the user selected the “Immediate or Cancel” option, set the buy price as 00 and the order amount is 300 BTC, as the total amount on the order book is only 266 BTC (1+1+8+100+156), 34 BTC (300-266) could not be fulfilled, the order will only execute with 266 BTC and cancel the unfulfilled 34 BTC.