PnL calculator
Endpoints for calculating performance metrics like PnL and monitoring API usage patterns.
Calculate PnL (POST /api/analytics/pnl
)
POST /api/analytics/pnl
)Calculates the Profit and Loss (PnL) for a specific SPL token within a Solana wallet over a defined period, analyzing transaction history.
Request Endpoint: POST /api/analytics/pnl
Request Body: application/json
Success Response (200 OK): Returns detailed PnL data.
Common Errors:
500 Internal Server Error: Calculation failure (e.g., cannot fetch or parse transaction history, RPC errors).
Last updated