Skip to content

This analyzer helps users find the best times to buy Yield Tokens (YT) on Pendle. It simplifies investment decisions by analyzing historical data and market trends, offering insights into optimal entry points and returns. Ideal for all DeFi investors, it provides clear visualizations and automated analysis to boost your yield farming strategy.

License

Notifications You must be signed in to change notification settings

labrinyang/Pendle-YT-Timing-Strategy-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Pendle-YT-Timing-Strategy-Analyzer V6 🌟

GitHub contributors GitHub forks GitHub stars GitHub license GitHub issues GitHub pull requests

GitHub last commit GitHub repo size GitHub top language GitHub language count GitHub code size in bytes

The Pendle-YT-Timing-Strategy-Analyzer V6 is an enhanced tool designed to help DeFi users optimize their Yield Token (YT) investments on Pendle by analyzing real-time trade-by-trade data, predicting limit order completion times, and visualizing counterparty order density and wait times.

🎯 Key Features in V6

  • Real-time Data Analysis: Switch from hourly implied APY calculations to real-time trade-by-trade data, improving the accuracy of the YT fair value curve.
  • Enhanced Limit Order Placement Assistance: Users can input the quantity of YT or PT they want to buy or sell. The system predicts how long it will take for the order to be filled based on market conditions.
  • Counterparty Order Density Visualization: Visualizes the density of opposing orders and estimates wait times, assisting in more efficient order placements.
  • Customizable Indicators: Retains the ability to add custom indicators like moving averages, volatility, RSI, and MACD for detailed strategy customization.
  • Advanced Visualization: Provides more precise visualizations of the fair value curve, market trends, and simulated order outcomes.

🔍 Strategy Overview

The V6 strategy incorporates insights from implied APY and real-time YT price movements. Key updates include:

  • Fair Value Calculation: Uses volume-weighted implied APY to calculate the fair price line for YT, adjusting for holding periods and market sentiment.
  • Optimized Timing: Helps users identify the best purchase or sell times by comparing YT prices with their fair value. Users can balance between high-leverage, short-duration buys and low-leverage, long-duration holds.

For a full breakdown of the strategy, please refer to the YT Timing Strategy Overview.

📦 Prerequisites

  • Python 3.x
  • Required Python libraries: requests, pandas, numpy, datetime, plotly, sklearn, tabulate,matplotlib

📘 Colab Notebook OR 🚀 Installation

You can explore the analysis directly on Google Colab, no setup required:

Open in Colab

Alternatively, you can clone the repository and run the analysis locally:

  1. Clone the repository:
    git clone https://github.com/labrinyang/Pendle-YT-Timing-Strategy-Analyzer.git
  2. Install the required Python libraries:
    pip install -r requirements.txt
  3. Run the notebook: Open the Jupyter Notebook or Python script locally and start your analysis.

💡 Usage

  1. Select Network: Choose the network where the pool is located (Ethereum, Arbitrum, Mantle).
  2. Enter Contract Addresses: Provide the Market and YT contract addresses on the pool's homepage.
  3. Analyze & Simulate: Use the updated tool to analyze your investment strategy or simulate limit orders with real-time data.
  4. Visualize Results: Generate updated visualizations to understand YT price movements, implied APY, and counterparty order distribution.

🤝 Contributing

We welcome contributions from Pendle enthusiasts! In V6, we focus on refining the prediction accuracy and visualization features. If you have ideas for further improvements, we’d love to see your contributions.

How to Contribute

  1. Fork the repository: Click the "Fork" button at the top-right corner of this page.
  2. Create your feature branch:
    git checkout -b feature/AmazingFeature
  3. Commit your changes:
    git commit -m 'Add some AmazingFeature'
  4. Push to the branch:
    git push origin feature/AmazingFeature
  5. Open a pull request: Navigate to your fork on GitHub and click the "Pull Request" button to submit your changes for review.

We look forward to your contributions! ✨

👥 Authors & Contributors

Created by Quant SheepCollaborating with DeFi enthusiasts around the world!

📜 License

This project is licensed under the MIT License.

About

This analyzer helps users find the best times to buy Yield Tokens (YT) on Pendle. It simplifies investment decisions by analyzing historical data and market trends, offering insights into optimal entry points and returns. Ideal for all DeFi investors, it provides clear visualizations and automated analysis to boost your yield farming strategy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published