YokaiSwap / pancake-info-api

Serverless API implementation for PancakeSwap on-chain data query.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YokaiSwap API

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

Documentation

The documentation of the endpoints, 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

About

Serverless API implementation for PancakeSwap on-chain data query.


Languages

Language:TypeScript 100.0%