cURL
curl --request GET \ --url https://api.odin.fun/v1/user/{principal}/token/{token}/realized_pnl \ --header 'Authorization: Bearer <token>'
{ "data": { "realized_quantity": 123, "avg_price_delta": 123, "realized_pnl": 123, "display_realized_quantity": 123, "display_avg_price_delta": 123, "display_realized_pnl": 123, "avg_sell_price": 123, "avg_buy_price": 123 } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User Realized PnL
Show child attributes