• This repository has been archived on 13/Nov/2022
  • Stars
    star
    330
  • Rank 127,657 (Top 3 %)
  • Language
    TypeScript
  • Created over 3 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Serverless API implementation for PancakeSwap on-chain data query.

[DEPRECATED]

PancakeSwap API

The PancakeSwap API is a set of endpoints used by market aggregators (e.g. coinmarketcap.com) to surface PancakeSwap liquidity and volume information. All information is fetched from the underlying subgraphs.

v1 Documentation

The documentation of the endpoints, for PancakeSwap v1, can be found here.

v2 Documentation

The documentation of the endpoints, for PancakeSwap v2, can be found here.

Development

Install requirements

yarn global add vercel

Build

# Install dependencies
yarn

# Build project
vercel dev

Endpoints are based on filename inside the api/ folder.

# api/pairs.ts
curl -X GET 'localhost:3000/api/pairs'

# ...

Production

Deploy

Deployments to production are triggered by a webhook when a commit, or a pull-request is merged to master.

If you need to force a deployment, use the following command:

vercel --prod

More Repositories

1

pancake-frontend

🥞 Pancake main features (farms, pools, IFO, lottery, profiles)
TypeScript
2,669
star
2

pancake-farm

Solidity
428
star
3

pancake-swap-interface-v1

🥞 Pancake trading interface V1
TypeScript
303
star
4

pancake-toolkit

⚒️ Pancake frontend packages
TypeScript
303
star
5

pancake-subgraph

📊 Pancake subgraph (blocks, profile, prediction, NFT's, ...)
TypeScript
292
star
6

pancake-swap-core

Core smart contracts
TypeScript
264
star
7

pancake-smart-contracts

PancakeSwap Smart Contracts
TypeScript
202
star
8

pancake-swap-sdk

TypeScript
189
star
9

pancake-swap-periphery

Solidity
174
star
10

pancake-document

HTML
94
star
11

pancake-swap-lib

Solidity
85
star
12

lottery-contract

JavaScript
83
star
13

pancake-info-v1

JavaScript
77
star
14

pancake-uikit

💠 Set of UI components for pancake projects
TypeScript
77
star
15

token-list

TypeScript
69
star
16

pancake-contracts-move

Move
69
star
17

pancake-lottery-scheduler

🎰 Pancake Lottery scheduler
TypeScript
40
star
18

pancake-profile-api

🖼️ Serverless API implementation for PancakeSwap Profile contract
TypeScript
32
star
19

initial-farm-offering

🥞 IFO contract
JavaScript
25
star
20

PancakeSwap-Design

18
star
21

pancake-v2-subgraph

[ARCHIVED] PancakeSwap v2 subgraph
TypeScript
17
star
22

pancake-nft-api

Serverless API implementation for PancakeSwap NFT Marketplace contract
TypeScript
16
star
23

pancake-v4-periphery-deprecated

Solidity
13
star
24

pancake-v3-contracts

TypeScript
12
star
25

smart-router-example

Usage example of @pancakeswap/smart-router
TypeScript
9
star
26

pancake-nft-publish

Java
9
star
27

token-pocket-splash

TypeScript
6
star
28

Revelation-Hackathon-Bounties

PancakeSwap bounties for Revelation Hackathon by BNB Chain
6
star
29

pancake-taro-toolkit

pancake-toolkit for taro
TypeScript
3
star
30

eslint-config-pancake

Eslint config for PancakeSwap
JavaScript
3
star
31

airdrop-v3-users

TypeScript
2
star
32

permit2

🔑🔑🔑 next generation token approvals mechanism
Solidity
2
star
33

on-ramp-client-side-api

TypeScript
1
star
34

syrup-pool-data-api

TypeScript
1
star