General APIs

KyberSwap Limit Order General APIs

Download OpenAPI specification:

General 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.

Latest

Get Chain Supported Pairs

get

Please refer to Supported Exchanges And Networks for full list of supported networks.

Query parameters
chainIdstringRequired

The chainId of the network to query.

Responses
200
OK
application/json
get
GET /read-partner/api/v1/orders/pairs HTTP/1.1
Host: limit-order.kyberswap.com
Accept: */*
{
  "value": {
    "code": 0,
    "message": "Successfully",
    "data": {
      "pairs": [
        {
          "makerAsset": "0x1c954e8fe737f99f68fa1ccda3e51ebdb291948c",
          "takerAsset": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"
        }
      ]
    }
  }
}

Get Limit Order Contract Addresses

get

Please refer to Supported Exchanges And Networks for full list of supported networks.

Query parameters
chainIdstringRequired

The chainId of the network to query.

Responses
200
OK
application/json
get
GET /read-ks/api/v1/configs/contract-address HTTP/1.1
Host: limit-order.kyberswap.com
Accept: */*
{
  "value": {
    "code": 0,
    "message": "Successfully",
    "data": {
      "latest": "0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C",
      "features": {
        "0xBff3AF706AedfAa19724BAb00947b7cD7bF3Af5F": {
          "supportDoubleSignature": false
        },
        "0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C": {
          "supportDoubleSignature": true
        }
      }
    }
  }
}

*For /read-ks/api/v1/configs/contract-address, please refer to the .yaml file for the full return object as GitBook has limited support for OpenAPI's additionalProperties definition.

Last updated

Was this helpful?