/
LE
legend
/
Legend API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 19h ago · Updated 19h ago
View markdown
legend
Legend API
get
Get PnL sparkline for a position
v5
latest
OpenAPI 3.1.0
2026-08-08
241
232
1010.2 KB
app
1
arena
36
attachments
6
bug-reports
1
capital
1
chat
37
clans
29
copy-trading
14
deposits
1
favorites
3
fills
1
following
13
friends
1
notifications
2
paper
1
portfolio
9
positions
8
get
Get my open position for a symbol
get
Get position history for a wallet or copy profile
get
Get per-asset performance aggregates for a wallet
get
Get recent trade outcomes (closed + open) for a wallet
get
Top trending open positions across the network
get
Positioning stats for a symbol (Legend users)
get
Get PnL sparkline for a position
get
Get a shareable position by id
posts
14
price-alerts
3
pusher
2
reports
1
search
4
season
2
telegram-account
2
tokens
3
trade-protection
2
trading
2
trailing-stops
4
transfers
1
user
31
users
1
withdrawals
1
x-account
4
positions
Get PnL sparkline for a position
get
/v1/positions/{positionId}/pnl-sparkline
Path parameters
positionId
string
uuid
required
Response
Successful response
PnlSparklineOutput
required
sparkline
SparklinePoint[]
required