Fetch Drift Exchange Perpetual Futures

Job ID: 38452171

Budget: ₹12,500 – ₹37,500 INR

Here are the instructions for the test task.
Fetch perpetual futures positions from Drift exchange on Solana.
Drift: https://app.drift.trade/
Example address with a perp position: Adw7cMiaZwzdrNSu7dKARNZptmaELn34n9H8mCk1edzB
Fetch the following for each position
- Market (i.e. SOL-PERP, SOL-USD, etc, depending on the exchange)
- Position size
- PnL
- Liquidation price
Conditions
- Can use Driftpy (https://github.com/drift-labs/driftpy) for inspiration but don't use it as a dependency.
- Only use well maintained and popular libraries.
- Use the simplest possible solution for fetching the data.
- Write readable code adhering to best practices.
Find the perp positions on the Solana chain from this address: Adw7cMiaZwzdrNSu7dKARNZptmaELn34n9H8mCk1edzB using python
Related categories: Python Software Architecture Trading Solana