KyberSwap Docs
Search
K

Taker APIs

KyberSwap Limit Order Taker APIs

Download OpenAPI specification:

LimitOrderAPIs_v1.2.yaml
99KB
Code

Taker APIs

API statuses and support
KyberSwap APIs uses the following statuses to minimize version miscommunications and ensure an uninterrupted service for the end user:
  • Latest: API is functional and supported. This is the recommended version for all integrators (new and existing).
  • Legacy: API remains functional with support for bugs only. No new feature updates.
  • Deprecated: API is no longer functional and is not supported.
For all developers, it is highly recommended that you refer to the API with the Latest tag to ensure access to the latest features as well as improved service quality and efficiency. APIs which are planned to be sunset will be tagged Legacy during the transition period and thereafter moved to Deprecated.
The KyberSwap Docs will continue to maintain information regarding Legacy and Deprecated APIs.
Limit Order protocol fees
To support the continued development of the Limit Orders feature, KyberSwap will charge variable taker fees for orders filled on the following chains:
  • Ethereum (ChainID: 1)
  • BSC (ChainID: 56)
  • Arbitrum (ChainID: 42161)
  • Polygon (ChainID: 137)
  • Optimism (ChainID: 10)
  • Avalanche (ChainID: 43114)
  • Fantom (ChainID: 250)
The fees charged will be according to the most exotic token in the trading pair. The section below lists the fees whereby the highest fee category will apply based on the classification of the input and output tokens. There are 4 categories of tokens with an additional special category for trades involving KNC.
Super stable (0.01%)
Stable (0.02%)
Normal (0.1%)
  • Top 200 tokens by market cap (identified via multiple on and off-chain services), excluding tokens under the super stable, stable, and KNC categories.
Exotic (0.3%)
  • All remaining tokens not covered in the super stable, stable, normal, and KNC categories.
KNC (0.05%)
  • Trades to and from KNC will be charged a flat 0.05% fee.
Rates calculation

Latest

Developer Guide
Please refer to Fill Limit Order for the relevant sequence diagram as well as a TypeScript example.

Query Order(s)

get
https://limit-order.kyberswap.com
/read-partner/api/v1/orders
Get Orders By Token Pair

Get Operator Signature

get
https://limit-order.kyberswap.com
/read-partner/api/v1/orders/operator-signature
Request Operator Signature For Maker Orders

Fill Order(s)

post
https://limit-order.kyberswap.com
/read-ks/api/v1/encode/fill-order-to
Generate Encoded Data To Fill Order
post
https://limit-order.kyberswap.com
/read-ks/api/v1/encode/fill-batch-orders-to
Generate Encoded Data To Fill Batch Order
Last modified 3mo ago