[SOLVED] Cant get Price anymore

currently i am getting only “No LP pool with enough Liq found to get price” … But the coins i aks for price definitly have enough Liq, also i add exchange=PancakeswapV2 as parameter on the web3 api …

are there currently any problems?


please show example with specific token address

Same problem here as well. Getting 400 error.

const options = {
  address: "0xD5E3BF9045Cfb1e6dEd4b35D1B9C34be16D6EEc3",
  chain: "bsc",
  exchange: "PancakeSwapv2"
const price = await Moralis.Web3API.token.getTokenPrice(options);

I also get an error for Moralis.Web3API.token.getTokenPrice({address: "0xe9e7cea3dedca5984780bafc599bd69add087d56", chain: "bsc"}), we will investigate.

curl -X 'GET' \
  'https://deep-index.moralis.io/api/v2/erc20/0xa78fd59d898b54e5d7bac783b43ef45bb87ec9cd/price?chain=bsc' \
  -H 'accept: application/json' \
  -H 'X-API-Key: '

The answer is:

  "message": "No pools found with enough liquidity, to calculate the price"

if i add exchange=PancakeSwapV2 locally it seems to work (at least on the “try it out” moralis web3 api page)

these two contracts i am using:


The funny thing is… everything worked till some hours before (no codechanges were made)… then it just stopped working

same for me as well. hopefully we will get a fix soon. Waiting for the devs to respond.

1 Like

the 400 error - we are on it

this one has just 4k usd liquidity
if the liquidity drains - we can’t give a reliable price when liquidity is this low

yeah thats why i am using exchange=pancakeswapV2 as its working with this parameter added. at least on the moralis.io website. my local and live logs still say they dont get any price

we will look into it more and get back :raised_hands:

perhaps i also should let you know, PERHAPS it could have something to do with our own swap, idk… the timing of not getting the price of my tokens was almost same time as i got answer from bscscan, that this token was updated now and it was “accepted” as Dex/Governance Token… so idk. :slight_smile:

Thank you ivan, am waiting. we were hoping to build a supersonic defi dashboard using your api’s. really neat stuff. Looking forward.

ok i just recreated the web3 api curl calls on moralis with the pancakeswapv2 parameter and replaced it on my code… now everything is working as expected.

ok now… its failing again lol… :slight_smile: i will wait for your investigation to be finished :slight_smile: thanks for all your help! and btw your videos are awsome! watching every single one

The problem may have been solved, it works fine for me now.

yes seems to work fine now