TWAP program on Phoenix
TWAP program on Phoenix

Phoenix
Problem to Solve
Phoenix is the latest and leading on-chain order book on Solana, which has already facilitated over $250 million in trading volume. It also holds the distinction of being the first crankless limit order book DEX. The TWAP (Time-Weighted Average Price) program plays a critical role in any order book by enabling the execution of large orders over a defined timeframe, aiming to achieve an average price that closely aligns with the prevailing market price during that period. Developing a TWAP program for Phoenix will significantly aid in mitigating market impact and reducing slippage when trading substantial asset quantities.
Possible Solution
Proposed solution for implementing a TWAP program on the Phoenix Order book: - Construct an algorithm based on a sample TWAP algorithm, customized to suit the unique features of Phoenix. - Create a user interface (UI) or widget that empowers users to place TWAP orders. This entails inputting details such as the desired USD amount or asset quantity for buying or selling, alongside a designated time interval (period field) for execution.
Resources
- Phoenix Github Repository - https://github.com/Ellipsis-Labs/phoenix-v1 - Sample TWAP Program for DEX Implementation -https://github.com/orbs-network/twap - Phoenix Website and Documentation - https://www.phoenix.trade/
Need some help?