LogoLogo
  • Pangolin Overview
    • Introduction to Pangolin
      • Pangolin V3
        • Concentrated Liquidity
        • Dynamic Fee Mechanism
        • Multiple Fee Tiers
        • Unrestricted Liquidity Provision
        • Non-Fungible Liquidity Positions
        • In-Range Farming
        • Superpools with Dual Rewards
        • Optimized for Avalanche and Beyond
    • Audits
      • Pangolin V2
      • Pangolin V3
    • Tokens & Governance
      • PNG Tokenomics & Metrics
      • PBAR Tokenomics & Metrics
      • PFL Tokenomics & Metrics
      • PSB Tokenomics & Metrics
    • Official Links & Communities
    • Become a Partner
    • Support
    • Roadmap
  • Guides
    • Swapping Tokens
      • Understanding Slippage and Price Impact
    • Providing Liquidity
    • Managing Liquidity Positions
    • Withdrawing Liquidity
    • Earning Rewards
      • Strategies for Maximizing Rewards
    • Understanding SAR
      • Staking SAR
  • Developers
    • V3 Contracts & Integration Reference
      • Avalanche (V2)
      • Hedera
      • Flare
      • Songbird
    • APIs
      • PNG and DEX Values on Avalanche
      • PBAR and DEX Values on Hedera
    • Bug Bounty
    • Token Listing
    • Create A Multisig
    • Honeycomb
Powered by GitBook
LogoLogo

Follow Us

  • Twitter 🔺
  • Twitter ☀️
  • Twitter Ħ
  • Twitter ⋈

Community

  • Discord
  • Telegram
  • Reddit
  • Support

Resources

  • GitHub
  • Medium
  • YouTube
  • Linktree

Policies

Pangolin Exchange © 2023

On this page
  • Development
  • Location
  • Methods
  • TVL
  • Total Volume
  • Total Supply (wei)
  • Total Supply
  • Circulating Supply (wei)
  • Circulating Supply
  • Treasury Supply (wei)
  • Treasury Supply
  • Average Swap Size
  • Average Percentage Reward Rate
  1. Developers
  2. APIs

PNG and DEX Values on Avalanche

PNG & APIs

PreviousAPIsNextPBAR and DEX Values on Hedera

Last updated 1 day ago

Development

is used for a local development server. This is effectively a proxy-service that (nearly) replicates the Cloudflare Worker runtime.

Anyone can develop this repository locally. Fill in account_id in the wrangler.toml file. This value may (and should) be your own personal account_id.

Location

The API is available at https://api.pangolin.exchange

Methods

All methods accept a GET request.

TVL

GET https://api.pangolin.exchange/png/tvl

Try API:

Endpoint: /png/tvl

https://api.pangolin.exchange/png/tvl

25371043.31

Total Volume

GET https://api.pangolin.exchange/png/total-volume

Endpoint: /png/total-volume

https://api.pangolin.exchange/png/total-volume

16386987632.01

Total Supply (wei)

GET https://api.pangolin.exchange/png/total-supply

Endpoint: /png/total-supply

https://api.pangolin.exchange/png/total-supply

230000000000000000000000000

Total Supply

GET https://api.pangolin.exchange/png/total-supply-whole

Endpoint: /png/total-supply-whole

https://api.pangolin.exchange/png/total-supply-whole

230000000

Circulating Supply (wei)

GET https://api.pangolin.exchange/png/circulating-supply

Endpoint: /png/circulating-supply

https://api.pangolin.exchange/png/circulating-supply

138148573463211998848931700

Circulating Supply

GET https://api.pangolin.exchange/png/circulating-supply-whole

Endpoint: /png/circulating-supply-whole

https://api.pangolin.exchange/png/circulating-supply-whole

138148573

Treasury Supply (wei)

GET https://api.pangolin.exchange/png/community-treasury

Endpoint: /png/community-treasury

https://api.pangolin.exchange/png/community-treasury

1999371251788001151068300

Treasury Supply

GET https://api.pangolin.exchange/png/community-treasury-whole

Endpoint: /png/community-treasury-whole

https://api.pangolin.exchange/png/community-treasury-whole

1999371

Average Swap Size

GET https://api.pangolin.exchange/pangolin/transaction-average

Endpoint: /pangolin/transaction-average

https://api.pangolin.exchange/pangolin/transaction-average

1566.68

Average Percentage Reward Rate

GET https://api.pangolin.exchange/pangolin/apr2/:pID

Endpoint: /pangolin/apr2/:pID

Path Parameters

Name
Type
Description

pID*

string[]

{"swapFeeApr":X,"stakingApr":X,"combinedApr":X}

https://api.pangolin.exchange/pangolin/apr2/1

{"swapFeeApr":4,"stakingApr":0,"combinedApr":4}
{"swapFeeApr":0,"stakingApr":0,"combinedApr":0}

Try API:

Try API: (A result of 1 PNG would return the value 1000000000000000000 [18 decimals])

Test API: (A result of 1 PNG would return the value 1)

Try API: (A result of 1 PNG would return the value 1000000000000000000 [18 decimals])

Try API: (A result of 1 PNG would return the value 1)

Try API: (A result of 1 PNG would return the value 1000000000000000000 [18 decimals])

Try API: (A result of 1 PNG would return the value 1)

Try API:

Try API: . (Refer to to find pIDs [pool ids])

Pool ID string from 1 - (eg. 1, ...10,... 100, etc.)

Wrangler
Get the total value locked in USD
Get the total lifetime volume of swaps in USD
Query the total lifetime supply of PNG denominated in wei
Get the total lifetime supply of PNG denominated in PNG
Query the circulating supply of PNG denominated in wei
Query the circulating supply of PNG denominated in PNG
Query the balance of PNG denominated in wei
Query the balance of PNG denominated in PNG
Get the average size of each swap in USD
Get the PNG Reward Rate of the inputted StakingRewards contract address
Snowtrace
poolLenght
Page cover image