Take Limit Orders From The Market
KyberSwap users can place a Limit Order through the interface at KyberSwaparrow-up-right with no gas fee
Anyone can fetch these off-chain signed orders using Limit Order API to perform trade by filling the order on-chain
To fill the order, the taker can call the fillOrder, fillOrderTo, fillBatchOrderTo or fillOrderToWithPermit function on the Smart Contract.
fillOrder
fillOrderTo
fillBatchOrderTo
fillOrderToWithPermit
Note
Trades buyer and seller should approve their tokens to be used by KyberSwap limit order contract
Please refer to Limit Order Contract Addresses for the latest contract addresses
The encoding API can be used to make it easier. In the case of fillBatchOrderTo, KyberSwap's encoding API even returns encodeData so that better orders will be filled first.
Last updated 2 years ago
Was this helpful?