Add nuanze endpoints - #450
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
@claude review once |
|
@claude review once |
frankinkfnd
left a comment
There was a problem hiding this comment.
For getLeaderboard and getFollowedLeaderboard, maybe we can have a view_as: <SubaccountHex> parameter (same as backend). When provided, the subaccount's current position is returned in another field
| /** | ||
| * Params for `NuanzeClient.getMarketPositions`. Resolves only an active perpetual. | ||
| */ | ||
| export interface GetNuanzeMarketPositionsParams { |
There was a problem hiding this comment.
Can we sort by pnl, size, etc?
| } | ||
|
|
||
| /** | ||
| * Lists open perpetual position legs for the resolved market, ordered by absolute notional |
There was a problem hiding this comment.
What exactly does it mean? Closed position with it's PnL, unrealized PnL and live position? All markets?
There was a problem hiding this comment.
For now open positions from public profiles with highest pnl: https://ink-foundation.slack.com/archives/C0B76GBKDKM/p1786637521020219?thread_ts=1786580079.543059&channel=C0B76GBKDKM&message_ts=1786637521.020219
But feel free to suggest whatever is easiest
| * Gets the deployed OpenAPI 3.1 document. Immutable for a release and cached for 300 seconds | ||
| * with ETag. | ||
| */ | ||
| async getOpenApiDocument(): Promise<GetNuanzeOpenApiDocumentResponse> { |
|
What about market skew? |
|
@claude review |

No description provided.