API
Trade with the CEXISWAP API
Trade with the CEXISWAP API
Endpoint | Request | Response |
---|---|---|
swap/v1/price |
|
|
swap/v1/quote |
|
|
swap/v1/tokens |
| List of { "symbol", "chain", "address", "decimals", "disabled" } |
Allowance Targets
When your sellToken
is an ERC-20 token, you will need to give CEXISWAP contracts permission to use that token by setting a token allowance. The allowanceTarget
in the response is the contract address that you should set the allowance for.
For example: inputToken.approve(response.allowanceTarget)
Last updated