> For the complete documentation index, see [llms.txt](https://docs.fyuz.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fyuz.fun/api-reference/users-and-portfolio.md).

# Users & Portfolio

Profiles, leaderboards, portfolio PnL, wallet explorer and trader tiers.

## Public profile

> Stats, badges and points for a wallet.

```json
{"openapi":"3.1.0","info":{"title":"Fyuz API","version":"1.0.0"},"tags":[{"name":"Users & Portfolio","description":"Profiles, leaderboards, portfolio PnL, wallet explorer and trader tiers."}],"servers":[{"url":"https://api.fyuz.fun","description":"Production"}],"paths":{"/users/profile/{address}":{"get":{"tags":["Users & Portfolio"],"summary":"Public profile","description":"Stats, badges and points for a wallet.","operationId":"getProfile","parameters":[{"$ref":"#/components/parameters/address"}],"responses":{"200":{"description":"Profile.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}}},"components":{"parameters":{"address":{"name":"address","in":"path","required":true,"schema":{"type":"string"},"description":"Wallet or token address (hex)."}}}}
```

## Global leaderboard

> Traders ranked by net volume and points.

```json
{"openapi":"3.1.0","info":{"title":"Fyuz API","version":"1.0.0"},"tags":[{"name":"Users & Portfolio","description":"Profiles, leaderboards, portfolio PnL, wallet explorer and trader tiers."}],"servers":[{"url":"https://api.fyuz.fun","description":"Production"}],"paths":{"/users/leaderboard":{"get":{"tags":["Users & Portfolio"],"summary":"Global leaderboard","description":"Traders ranked by net volume and points.","operationId":"leaderboard","responses":{"200":{"description":"Ranked traders.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}}}}
```

## Portfolio & PnL

> Every position a wallet holds or has traded — balance, current value, cost basis, realized + unrealized PnL and ROI, plus portfolio totals. Computed from the wallet's actual on-chain trade history.<br>

```json
{"openapi":"3.1.0","info":{"title":"Fyuz API","version":"1.0.0"},"tags":[{"name":"Users & Portfolio","description":"Profiles, leaderboards, portfolio PnL, wallet explorer and trader tiers."}],"servers":[{"url":"https://api.fyuz.fun","description":"Production"}],"paths":{"/portfolio/{address}":{"get":{"tags":["Users & Portfolio"],"summary":"Portfolio & PnL","description":"Every position a wallet holds or has traded — balance, current value, cost basis, realized + unrealized PnL and ROI, plus portfolio totals. Computed from the wallet's actual on-chain trade history.\n","operationId":"getPortfolio","parameters":[{"$ref":"#/components/parameters/address"}],"responses":{"200":{"description":"Positions and totals.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}}},"components":{"parameters":{"address":{"name":"address","in":"path","required":true,"schema":{"type":"string"},"description":"Wallet or token address (hex)."}}}}
```

## Wallet explorer

> Any wallet's full track record — trades, realized + unrealized PnL, win rate, volume and tokens traded.

```json
{"openapi":"3.1.0","info":{"title":"Fyuz API","version":"1.0.0"},"tags":[{"name":"Users & Portfolio","description":"Profiles, leaderboards, portfolio PnL, wallet explorer and trader tiers."}],"servers":[{"url":"https://api.fyuz.fun","description":"Production"}],"paths":{"/wallet/{address}":{"get":{"tags":["Users & Portfolio"],"summary":"Wallet explorer","description":"Any wallet's full track record — trades, realized + unrealized PnL, win rate, volume and tokens traded.","operationId":"getWallet","parameters":[{"$ref":"#/components/parameters/address"}],"responses":{"200":{"description":"Wallet profile.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}}},"components":{"parameters":{"address":{"name":"address","in":"path","required":true,"schema":{"type":"string"},"description":"Wallet or token address (hex)."}}}}
```

## Trader tier

> Bronze / Silver / Gold / Diamond by lifetime volume.

```json
{"openapi":"3.1.0","info":{"title":"Fyuz API","version":"1.0.0"},"tags":[{"name":"Users & Portfolio","description":"Profiles, leaderboards, portfolio PnL, wallet explorer and trader tiers."}],"servers":[{"url":"https://api.fyuz.fun","description":"Production"}],"paths":{"/tier/{address}":{"get":{"tags":["Users & Portfolio"],"summary":"Trader tier","description":"Bronze / Silver / Gold / Diamond by lifetime volume.","operationId":"getTier","parameters":[{"$ref":"#/components/parameters/address"}],"responses":{"200":{"description":"Tier.","content":{"application/json":{"schema":{"type":"object","properties":{"tier":{"type":"string","enum":["bronze","silver","gold","diamond"]}}}}}}}}}},"components":{"parameters":{"address":{"name":"address","in":"path","required":true,"schema":{"type":"string"},"description":"Wallet or token address (hex)."}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fyuz.fun/api-reference/users-and-portfolio.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
