Taker APIs
KyberSwap Limit Order Taker APIs
Last updated
Was this helpful?
KyberSwap Limit Order Taker APIs
Last updated
Was this helpful?
Latest
Developer Guide
Please refer to Fill Limit Order for the relevant sequence diagram as well as a TypeScript example.
Returns orders for the queried token pair sorted by best rates in descending order.
/read-partner/api/v1/orders
The chainId of the network to query.
The token address of the asset which the Taker expects in return.
The token address of the asset which the Taker is exchanging.
Takers will need to request for KyberSwap Operator signature for target Maker orders which they are planning to fill. The returned operator signature will be required when encoding the Taker fill order for both /read-ks/api/v1/encode/fill-batch-orders-to
and /read-ks/api/v1/encode/fill-order-to
.
/read-partner/api/v1/orders/operator-signature
The chainId on which the order is being filled. Only supports EVM chains.
The order IDs to be cancelled gaslessly.
Request for the encoded fill order data from KyberSwap. This data can then be executed on-chain from the signer's wallet.
/read-ks/api/v1/encode/fill-order-to
The ID of the order to be filled.
The amount of takerAsset
in wei. String representation of uint256 value.
If thresholdAmount != 0, the order will be filled if and only if (actualTakingAmount / actualMakingAmount) <= (thresholdAmount / requestedMakingAmount).
The Taker wallet address which will receive the makerAsset
.
The Operator signature obtained from /read-partner/api/v1/orders/operator-signature
. The order must be signed by the operator before it can be filled.
Request for the encoded fill batch order data from KyberSwap. This data can then be executed on-chain from the signer's wallet.
/read-ks/api/v1/encode/fill-batch-orders-to
The order IDs to be filled in the batch order.
The amount of takerAsset
in wei. String representation of uint256 value.
If thresholdAmount != 0, the order will be filled if and only if (actualTakingAmount / actualMakingAmount) <= (thresholdAmount / requestedMakingAmount).
The Taker wallet address which will receive the makerAsset
.
The Operator signature obtained from /read-partner/api/v1/orders/operator-signature
. The order must be signed by the operator before it can be filled. Operator signature order must match orderIds
.