Taker APIs
KyberSwap Limit Order Taker APIs
Download OpenAPI specification:
Taker APIs
This API is used by partners / takers to get orders to fill.
This API returns a limited number of orders, sorted by rate desc.
Note:
rate = ((making_amount - filled_making_amount) * (1 - maker_token_fee_percent) * maker_asset_price_usd - gas_usd) / ((taking_amount - filled_taking_amount) * taker_asset_price_usd)
Used to filter orders, only orders having rate greater than or equal are returned
Gas in USD used to calculate rate of orders. If gasUSD is equal to 0 or null, server will calculate gasUSD by itself.
Maker asset's price in USD used to calculate rate of orders. If makerAssetPriceUSD is equal to 0 or null, server will calculate makerAssetPriceUSD by itself.
Taker asset's price in USD used to calculate rate of orders. If takerAssetPriceUSD is equal to 0 or null, server will calculate takerAssetPriceUSD by itself.
OK
Bad Request
- Missing required fields
- rate < 0
- gasUSD < 0
- makerAssetPriceUSD < 0
- takerAssetPriceUSD < 0
Internal Server Error
- Error when get price from Price Service
Generate encoded data for fillOrderTo() method
Format: uint256
If thresholdAmount != 0, the order will be filled if and only if (actualTakingAmount / actualMakingAmount) <= (thresholdAmount / requestedMakingAmount)
The wallet address who will be received maker asset
OK
Bad Request
- Missing required fields
- orderId is invalid format
- takingAmount, thresholdAmount is not uint256
- target is not ETH address
Not Found
- Not found orderId
Internal Server Error
Format: uint256
Format: uint256
OK
Bad Request
- Missing required fields
- takingAmount, thresholdAmount is not uint256
- target is not ETH address
Not Found
- Not found order
Conflict
- Duplicate order id in request
Internal Server Error
Last updated
Was this helpful?