Skip to content

Latest commit

 

History

History
138 lines (105 loc) · 4.13 KB

documentation.md

File metadata and controls

138 lines (105 loc) · 4.13 KB

Documentation

All PantherSwap pairs consist of two different tokens. BNB is not a native currency in PantherSwap, and is represented only by WBNB in the pairs.

The canonical WBNB address used by the PantherSwap interface is 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c.

Results are cached for 2 minutes (or 120 seconds).

Returns data for the top ~1000 PantherSwap pairs, sorted by reserves.

Request

GET https://api.pantherswap.info/api/summary

Response

{
  "updated_at": 1234567,              // UNIX timestamp
  "data": {
    "0x..._0x...": {                  // BEP20 token addresses, joined by an underscore
      "price": "...",                 // price denominated in token1/token0
      "base_volume": "...",           // last 24h volume denominated in token0
      "quote_volume": "...",          // last 24h volume denominated in token1
      "liquidity": "...",             // liquidity denominated in USD
      "liquidity_BNB": "..."          // liquidity denominated in BNB
    },
    // ...
  }
}

Returns the tokens in the top ~1000 pairs on PantherSwap, sorted by reserves.

Request

GET https://api.pantherswap.info/api/tokens

Response

{
  "updated_at": 1234567,              // UNIX timestamp
  "data": {
    "0x...": {                        // the address of the BEP20 token
      "name": "...",                  // not necessarily included for BEP20 tokens
      "symbol": "...",                // not necessarily included for BEP20 tokens
      "price": "...",                 // price denominated in USD
      "price_BNB": "...",             // price denominated in BNB
    },
    // ...
  }
}

Returns the token information, based on address.

Request

GET https://api.pantherswap.info/api/tokens/0x1f546ad641b56b86fd9dceac473d1c7a357276b7

Response

{
  "updated_at": 1234567,              // UNIX timestamp
  "data": {
    "name": "...",                    // not necessarily included for BEP20 tokens
    "symbol": "...",                  // not necessarily included for BEP20 tokens
    "price": "...",                   // price denominated in USD
    "price_BNB": "...",               // price denominated in BNB
  }
}

Returns data for the top ~1000 PantherSwap pairs, sorted by reserves.

Request

GET https://api.pantherswap.info/api/pairs

Response

{
  "updated_at": 1234567,              // UNIX timestamp
  "data": {
    "0x..._0x...": {                  // the asset ids of BNB and BEP20 tokens, joined by an underscore
      "pair_address": "0x...",        // pair address
      "base_name": "...",             // token0 name
      "base_symbol": "...",           // token0 symbol
      "base_address": "0x...",        // token0 address
      "quote_name": "...",            // token1 name
      "quote_symbol": "...",          // token1 symbol
      "quote_address": "0x...",       // token1 address
      "price": "...",                 // price denominated in token1/token0
      "base_volume": "...",           // volume denominated in token0
      "quote_volume": "...",          // volume denominated in token1
      "liquidity": "...",             // liquidity denominated in USD
      "liquidity_BNB": "..."          // liquidity denominated in BNB
    },
    // ...
  }
}

Returns stats of PantherSwap exchange.

Request

GET https://api.pantherswap.info/api/stats

Response

{
  "updated_at": 1234567,              // UNIX timestamp
  "data": {
    "total_liquidity_BNB": "...", // total liquidity in BNB
    "total_liquidity_USD": "...", // total liquidity in USD
    "total_volume_BNB": "...", // total volume in BNB
    "total_volume_USD": "...", // total volume in USD
    "volume_BNB": "...", // last 24h volume in BNB
    "volume_USD": "...", // last 24h volume in USD
    "tx_count": 12345, // last 24h tx count
  }
}