Taker APIs
KyberSwap Limit Order Taker APIs
Last updated
KyberSwap Limit Order Taker APIs
Last updated
Latest
Developer Guide
Please refer to Fill Limit Order for the relevant sequence diagram as well as a TypeScript example.
Request for the encoded fill order data from KyberSwap. This data can then be executed on-chain from the signer's wallet.
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.
OK
The response code.
Server response message.
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
.
OK
The response code.
Server response message.
Request for the encoded fill batch order data from KyberSwap. This data can then be executed on-chain from the signer's wallet.
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
.
OK
The response code.
Server response message.
Returns orders for the queried token pair sorted by best rates in descending order.
OK
The response code.
Server response message.