LFJ Developer Docs
  • Liquidity Book
  • Introduction
  • LB V2.2 Key Changes
  • Guides
    • Swap Tokens
    • Add/Remove Liquidity
    • Tracking Volume
    • Tracking Pool Balances
    • Finding The Best Quote
    • Byte32 Decoding
    • Price From Bin Id
    • Bin Id From Price
    • Finding Liquidity Depth
    • User Balances
  • Concepts
    • Concentrated Liquidity
    • Bin Math
    • Bin Liquidity
    • Swaps
    • Fees
    • Oracle
  • Contracts
    • Interfaces
      • ILBLegacyFactory
      • ILBLegacyToken
      • ILBLegacyPair
      • ILBLegacyRouter
      • ILBFlashLoanCallback
      • IPendingOwnable
      • IJoeFactory
      • IJoePair
      • IJoeRouter01
      • IJoeRouter02
      • IWNATIVE
      • ILBFactory
      • ILBHooks
      • ILBPair
      • ILBRouter
      • ILBToken
    • Libraries
      • Math
        • BitMath
        • Encoded
        • LiquidityConfigurations
        • PackedUint128Math
        • SafeCast
        • SampleMath
        • TreeMath
        • Uint128x128Math
        • Uint256x256Math
      • BinHelper
      • Clone
      • Constants
      • FeeHelper
      • Hooks
      • ImmutableClone
      • JoeLibrary
      • OracleHelper
      • PairParameterHelper
      • PriceHelper
      • ReentrancyGuardUpgradeable
      • TokenHelper
    • LBBaseHooks
    • LBFactory
    • LBPair
    • LBQuoter
    • LBRouter
    • LBToken
  • Deployment Addresses
    • Avalanche C-Chain
    • Fuji Testnet
    • Arbitrum One
    • Binance Smart Chain
    • Binance Smart Chain Testnet
    • Ethereum Mainnet
    • Monad Testnet
  • SDK
    • Introduction
    • Making a Trade
    • Adding Liquidity
    • Removing Liquidity
  • Audits
  • AMM
    • Joe V1 Contracts
    • Joe V1 Audits
  • LFJ DEX API
    • Dex Analytics
    • Pools
    • Rewards
    • User
    • User Lifetime Stats
    • Vaults
    • Models
  • LFJ Aggregator API
    • Default
    • Models
Powered by GitBook
On this page
  1. LFJ DEX API

Pools

PreviousDex AnalyticsNextRewards

List Pools

get
Path parameters
chainstring · enumRequired

An enumeration.

Possible values:
Query parameters
pageSizeinteger · max: 100OptionalDefault: 20
pageNumintegerOptionalDefault: 1
orderByall ofOptionalDefault: volume
undefined · enumOptional

An enumeration.

Possible values:
filterByall ofOptionalDefault: 1d
undefined · enumOptional

An enumeration.

Possible values:
statusall ofOptionalDefault: all
string · enumOptional

An enumeration.

Possible values:
versionall ofOptionalDefault: all
undefined · enumOptional

An enumeration.

Possible values:
excludeLowVolumePoolsbooleanOptionalDefault: true
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /v1/pools/{chain} HTTP/1.1
Host: api.lfj.dev
Accept: */*
[
  {
    "pairAddress": "text",
    "chain": "avalanche",
    "name": "text",
    "status": "main",
    "version": "v2.0",
    "tokenX": {
      "address": "text",
      "name": "text",
      "symbol": "text",
      "decimals": 1,
      "priceUsd": 1,
      "priceNative": "text"
    },
    "tokenY": {
      "address": "text",
      "name": "text",
      "symbol": "text",
      "decimals": 1,
      "priceUsd": 1,
      "priceNative": "text"
    },
    "reserveX": 1,
    "reserveY": 1,
    "lbBinStep": 1,
    "lbBaseFeePct": 1,
    "lbMaxFeePct": 1,
    "activeBinId": 1,
    "liquidityUsd": 1,
    "liquidityNative": "text",
    "liquidityDepthMinus": 1,
    "liquidityDepthPlus": 1,
    "liquidityDepthTokenX": 1,
    "liquidityDepthTokenY": 1,
    "volumeUsd": 1,
    "volumeNative": "text",
    "feesUsd": 1,
    "feesNative": "text",
    "protocolSharePct": 1
  }
]

Get Pool

get
Path parameters
chainstring · enumRequired

An enumeration.

Possible values:
addressstringRequiredExample: 0xe785e0899e7acd50a55f6b517f1f9c46574c9d7c
Query parameters
filterByall ofOptionalDefault: 1d
undefined · enumOptional

An enumeration.

Possible values:
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /v1/pools/{chain}/{address} HTTP/1.1
Host: api.lfj.dev
Accept: */*
{
  "pairAddress": "text",
  "chain": "avalanche",
  "name": "text",
  "status": "main",
  "version": "v2.0",
  "tokenX": {
    "address": "text",
    "name": "text",
    "symbol": "text",
    "decimals": 1,
    "priceUsd": 1,
    "priceNative": "text"
  },
  "tokenY": {
    "address": "text",
    "name": "text",
    "symbol": "text",
    "decimals": 1,
    "priceUsd": 1,
    "priceNative": "text"
  },
  "reserveX": 1,
  "reserveY": 1,
  "lbBinStep": 1,
  "lbBaseFeePct": 1,
  "lbMaxFeePct": 1,
  "activeBinId": 1,
  "liquidityUsd": 1,
  "liquidityNative": "text",
  "liquidityDepthMinus": 1,
  "liquidityDepthPlus": 1,
  "liquidityDepthTokenX": 1,
  "liquidityDepthTokenY": 1,
  "volumeUsd": 1,
  "volumeNative": "text",
  "feesUsd": 1,
  "feesNative": "text",
  "protocolSharePct": 1
}
  • GETList Pools
  • GETGet Pool