DEX API

Error codes#

CodeHTTP statusMessage
0200Succeeded
50011429Rate limit reached. Please refer to API documentation and throttle requests accordingly
50014400Parameter {param0} cannot be empty
50026500System error. Try again later
50103401Request header "OK-ACCESS-KEY" cannot be empty
50104401Request header "OK-ACCESS-PASSPHRASE" cannot be empty
50105401Request header "OK-ACCESS-PASSPHRASE" incorrect
50106401Request header "OK-ACCESS-SIGN" cannot be empty
50107401Request header "OK-ACCESS-TIMESTAMP" cannot be empty
50111401Invalid OK-ACCESS-KEY
50112401Invalid OK-ACCESS-TIMESTAMP
50113401Invalid signature
51000400Parameter {param0} error
80000200Repeated request
82000200Insufficient liquidity
82001500The commission service is not available during the upgrade
82102200Less than the minimum quantity limit,the minimum amount is {0}
82103200Exceeds than the maximum quantity limit,the maximum amount is {0}
82104200This token is not supported
82105200This chain is not supported
82112200The value difference from this transaction’s quote route is higher than {num}, which may cause asset loss,The default value is 90%. It can be adjusted using the string priceImpactProtectionPercentage.
82116200callData exceeds the maximum limit. Try again in 5 minutes.