Trader
Get user PnL
Handles GET /v1/users/{user_pubkey}/pnl via get.v1.users.by_user_pubkey.pnl.
get/v1/users/{user_pubkey}/pnl
Request
- Base URLhttps://perp-api.phoenix.trade
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
user_pubkeystring required
User public key (base58 encoded)
Query parameters
resolutionstring required
Resolution/timeframe: 1m, 1d
startTimeinteger
Start time in milliseconds since Unix epoch (max range: 1 year)
endTimeinteger
End time in milliseconds since Unix epoch (max range: 1 year)
limitinteger
Max number of data points (default: 1000, max: 1440)
Response
Changes
No recorded changes to this operation across all 2 revisions of this API.