trade-v2

Full composite pool snapshot (FetchCompositePoolData)

Full composite pool snapshot (FetchCompositePoolData)

get/v2/trade/composite-pool

Request

Query parameters

token0string required
token1string required
fee0 | 500 | 3000 | 10000 required

Response

statusnumber required
messagestring required
errorboolean required

Example response

{
  "status": 200,
  "message": "Response fetched successfully",
  "data": {
    "pool": {
      "fee": 3000,
      "tickSpacing": 60,
      "protocolFees": 100,
      "tradingFees": 3000,
      "creator": "client|000000000000000000000000",
      "token0": "GALA",
      "token1": "GUSDC",
      "name": "GALA/GUSDC",
      "token0Key": "GALA$Unit$none$none",
      "token1Key": "GUSDC$Unit$none$none"
    },
    "currentTradingPrice": {
      "token0": "GALA",
      "token1": "GUSDC",
      "fee": 3000,
      "price": "1.25",
      "sqrtPrice": "1.118",
      "tick": 1234
    },
    "initializedTicks": [
      {
        "pool": "GALA$GUSDC$3000",
        "lexigraphicTickIndex": "0000000000000000000000000000000000000000000000000000000000000000"
      }
    ],
    "reverseInitializedTicks": [
      {
        "pool": "GALA$GUSDC$3000",
        "lexigraphicTickIndex": "0000000000000000000000000000000000000000000000000000000000000000"
      }
    ],
    "positions": [
      {
        "pool": "GALA$GUSDC$3000",
        "lexigraphicTickIndexLow": "0000000000000000000000000000000000000000000000000000000000000000",
        "lexigraphicTickIndexHigh": "0000000000000000000000000000000000000000000000000000000000000001",
        "owner": "client|000000000000000000000000",
        "liquidity": "1000"
      }
    ],
    "activeLiquidity": "1000",
    "token0TradingSymbol": {
      "symbol": "GALA",
      "decimals": 8
    },
    "token1TradingSymbol": {
      "symbol": "GALA",
      "decimals": 8
    },
    "token0LiquidityBalance": {
      "collection": "GALA",
      "category": "Unit",
      "type": "none",
      "additionalKey": "none",
      "quantity": "100",
      "owner": "client|000000000000000000000000"
    },
    "token1LiquidityBalance": {
      "collection": "GALA",
      "category": "Unit",
      "type": "none",
      "additionalKey": "none",
      "quantity": "100",
      "owner": "client|000000000000000000000000"
    },
    "token0ProtocolFeesBalance": {
      "collection": "GALA",
      "category": "Unit",
      "type": "none",
      "additionalKey": "none",
      "quantity": "100",
      "owner": "client|000000000000000000000000"
    },
    "token1ProtocolFeesBalance": {
      "collection": "GALA",
      "category": "Unit",
      "type": "none",
      "additionalKey": "none",
      "quantity": "100",
      "owner": "client|000000000000000000000000"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.