Tried 0x swap quote API GET /swap/v1/quote
to sell the SHIBA INU tokens but it is not working. Although working for other tokens like USDT, DAI, etc.
Query params I used:
With symbol
https://api.0x.org/swap/v1/quote?buyToken=ETH&sellToken=SHIB&sellAmount=85
Getting this:
{ "code": 100, "reason": "Validation Failed", "validationErrors": [ { "field": "sellToken", "code": 1004, "reason": "Could not find token `SHIB`" } ] }
With token address
https://api.0x.org/swap/v1/quote?buyToken=ETH&sellToken=0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE&sellAmount=85
Getting this:
{ "code": 100, "reason": "Validation Failed", "validationErrors": [ { "field": "sellAmount", "code": 1004, "reason": "INSUFFICIENT_ASSET_LIQUIDITY" } ] }
Also, tried swapping on Uniswap and it is showing a possible exchange. So, feel like something is wrong with 0x API because as per the doc, 0x considers all DEXs to find the best quote.