cURL
curl --request GET \ --url https://api.odin.fun/v1/user/{principal}/token/{token}/unrealized_pnl \ --header 'Authorization: Bearer <token>'
{ "data": { "unrealized_quantity": 123, "avg_buy_price": 123, "unrealized_pnl": 123, "display_unrealized_quantity": 123, "display_avg_buy_price": 123, "display_unrealized_pnl": 123, "token_price": 123, "display_token_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