Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Data Collection

The data collection system handles all external data fetching from Pendle Finance APIs and price providers. It manages market data retrieval, price feeds, swap quotes, and APY calculations across multiple blockchain networks.

Core Architecture

The collector interfaces with Pendle API: https://api-v2.pendle.finance/core/docs

Operates on Arbitrum network. The system handles Arbitrum-specific endpoints and data retrieval.

Active Markets: Fetches all active Pendle markets on Arbitrum. Returns market data with complete metadata including expiry dates, token addresses, and current APY rates.

The method provides comprehensive logging for monitoring data retrieval performance on Arbitrum.

Market Data Methods

Several methods provide market data lookup by token address:

  • Market Address Lookup: Returns the market address for a given PT token
  • Market APR Retrieval: Fetches current APR for a specific market token
  • Expiry Checking: Determines if a market expires within the specified time-to-maturity threshold

Price and Swap Data

Asset Pricing: Retrieves current USD prices for multiple PT-assets on a specific chain. Used for portfolio valuation and yield calculations.

Swap Data: Comprehensive swap information including:

  • Expected output amounts with slippage
  • Price impact calculations
  • Implied APY before and after swap
  • Transaction parameters for execution