pancakeswap / pancake-info-api Goto Github PK
View Code? Open in Web Editor NEWServerless API implementation for PancakeSwap on-chain data query.
Serverless API implementation for PancakeSwap on-chain data query.
GET https://api.pancakeswap.info/api/tokens/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82
Response
{
"message": "Missing Authentication Token"
}
Can not be used normally
{"error":{"code":500,"message":"first block was not fetched"}}
getting this error while calling: https://api.pancakeswap.info/api/v2/summary
Can I be able to get data in ASC order? or DSC order as i wish? Can i get data on recent locked liquidity?
Is there anyway to get the Farm APRs via this API?
Hi guys! The api return 404 not found for our token https://api.pancakeswap.info/api/v2/tokens/0x6067652fe687aa221b6f86f398af4d0fe9bf45e3
How can we fix that?
We cannot apply to CMC/blockfolio without this api properly working
{'message': 'Missing Authentication Token'}
Tested with a few common tokens and still returns the same error.
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
Hi when i want to get specific Token data i get response thst i need authenticatione token , any idea where to get that from ?
Regards
Hi, I saw that the underlying subgraph for this codebase is located at https://api.bscgraph.org/subgraphs/name/pancakeswap/exchange-lite, but does anyone know where the subgraph's repository is located? Is it closed source?
What's wrong with following apis?
https://api.pancakeswap.info/api/v2/tokens
https://api.pancakeswap.info/api/v2/pairs
It suddenly stops working and is returning 500
error now.
Not sure what's wrong there.
https://api.pancakeswap.info/api/tokens/0xc13a1b47377a8382bd3f6f9105137c1e838758b9
Our token achtools in not updated in your API please update it as we are getting problem in listing our token on blockfolio thank you
Hey, is there any problem with the token price end point? It's not updating.
How do I trade into pancake swap using API like we do it in Binance?
i try to access https://api.pancakeswap.info/api/summary
but this page shows
{"error":{"code":500,"message":"Failed to decode `block.number` value: `subgraph QmUf1YRkpWGSp867mLb6ab8aGPCnircwN17SKbrM5UeUW2 has only indexed up to block number 4626465 and data for block number 5306317 is therefore not yet available`"}}
how can i access endpoints? is it graphql? or rest ?
{"error":{"code":500,"message":"Store error: query execution failed: Subgraph pancakeswap/exchange-lite
not found"}}
Please let me know how to fix it. How do I connect subgraph
What did i do wrong. I followed the instructions tho never could get curl to connect to the local host.
`
22:25:05.299 | Retrieving list of deployment files... |
---|---|
22:25:06.890 | Downloading 32 deployment files... |
22:25:07.321 | Analyzing source code... |
22:25:08.570 | Installing build runtime... |
22:25:09.438 | Build runtime installed: 867.872ms |
22:25:10.325 | Installing build runtime... |
22:25:11.150 | Build runtime installed: 825.058ms |
22:25:12.037 | Installing build runtime... |
22:25:12.866 | Build runtime installed: 828.288ms |
22:25:13.750 | Installing build runtime... |
22:25:14.583 | Build runtime installed: 832.965ms |
22:25:18.325 | Looking up build cache... |
22:25:18.337 | Looking up build cache... |
22:25:18.344 | Looking up build cache... |
22:25:18.412 | Looking up build cache... |
22:25:18.654 | Build Cache not found |
22:25:18.675 | Build Cache not found |
22:25:18.701 | Build Cache not found |
22:25:18.752 | Build Cache not found |
22:25:20.454 | Installing dependencies... |
22:25:20.492 | Installing dependencies... |
22:25:20.520 | Installing dependencies... |
22:25:20.583 | Installing dependencies... |
22:25:21.036 | yarn install v1.22.10 |
22:25:21.148 | [1/4] Resolving packages... |
22:25:21.507 | [2/4] Fetching packages... |
22:25:38.915 | info [email protected]: The platform "linux" is incompatible with this module. |
22:25:38.915 | info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. |
22:25:38.932 | [3/4] Linking dependencies... |
22:25:46.227 | [4/4] Building fresh packages... |
22:25:46.475 | Done in 25.45s. |
22:25:46.736 | yarn install v1.22.10 |
22:25:46.769 | Using TypeScript 4.2.3 (local user-provided) |
22:25:46.865 | [1/4] Resolving packages... |
22:25:47.405 | [2/4] Fetching packages... |
22:25:48.193 | info [email protected]: The platform "linux" is incompatible with this module. |
22:25:48.193 | info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. |
22:25:48.215 | [3/4] Linking dependencies... |
22:25:52.990 | Uploading build outputs... |
22:25:53.119 | Deploying build outputs... |
22:25:56.342 | [4/4] Building fresh packages... |
22:25:56.596 | Done in 9.87s. |
22:25:56.865 | yarn install v1.22.10 |
22:25:56.916 | Using TypeScript 4.2.3 (local user-provided) |
22:25:57.012 | [1/4] Resolving packages... |
22:25:57.636 | [2/4] Fetching packages... |
22:25:58.375 | info [email protected]: The platform "linux" is incompatible with this module. |
22:25:58.376 | info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. |
22:25:58.392 | [3/4] Linking dependencies... |
22:26:02.854 | Uploading build outputs... |
22:26:02.947 | Deploying build outputs... |
22:26:05.378 | Done with "api/summary.ts" |
22:26:06.187 | [4/4] Building fresh packages... |
22:26:06.440 | Done in 9.58s. |
22:26:06.690 | yarn install v1.22.10 |
22:26:06.738 | Using TypeScript 4.2.3 (local user-provided) |
22:26:06.834 | [1/4] Resolving packages... |
22:26:07.403 | [2/4] Fetching packages... |
22:26:08.138 | info [email protected]: The platform "linux" is incompatible with this module. |
22:26:08.138 | info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. |
22:26:08.147 | [3/4] Linking dependencies... |
22:26:12.918 | Uploading build outputs... |
22:26:13.036 | Deploying build outputs... |
22:26:15.298 | Done with "api/tokens/index.ts" |
22:26:15.952 | [4/4] Building fresh packages... |
22:26:16.215 | Done in 9.53s. |
22:26:16.492 | Using TypeScript 4.2.3 (local user-provided) |
22:26:20.913 | Uploading build outputs... |
22:26:21.029 | Deploying build outputs... |
22:26:23.393 | Done with "api/pairs.ts" |
22:26:25.653 | Uploading build outputs... |
22:26:25.874 | Deploying build outputs... |
22:26:27.917 | Done with "." |
22:26:31.927 | Build completed. Populating build cache... |
22:26:44.815 | Uploading build cache [34.25 MB]... |
22:26:47.624 | Build cache uploaded: 2.809s |
22:26:48.144 | Done with "api/tokens/tokens.ts" |
When I try to return token information based on address.
GET https://api.pancakeswap.info/api/tokens/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82
I get the "Missing Authentication Token" error.
I have some $CAKE and a couple of LP tokens staked, and I have their contract addresses. How can I get their balances?
Do you know why in several tokens when I get the price in v1, and v2, both oh them shows 0... and in pancake.exchange I can see the price??
examplhttps://api.pancakeswap.info/api/v2/tokens/0xad070194f0644cec996b9a8076eabf09e82921ea
Could you give me a little idea of how to build this API?
I've been looking around with no success.
Tnx a lot
I swapped BNB for ZIL and Pancakeswap integrated USDT in the middle (path). Why is that? There is enough in the reserves of BNB_ZIL pair.
Here's an example transaction: https://bscscan.com/tx/0xb8b7680b523653f12b10216db0f9b801ff1110d1faa80445c1d259d10b63e339
I'm cloning this project and trying to build and use as api without cache.
But when I start my vercel server and try to access an endpoint, I receive the follow error:
"Store error: query execution failed: Subgraph pancakeswap/exchange-lite
not found"
How can I fix it?
Hi! I try to get price of Roocoin via API.
But link https://api.pancakeswap.info/api/v2/tokens/0x30b29c6c03546f6395ddb454538d0eb7e4a6e32f don't show correct price.
Help me please.
Bug Description
No price data available?
Expected Behavior
Get the price data.
Additional Context
documentation: https://github.com/pancakeswap/pancake-info-api/blob/develop/documentation.md
https://api.pancakeswap.info/api/tickers
{"error":{"code":500,"message":"Failed to decode block.number
value: subgraph QmUf1YRkpWGSp867mLb6ab8aGPCnircwN17SKbrM5UeUW2 has only indexed up to block number 5035529 and data for block number 5600791 is therefore not yet available
"}}
https://api.pancakeswap.info/api/assets
{"error":{"code":500,"message":"Failed to decode block.number
value: subgraph QmUf1YRkpWGSp867mLb6ab8aGPCnircwN17SKbrM5UeUW2 has only indexed up to block number 5035531 and data for block number 5600792 is therefore not yet available
"}}
https://api.pancakeswap.info/api/summary
{"error":{"code":500,"message":"Failed to decode block.number
value: subgraph QmUf1YRkpWGSp867mLb6ab8aGPCnircwN17SKbrM5UeUW2 has only indexed up to block number 5035532 and data for block number 5600794 is therefore not yet available
"}}
https://api.pancakeswap.info/
404: NOT_FOUND
Code: NOT_FOUND
ID: lhr1::mxvlf-1615593631770-80e8f574ef62
Click here to learn more about this error.
Hello,
Could you update iHODL Token in your Api?
https://api.pancakeswap.info/api/v2/tokens/0x9cadb2f8adaf224011500bea8d2a38356540de71
https://bscscan.com/address/0x9cadb2f8adaf224011500bea8d2a38356540de71
Thanks!
Hi folks,
I've followed the install instruction but when I query my endpoints I get
"error": {
"code": 500,
"message": "Store error: query execution failed: Subgraph `pancakeswap/exchange-lite` not found"
}
Did I miss something?
Hi guys! The api return 404 not found for our token https://api.pancakeswap.info/api/v2/tokens/0x7d03d1ae4de2702d282540782c595027bdb9d76e.
How can we fix that?
Hello,
I have been trying to use GET https://api.pancakeswap.info/api/v2/pairs API but it is kept on responding with the same UNIX time (1621332427423) which is 18 May 2021. Am I missing something? Do I need an authorization header in it?
I am following https://github.com/pancakeswap/pancake-info-api/blob/develop/v2-documentation.md documentation.
Thanks
I am using the api to get the prices, but the prices are usually updated within 20 minutes to an hour.
Example: https://api.pancakeswap.info/api/v2/tokens/0x0523215dcafbf4e4aa92117d13c6985a3bef27d7
In the documentation says Results are cached for 5 minutes (or 300 seconds).
But it always takes a while.
Any idea?
How do I retrieve from this endpoint in PHP: https://api.pancakeswap.info/api?
When I originally used it in the browser it showed me a list of tokens and their data. Now, it tells me I don't have an auth token. Where do I get this auth token and how do I connect and query via PHP? I'm trying to get all tokens, token prices and position values for my TrustWallet.
Hello
Lately I noticed that the difference between frontend and APIs are getting bigger.
Pancakeswap V2 Frontend
0.0000000992146
https://api.pancakeswap.info/api/v2/tokens
0.0000000219983
https://api.pancakeswap.info/api/v2/tokens/0x4A824eE819955A7D769e03fe36f9E0C3Bd3Aa60b
0.0000000343884
This coin is just an example, lots of coins has this issue right now. Even though API says prices updates 5-10 minutes ago, its not even close to the actual price
Hi
I've just used this API for a telegram price bot and it's working amazing. However, I had one issue which was that only the USD value and BNB value of the coins are visible. It would be great if you could add values for USDT, EUR, GBP and all the main currencies.
Hi,
I was trying to get this API but it seems is broken.
Could you please tell how to fix it?
Thanks
I reviewed https://github.com/pancakeswap/pancake-info-api. https://api.pancakeswap.info/api/summary as a result when I make a request {
"error": {
"code": 500,
"message": "Failed to decode block.number
value: subgraph QmUf1YRkpWGSp867mLb6ab8aGPCnircwN17SKbrM5UeUW2 has only indexed up to block number 5081101 and data for block number 5665851 is therefore not yet available
"
}
} returns. What does it originate from?
I would be glad if you could help.
Hello there, i'm following the docs in https://github.com/pancakeswap/pancake-info-api/blob/develop/documentation.md but i just can't get any response, i tried the GET https://api.pancakeswap.info/api/tokens/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82 as the examples says but i only got this error:
{"message":"Missing Authentication Token"}
Can you help me?
Thanks.
Is there a way to retrieve token creation date ?
The single token fetch endpoint is throwing an error message:
{"message":"Missing Authentication Token"}
No parameter was meant to be passed to it.
Hello
We've been trying to workaround our API not showing values since days
Any way for you to look into this?
https://api.pancakeswap.info/api/v2/tokens/0xaecf6d1aff214fef70042740054f0f6d0caa98ab
https://pancakeswap.info/token/0xaecf6d1aff214fef70042740054f0f6d0caa98ab
It's the BNB pair that's not being shown in the .info , we really need it to go forward with our project since we can't seem to have a working price for CMC and CG or Blockfolio
Thanks!
Dear Team,
It seems Pancakeswap API doesn't recognize our token which is being listed for over two weeks now. could you please check?
https://api.pancakeswap.info/api/v2/tokens/0xf19438b660067d2b68f766ff63dabf1d4f603253
https://api.pancakeswap.info/api/tokens/0xf19438b660067d2b68f766ff63dabf1d4f603253
BSCScan: https://bscscan.com/token/0xf19438b660067d2b68f766ff63dabf1d4f603253
To check this deeper, I created another token just to ensure we did not miss anything on our side we created another one but the same result, can you please assist here?
https://api.pancakeswap.info/api/v2/tokens/0x198deDfEB86eDa80836FE47FE8A0B496E71b71a9
https://api.pancakeswap.info/api/tokens/0x198deDfEB86eDa80836FE47FE8A0B496E71b71a9
BSCScan: https://bscscan.com/token/0x198deDfEB86eDa80836FE47FE8A0B496E71b71a9
They all throw error with
{"error":{"code":404,"message":"Not found"}}
Hello we are trading in pancakeswap V2 from last 15 days
https://api.pancakeswap.info/api/v2/tokens/0xbb8170ad35325522c0026d67584d4fefbd08b750
Please update
Thanks
To whom it may concern,
My token Assgard (ASSG) CA: 0x7c52e19e4d350189bcdfb7f7a0868117e9f195e5 is not showing up in your pancakeswap api. Because of this Blockfolio will not let me list on their site. Can you please correct ASAP.
We ended up relaunching our project with a new contract address but it looks like your api has our old contract address.
New contract address: 0x7c52e19e4d350189bcdfb7f7a0868117e9f195e5
Old contract address: 0x9B2411dD7002aef8e27C436EA0f0A75C640361f7
Can you please correct.
Can I buy and sell token by API?
@ChefKai Apprx. every 18 mins. which is a very long window, Is it possible to reduce it?
Pairs on the v2 API endpoint haven't updated for a month.
https://api.pancakeswap.info/api/v2/pairs
Need to urgently fix this issue.
Hello sir,
Can i auto buy and sell using pancakeswap api ?
Interface unavailable
Hello our token details not updated in V2 please have a look
Contract
0xbb8170ad35325522c0026d67584d4fefbd08b750
https://exchange.pancakeswap.finance/#/swap?outputCurrency=0xbb8170ad35325522c0026d67584d4fefbd08b750
I want to create a query in Excel for getting LP price for some pairs. How can I do that?
The 3 API-s that exist won-t do this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.