Kyberswap ( Limit Order Endpoints )
Supported Chains
Available on Ethereum, Binance, Polygon, Arbitrum, Avalanche, Optimism, Base, Fantom and Cronos
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getmakerorders
GET
- Returns all active limit orders posted by the maker./getorders
GET
- Returns all active orders based on the maker and taker assets./getactiveamount
GET
- Returns the maker's active amount for a particular maker asset./createorder
POST
- Prepares an unsigned limit order message that will post a limit order once signed with the Expand SDK./cancelorder
POST
- Prepares an unsigned message that will cancel a limit order once signed with the Expand SDK./publishorder
POST
- Sends a request to create or cancel a limit order to Kyberswap./fillorder
POST
- Initiates a transaction to fill a particular limit order.
Also see Error Handling Details
DEX IDs
Below is a list DEX IDs related to Kyberswap (Limit Order). Please see the DEX ID page for a complete DEX ID list and more information.
DEX Name | Chain | DEX ID |
---|---|---|
Kyberswap | Ethereum | 2200 |
Kyberswap | Binance | 2201 |
Kyberswap | Polygon | 2202 |
Kyberswap | Arbitrum | 2203 |
Kyberswap | Avalanche | 2204 |
Kyberswap | Optimism | 2205 |
Kyberswap | Base | 2206 |
Kyberswap | Fantom | 2207 |
Kyberswap | Cronos | 2208 |
Endpoint Details
/getmakerorders
This endpoint fetches all the active limit orders posted by the maker.
GET
https://api.expand.network/dex/getmakerorders
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
address* | String | Public address of the user. |
pageToken | String | The page number that the user wants to fetch. By default, 1. |
/getorders
This endpoint provides all active orders based on the maker and taker assets.
GET
https://api.expand.network/dex/getorders
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to DEX ID page for details. |
makerAsset* | String | The token address of the asset which the Maker is selling. |
takerAsset* | String | The token address of the asset which the Maker expects in return. |
/getactiveamount
This endpoint retrieves the maker's active amount for a particular maker asset.
GET
https://api.expand.network/dex/getactiveamount
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to DEX ID page for details. |
address* | String | Public address of the user. |
tokenAddress* | String | Address of the token. |
/createorder
This endpoint returns a limit order unsigned message that needs to be signed with the expand SDK to post a limit order.
POST
https://api.expand.network/dex/createorder
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to DEX ID page for details. |
makerAsset* | String | The token address of the asset which the Maker is selling. |
takerAsset* | String | The token address of the asset which the Maker expects in return. |
from* | String | Address of the sender of the token. |
to* | String | Address of the recipient of the token. |
amountIn* | String | Amount in of token. |
amountOut* | String | Amount out of token. |
deadline* | String | Deadline for the transaction to be executed (UNIX Timestamp). |
/cancelorder
This endpoint returns an unsigned message for canceling a limit order, which needs to be signed with expand SDK.
POST
https://api.expand.network/dex/cancelorder
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
orderId* | Array | OrderId of the transaction |
from* | String | Public address of the user. |
/publishorder
This endpoint sends the request to create or cancel a limit order to Kyberswap.
POST
https://api.expand.network/dex/publishorder
Request Body For Create Order
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
orderType | String | Type of the Order. Either "create" or "cancel". By default, "create". |
makerAsset* | String | The token address of the asset which the Maker is selling. |
takerAsset* | String | The token address of the asset which the Maker expects in return. |
from* | String | Address of the sender of the token. |
to* | String | Address of the recipient of the token. |
amountIn* | String | Amount in of token. |
amountOut* | String | Amount out of token. |
deadline* | String | Deadline for the transaction to be executed (UNIX Timestamp). |
signature* | String | The signed(signDataTyped) EIP712 creation order. |
salt* | String | The randomized data fed as an additional input to the hashing function. |
Request Body For Cancel Order
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
orderId* | Array | OrderId of the transaction |
orderType* | Array | Type of the Order. Either "create" or "cancel". By default, "create". |
from* | String | Public address of the user. |
signature* | String | The signed(signDataTyped) EIP712 creation order. |
/fillorder
This endpoint initiates the transaction to fill the particular limit order.
POST
https://api.expand.network/dex/fillorder
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
orderId* | Array | The ID of the order to be filled. |
amountIn* | Array | The amountin of takerAsset |
from* | String | The Taker wallet address which will receive the makerAsset. |
gasPriority | String | low, medium, or high. |
Error Handling Details
Error | Description |
---|---|
400 (Bad Request) | Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error. |
401 (Unauthorised) | Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers. |
404 (Not Found) | Indicates that the specified endpoint or resource does not exist. |
500 (Server Error) | Indicates an internal server error. |
Last updated