pancake-info-api icon indicating copy to clipboard operation
pancake-info-api copied to clipboard

Can I use this API to check a specific pair or token info?

Open juan-silveira opened this issue 3 years ago • 49 comments

I'm new at this tech, and I'm kind of used to use a regular API calls, how can I start to use this one?

The pair that I'm trying to retrieve info is this: https://pancakeswap.info/pair/0xb54cd95eea2b2f7adb4dccd5b5e1d6c4a6ffe472

juan-silveira avatar Mar 02 '21 01:03 juan-silveira

Hello, the API does not currently support retrieving information about a specific token/pair, but it's a planned feature and should be here soon :)

ChefKai avatar Apr 01 '21 12:04 ChefKai

Hi guys, do you have an idea of when it will be released ? Just to get a feeling if it will be more like a week or a month. Thanks :)

leopons avatar Apr 10 '21 08:04 leopons

hello, Can anyone please give me suggestions to fetch details of a specific pair or any alternate method to do the same.

Thanks in advance.

ShinoyVK avatar Apr 10 '21 11:04 ShinoyVK

Hello!

I think it would be very useful to have this information on the pairs:

  • Volume
  • Amount of each token
  • Liquidity size
  • Transactions

Thanks for your work.

thisprojectworks avatar Apr 10 '21 13:04 thisprojectworks

Hello,

same for a specific token please like :

https://pancakeswap.info/token/0xb54cd95eea2b2f7adb4dccd5b5e1d6c4a6ffe472/price : current price BNB / USD

https://pancakeswap.info/token/0xb54cd95eea2b2f7adb4dccd5b5e1d6c4a6ffe472/transaction : volume , last 10 or 100 transactions

Best regards,

Charles

cbijon avatar Apr 10 '21 13:04 cbijon

@ChefKai Any status update about this?

vastamaki avatar Apr 15 '21 21:04 vastamaki

Release plan is around next week ~

ChefKai avatar Apr 18 '21 10:04 ChefKai

Any update on this?

EPstudios avatar Apr 25 '21 21:04 EPstudios

Hello, the API does not currently support retrieving information about a specific token/pair, but it's a planned feature and should be here soon :)

Release plan is around next week ~

Since we are unable to retrieve info for a specific token/pair at present, in the interim, is there a means by which we can retrieve info for ALL tokens/pair, after which we can then filter to our hearts content ? - at present we are only getting the 'top ~1000 pairs'

chop-pixel avatar Apr 26 '21 17:04 chop-pixel

Hey, are there any updates regarding this functionality?

wynlo avatar Apr 28 '21 04:04 wynlo

Release plan is around next week ~

We are all waiting for this fabulous endpoint 😍

mrcolak avatar Apr 28 '21 08:04 mrcolak

Release plan is around next week ~

Hey, Is there any news? We look forward to hear from you👀.

benbanicar avatar Apr 28 '21 20:04 benbanicar

Do you have an ETA for this?

ivancsicsmarkus avatar Apr 29 '21 15:04 ivancsicsmarkus

@ChefKai any updated ETA? Thanks.

GMaiolo avatar Apr 30 '21 16:04 GMaiolo

Still no update? People clearly want this..

Valaia avatar Apr 30 '21 19:04 Valaia

I believe they are too busy with the LP migration.

mrcolak avatar Apr 30 '21 20:04 mrcolak

I'd like this, please 👍

masterkain avatar May 01 '21 01:05 masterkain

Adding to the pile of people requesting an update to this...

globalgive avatar May 02 '21 18:05 globalgive

This would be a fantastic api endpoint! Any update?

manzuni avatar May 03 '21 13:05 manzuni

Why have it in the documents if it's planned but not yet released. You could have at least stated that in the documents that its coming in the future.

gogetta69 avatar May 03 '21 15:05 gogetta69

Why have it in the documents if it's planned but not yet released. You could have at least stated that in the documents that its coming in the future.

Exactly, you need to go to issues to know that this endpoint is not released yet. Probably it's not even implemented yet. What a dump approach...

LucasssD avatar May 04 '21 09:05 LucasssD

Hello everyone 👋

We have just released the endpoint for querying a token, on both v1 and v2; you can use it right away! Documentation Pair endpoint will follow shortly and an update will be sent here.

Thanks for your patience! Do not forget that the code is all open-source, and pull request are welcome!

ChefKai avatar May 04 '21 12:05 ChefKai

pro stuff, thanks

masterkain avatar May 04 '21 12:05 masterkain

@ChefKai how is "price denominated in USD" calculated for a token? Is it based on the USDT pair or is it calculated in a different way?

ivancsicsmarkus avatar May 04 '21 12:05 ivancsicsmarkus

Hello!

I think it would be very useful to have this information on the pairs:

  • Volume
  • Amount of each token
  • Liquidity size
  • Transactions

Thanks for your work.

That is planned when the next subgraph is deployed (which should be after the .info bounty program is finished). If you wish to keep track of this request, please open a new issue.

ChefKai avatar May 04 '21 12:05 ChefKai

@ChefKai how is "price denominated in USD" calculated for a token? Is it based on the USDT pair or is it calculated in a different way?

We use a selective list of trusted assets (WBNB, BUSD, USDT, USDC, UST, VAI, BTCB, WETH, BETH) that a token must have a pair with in order to start indexing his price in USD and BNB; this avoid getting corrupted data when a token is having low liquidity as well, and/or a will to harm the ecosystem. You can check the logic within the pancakeswap/pancake-subgraph repository.

ChefKai avatar May 04 '21 12:05 ChefKai

Does that explain why some tokens have a price of $0 @ChefKai?

dchakarov avatar May 04 '21 12:05 dchakarov

Does that explain why some tokens have a price of $0 @ChefKai?

Yes it can be; it's either a delay in the subgraph indexing the data, or a lack of liquidity for the pair, or a lack of 'trusted' pairs; in such case, it's advised to directly query the token price though a Binance Smart Chain node; or use a 3rd-party API that might fill this needs (BitQuery, Covalent, ...).

ChefKai avatar May 04 '21 12:05 ChefKai

Hello everyone 👋

We have just released the endpoint for querying a token, on both v1 and v2; you can use it right away! Documentation Pair endpoint will follow shortly and an update will be sent here.

Thanks for your patience! Do not forget that the code is all open-source, and pull request are welcome!

Ah man thank you so much for this. Glad to be holding some cake!

gogetta69 avatar May 04 '21 15:05 gogetta69

Nice, but it won't work for many small tokens I tried. Any idea on how to fix this? Poocoin / Bogged work fine.

BoboBruno avatar May 04 '21 17:05 BoboBruno