Giter Club home page Giter Club logo

api-deprecated's Introduction

Uniswap API

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

The API is designed around the CoinMarketCap requirements document.

Prefer the Uniswap subgraph for any Uniswap queries whenever possible. The respective subgraphs will always have more recent data.

V2 Subgraph: https://github.com/Uniswap/uniswap-v2-subgraph

V1 Subgraph: https://github.com/graphprotocol/uniswap-subgraph

Getting an API Key

Please fill out this form if you would like to get an API key.

Using an API Key

You can use an API key by setting it in the x-api-key header, like so:

curl -v --compressed https://api.uniswap.info/v2/tickers -H 'x-api-key: abcd1234'

Segregated data

Note the data returned by the V1 and V2 endpoints is segregated, i.e. there are no endpoints for combined data from both Uniswap V1 and V2.

V1 Documentation

The documentation of the /v1/ endpoints is here.

V2 Documentation

The documentation of the /v2/ endpoints is here.

Deploying the API

The API uses the serverless framework and can easily be deployed to any AWS account, via the yarn sls deploy command.

In order to configure your AWS account as a target, see the serverless docs.

api-deprecated's People

Contributors

moodysalem avatar noahzinsmeister avatar ianlapham avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.