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.
Latest
Create Order(s)
Developer Guide
Please refer to Create Limit Order for the relevant sequence diagram as well as a TypeScript example.
Query Maker Order(s)
Gasless Cancel Order(s)
Developer Guide
Please refer to Gasless Cancel for the relevant sequence diagram as well as a TypeScript example.
Hard Cancel Order(s)
Developer Guide
Please refer to Hard Cancel for the relevant sequence diagram as well as a TypeScript example.
Request for the cancel all encoded data from KyberSwap. By increasing the LO contract nonce tied to the Maker, the LO contract is able to nullify all existing orders. This data can then be executed on-chain from the Maker's wallet.
API for Makers to gaslessly cancel orders by sending in order params which includes the signed EIP712 message returned in /write/api/v1/orders/cancel-sign.
Get EIP712 cancel order message to be signed (i.e. 'Gasless Cancel'). The response of this API will need to be signed with Sign Typed Data v4 before submitting create order request to KyberSwap via /write/api/v1/orders/cancel.
Get EIP712 create order message to be signed. The response of this API will need to be signed with Sign Typed Data v4 before submitting create order request to KyberSwap via /write/api/v1/orders.