0

https://api.0x.org/swap/v1/price?sellToken=WETH&buyToken=WNXM&sellAmount=1000000000000000000

{"code":100,"reason":"Validation Failed","validationErrors":[{"field":"buyToken","code":1004,"reason":"Could not find token WNXM"}]}

0

1 Answer 1

0

Use the token address instead of the token symbol. There’s ambiguity in symbols on many networks so we deprecated symbol usage

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.