@nadohq/nuanze-client 0.41.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -9
- package/dist/{NuanzeClient-BUjoXpWV.cjs → NuanzeClient-ILfa7B1C.cjs} +25 -28
- package/dist/NuanzeClient-ILfa7B1C.cjs.map +1 -0
- package/dist/NuanzeClient.cjs +1 -1
- package/dist/NuanzeClient.d.cts +19 -22
- package/dist/NuanzeClient.d.cts.map +1 -1
- package/dist/NuanzeClient.d.ts +19 -22
- package/dist/NuanzeClient.d.ts.map +1 -1
- package/dist/NuanzeClient.js +25 -28
- package/dist/NuanzeClient.js.map +1 -1
- package/dist/{NuanzeServerFailureError-DqWaKEMA.d.ts → NuanzeServerFailureError-C2iF5q-P.d.ts} +4 -4
- package/dist/{NuanzeServerFailureError-DqWaKEMA.d.ts.map → NuanzeServerFailureError-C2iF5q-P.d.ts.map} +1 -1
- package/dist/{NuanzeServerFailureError-B9EhXPyW.d.cts → NuanzeServerFailureError-CMeSnmPF.d.cts} +4 -4
- package/dist/{NuanzeServerFailureError-B9EhXPyW.d.cts.map → NuanzeServerFailureError-CMeSnmPF.d.cts.map} +1 -1
- package/dist/{clientModelTypes-A-D7ER-p.d.ts → clientModelTypes-DNPU1Q4B.d.ts} +48 -6
- package/dist/{clientModelTypes-A-D7ER-p.d.ts.map → clientModelTypes-DNPU1Q4B.d.ts.map} +1 -1
- package/dist/{clientModelTypes-BLPA-e3V.d.cts → clientModelTypes-YrD7pXq6.d.cts} +48 -6
- package/dist/{clientModelTypes-BLPA-e3V.d.cts.map → clientModelTypes-YrD7pXq6.d.cts.map} +1 -1
- package/dist/{clientTypes-Du2RLy4W.d.cts → clientTypes-COeQAlKN.d.cts} +51 -12
- package/dist/clientTypes-COeQAlKN.d.cts.map +1 -0
- package/dist/{clientTypes-DdpinbkS.d.ts → clientTypes-CpOcZ6ST.d.ts} +51 -12
- package/dist/clientTypes-CpOcZ6ST.d.ts.map +1 -0
- package/dist/dataMappers.cjs +40 -4
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +14 -6
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +14 -6
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +38 -4
- package/dist/dataMappers.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/{nuanzeErrorCodes-Dh6juim0.d.ts → nuanzeErrorCodes-DMoRcCHK.d.cts} +2 -2
- package/dist/{nuanzeErrorCodes-CWCTWh2k.d.cts.map → nuanzeErrorCodes-DMoRcCHK.d.cts.map} +1 -1
- package/dist/{nuanzeErrorCodes-CWCTWh2k.d.cts → nuanzeErrorCodes-DewKYqCe.d.ts} +2 -2
- package/dist/nuanzeErrorCodes-DewKYqCe.d.ts.map +1 -0
- package/dist/{serverModelTypes-D-vS_7uc.d.ts → serverModelTypes-BJzL4GkE.d.cts} +23 -3
- package/dist/serverModelTypes-BJzL4GkE.d.cts.map +1 -0
- package/dist/{serverModelTypes-DZDxdIzz.d.cts → serverModelTypes-Ch4IifDo.d.ts} +23 -3
- package/dist/serverModelTypes-Ch4IifDo.d.ts.map +1 -0
- package/dist/{serverQueryTypes-e7HWmE8t.d.ts → serverQueryTypes-BDI5rETc.d.ts} +17 -7
- package/dist/serverQueryTypes-BDI5rETc.d.ts.map +1 -0
- package/dist/{serverQueryTypes-BBIFZZ36.d.cts → serverQueryTypes-RBQQXK5Y.d.cts} +17 -7
- package/dist/serverQueryTypes-RBQQXK5Y.d.cts.map +1 -0
- package/dist/types/NuanzeServerFailureError.cjs.map +1 -1
- package/dist/types/NuanzeServerFailureError.d.cts +1 -1
- package/dist/types/NuanzeServerFailureError.d.ts +1 -1
- package/dist/types/NuanzeServerFailureError.js.map +1 -1
- package/dist/types/clientModelTypes.cjs.map +1 -1
- package/dist/types/clientModelTypes.d.cts +2 -2
- package/dist/types/clientModelTypes.d.ts +2 -2
- package/dist/types/clientModelTypes.js.map +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.d.cts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/nuanzeErrorCodes.cjs +1 -1
- package/dist/types/nuanzeErrorCodes.cjs.map +1 -1
- package/dist/types/nuanzeErrorCodes.d.cts +1 -1
- package/dist/types/nuanzeErrorCodes.d.ts +1 -1
- package/dist/types/nuanzeErrorCodes.js +1 -1
- package/dist/types/nuanzeErrorCodes.js.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverQueryTypes.cjs.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverQueryTypes.js.map +1 -1
- package/package.json +3 -3
- package/src/NuanzeClient.ts +36 -29
- package/src/dataMappers.ts +46 -2
- package/src/types/NuanzeServerFailureError.ts +1 -1
- package/src/types/clientModelTypes.ts +47 -4
- package/src/types/clientTypes.ts +51 -9
- package/src/types/nuanzeErrorCodes.ts +1 -1
- package/src/types/serverModelTypes.ts +21 -0
- package/src/types/serverQueryTypes.ts +14 -2
- package/dist/NuanzeClient-BUjoXpWV.cjs.map +0 -1
- package/dist/clientTypes-DdpinbkS.d.ts.map +0 -1
- package/dist/clientTypes-Du2RLy4W.d.cts.map +0 -1
- package/dist/nuanzeErrorCodes-Dh6juim0.d.ts.map +0 -1
- package/dist/serverModelTypes-D-vS_7uc.d.ts.map +0 -1
- package/dist/serverModelTypes-DZDxdIzz.d.cts.map +0 -1
- package/dist/serverQueryTypes-BBIFZZ36.d.cts.map +0 -1
- package/dist/serverQueryTypes-e7HWmE8t.d.ts.map +0 -1
package/dist/NuanzeClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeClient.js","names":[],"sources":["../src/NuanzeClient.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport {\n mapNuanzeCollateralFlowSeriesResponse,\n mapNuanzeCollateralFlowSummaryResponse,\n mapNuanzeCollateralFlowsResponse,\n mapNuanzeFollowedLeaderboardResponse,\n mapNuanzeFundingRatesResponse,\n mapNuanzeLeaderboardResponse,\n mapNuanzeMarketByTickerResponse,\n mapNuanzeMarketCandlesResponse,\n mapNuanzeMarketPositioningResponse,\n mapNuanzeMarketPositionsResponse,\n mapNuanzeMarketTradesResponse,\n mapNuanzeMarketsResponse,\n mapNuanzeNewsResponse,\n mapNuanzeOpenPositionsResponse,\n mapNuanzePlatformSummaryResponse,\n mapNuanzeWalletPnlResponse,\n mapNuanzeWalletPnlSeriesResponse,\n mapNuanzeWalletPositionsResponse,\n mapNuanzeWalletSummaryResponse,\n mapNuanzeWalletTradesResponse,\n} from './dataMappers';\nimport {\n GetNuanzeCollateralFlowSeriesParams,\n GetNuanzeCollateralFlowSeriesResponse,\n GetNuanzeCollateralFlowSummaryParams,\n GetNuanzeCollateralFlowSummaryResponse,\n GetNuanzeCollateralFlowsParams,\n GetNuanzeCollateralFlowsResponse,\n GetNuanzeFollowedLeaderboardParams,\n GetNuanzeFollowedLeaderboardResponse,\n GetNuanzeFundingRatesParams,\n GetNuanzeFundingRatesResponse,\n GetNuanzeLeaderboardParams,\n GetNuanzeLeaderboardResponse,\n GetNuanzeMarketByTickerParams,\n GetNuanzeMarketByTickerResponse,\n GetNuanzeMarketCandlesParams,\n GetNuanzeMarketCandlesResponse,\n GetNuanzeMarketPositioningParams,\n GetNuanzeMarketPositioningResponse,\n GetNuanzeMarketPositionsParams,\n GetNuanzeMarketPositionsResponse,\n GetNuanzeMarketTradesParams,\n GetNuanzeMarketTradesResponse,\n GetNuanzeMarketsParams,\n GetNuanzeMarketsResponse,\n GetNuanzeNewsParams,\n GetNuanzeNewsResponse,\n GetNuanzeOpenPositionsParams,\n GetNuanzeOpenPositionsResponse,\n GetNuanzePlatformSummaryParams,\n GetNuanzePlatformSummaryResponse,\n GetNuanzeWalletPnlParams,\n GetNuanzeWalletPnlResponse,\n GetNuanzeWalletPnlSeriesParams,\n GetNuanzeWalletPnlSeriesResponse,\n GetNuanzeWalletPositionsParams,\n GetNuanzeWalletPositionsResponse,\n GetNuanzeWalletSummaryParams,\n GetNuanzeWalletSummaryResponse,\n GetNuanzeWalletTradesParams,\n GetNuanzeWalletTradesResponse,\n} from './types/clientTypes';\nimport { NuanzeServerFailureError } from './types/NuanzeServerFailureError';\nimport { NuanzeServerMarketPositioningResponse } from './types/serverModelTypes';\nimport {\n NuanzeServerCollateralFlowSeriesResponse,\n NuanzeServerCollateralFlowSummaryResponse,\n NuanzeServerCollateralFlowsResponse,\n NuanzeServerFollowedLeaderboardResponse,\n NuanzeServerFundingRatesResponse,\n NuanzeServerLeaderboardResponse,\n NuanzeServerMarketByTickerResponse,\n NuanzeServerMarketCandlesResponse,\n NuanzeServerMarketPositionsResponse,\n NuanzeServerMarketTradesResponse,\n NuanzeServerMarketsResponse,\n NuanzeServerNewsResponse,\n NuanzeServerOpenPositionsResponse,\n NuanzeServerPlatformSummaryResponse,\n NuanzeServerWalletPnlResponse,\n NuanzeServerWalletPnlSeriesResponse,\n NuanzeServerWalletPositionsResponse,\n NuanzeServerWalletSummaryResponse,\n NuanzeServerWalletTradesResponse,\n isNuanzeServerFailureResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Options for constructing a {@link NuanzeClient}.\n */\nexport interface NuanzeClientOpts {\n /**\n * Base URL of the Nuanze API, including the version segment, e.g. {@link NUANZE_CLIENT_ENDPOINTS}.\n */\n url: string;\n}\n\n/**\n * Client for the Nuanze public analytics API: markets, wallets, trades, candles, collateral flows,\n * and positioning.\n *\n * Read-only and credential-free, so unlike the other service clients it takes no wallet client or\n * linked signer. It also sends no `x-nado-client-type` header: Nuanze is a public API that does not\n * attribute traffic per client, and its `Access-Control-Allow-Headers` does not list the header, so\n * sending it would fail CORS preflight in the browser. Most operations are GET;\n * {@link NuanzeClient.getFollowedLeaderboard} is a non-mutating POST whose body carries a followed\n * set larger than a query string can reliably hold. The API meters a weighted token bucket per\n * client IP and reports its state in the `RateLimit-Limit`, `RateLimit-Remaining`, and\n * `RateLimit-Reset` response headers; add an interceptor on {@link axiosInstance} to observe them.\n */\nexport class NuanzeClient {\n readonly opts: NuanzeClientOpts;\n readonly axiosInstance: AxiosInstance;\n\n constructor(opts: NuanzeClientOpts) {\n this.opts = opts;\n this.axiosInstance = axios.create({\n // Nuanze is public and answers every origin with `Access-Control-Allow-Origin: *`, which\n // browsers reject for credentialed requests.\n withCredentials: false,\n // We have custom logic to validate response status and create an appropriate error\n validateStatus: () => true,\n // Repeatable `productId` must serialize as `productId=1&productId=2` (OpenAPI explode).\n paramsSerializer: { indexes: null },\n });\n }\n\n /**\n * Lists published editorial stories, sorted by `publishedAt` descending then `id` descending.\n * The opaque cursor is exclusive and bound to normalized filters. Raw article ingestion, scoring,\n * queue, and newsdesk fields are excluded.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getNews(\n params: GetNuanzeNewsParams = {},\n ): Promise<GetNuanzeNewsResponse> {\n return mapNuanzeNewsResponse(\n await this.getJson<NuanzeServerNewsResponse>('/news', params),\n );\n }\n\n /**\n * Gets the active market universe, ordered by `productId` ascending. Never truncated, so `count`\n * always equals the length of `markets`. Market metadata refreshes about every five minutes and\n * prices about every minute.\n *\n * @throws {NuanzeServerFailureError} With error code `BAD_REQUEST` if a filter value is not a\n * documented venue or tradability state.\n */\n async getMarkets(\n params: GetNuanzeMarketsParams = {},\n ): Promise<GetNuanzeMarketsResponse> {\n return mapNuanzeMarketsResponse(\n await this.getJson<NuanzeServerMarketsResponse>('/markets', params),\n );\n }\n\n /**\n * Resolves a market by ticker. Lookup is case-insensitive and accepts canonical tickers or\n * legacy source symbols. An explicit unavailable venue returns `MARKET_NOT_FOUND`. With no\n * venue, `strictVenue=true` returns `AMBIGUOUS_MARKET` for multi-venue assets; otherwise the\n * primary venue is used.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or\n * `BAD_REQUEST` on invalid selectors, and `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketByTicker(\n params: GetNuanzeMarketByTickerParams,\n ): Promise<GetNuanzeMarketByTickerResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketByTickerResponse(\n await this.getJson<NuanzeServerMarketByTickerResponse>(\n `/markets/${encodeURIComponent(ticker)}`,\n query,\n ),\n );\n }\n\n /**\n * Lists the latest funding observation per active perpetual market, refreshed about every five\n * minutes.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getFundingRates(\n params: GetNuanzeFundingRatesParams = {},\n ): Promise<GetNuanzeFundingRatesResponse> {\n return mapNuanzeFundingRatesResponse(\n await this.getJson<NuanzeServerFundingRatesResponse>(\n '/funding/rates',\n params,\n ),\n );\n }\n\n /**\n * Gets the account PnL leaderboard. Equity-basis account PnL includes realized and unrealized\n * movement plus funding and is not realized PnL. All-time analytics cost five rate-limit units.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getLeaderboard(\n params: GetNuanzeLeaderboardParams = {},\n ): Promise<GetNuanzeLeaderboardResponse> {\n return mapNuanzeLeaderboardResponse(\n await this.getJson<NuanzeServerLeaderboardResponse>(\n '/leaderboard',\n params,\n ),\n );\n }\n\n /**\n * Gets platform activity summary from five-minute aggregates.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if the window is not a documented value.\n */\n async getPlatformSummary(\n params: GetNuanzePlatformSummaryParams = {},\n ): Promise<GetNuanzePlatformSummaryResponse> {\n return mapNuanzePlatformSummaryResponse(\n await this.getJson<NuanzeServerPlatformSummaryResponse>(\n '/platform/summary',\n params,\n ),\n );\n }\n\n /**\n * Gets leaderboard stats for a set of followed subaccounts. POST rather than GET so the body can\n * carry up to 300 `subaccountHex` values. The response preserves request order. Subaccounts with\n * no data in the window are backfilled with `pnl: null`, `globalRank: null`, zero counts, and an\n * empty `productIds`. Costs five rate-limit units. The response is not cached.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_SUBACCOUNT` if a hex is not 32-byte\n * 0x-prefixed, and `BAD_REQUEST` if the set is empty, exceeds 300, or `timeframe` is not a\n * documented value.\n */\n async getFollowedLeaderboard(\n params: GetNuanzeFollowedLeaderboardParams,\n ): Promise<GetNuanzeFollowedLeaderboardResponse> {\n return mapNuanzeFollowedLeaderboardResponse(\n await this.postJson<NuanzeServerFollowedLeaderboardResponse>(\n '/wallets/leaderboard',\n params,\n ),\n );\n }\n\n /**\n * Gets replica-backed wallet analytics. Without `subaccountName`, latest cumulative values are\n * selected per known subaccount and then summed. The response is a snapshot and does not claim\n * live health, withdrawable collateral, open-order, or signer state.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletSummary(\n params: GetNuanzeWalletSummaryParams,\n ): Promise<GetNuanzeWalletSummaryResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletSummaryResponse(\n await this.getJson<NuanzeServerWalletSummaryResponse>(\n `/wallets/${encodeURIComponent(address)}`,\n query,\n ),\n );\n }\n\n /**\n * Lists at most 500 current replica position rows across all known subaccounts by default. Rows\n * remain per subaccount. Spot rows are excluded unless `includeSpot=true`. This is not an\n * execution-grade live feed.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPositions(\n params: GetNuanzeWalletPositionsParams,\n ): Promise<GetNuanzeWalletPositionsResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPositionsResponse(\n await this.getJson<NuanzeServerWalletPositionsResponse>(\n `/wallets/${encodeURIComponent(address)}/positions`,\n query,\n ),\n );\n }\n\n /**\n * Lists market trades: one taker-side row per match, sorted by `matchedAt` then `id` descending.\n * The exclusive cursor is bound to operation and normalized filters. `from` is inclusive and\n * `to` exclusive. Wallet identity is absent.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,\n * `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid\n * input, and `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketTrades(\n params: GetNuanzeMarketTradesParams,\n ): Promise<GetNuanzeMarketTradesResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketTradesResponse(\n await this.getJson<NuanzeServerMarketTradesResponse>(\n `/markets/${encodeURIComponent(ticker)}/trades`,\n query,\n ),\n );\n }\n\n /**\n * Lists market candles. Source storage is 1h; 4h and 1d are UTC-aligned rollups and missing bars\n * are not interpolated. The newest `limit` matching bars are selected and returned\n * oldest-to-newest, at most 750, with no pagination. A current bucket has `complete=false`.\n *\n * @throws {NuanzeServerFailureError} With `UNSUPPORTED_INTERVAL`, `RANGE_TOO_LARGE`,\n * `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or `BAD_REQUEST` on invalid input, and\n * `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketCandles(\n params: GetNuanzeMarketCandlesParams,\n ): Promise<GetNuanzeMarketCandlesResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketCandlesResponse(\n await this.getJson<NuanzeServerMarketCandlesResponse>(\n `/markets/${encodeURIComponent(ticker)}/candles`,\n query,\n ),\n );\n }\n\n /**\n * Lists wallet-owned maker and taker execution rows, sorted by `matchedAt` then `id` descending.\n * The cursor is exclusive and filter-bound. `from` is inclusive and `to` exclusive.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS`, `INVALID_CURSOR`,\n * `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid input, and\n * `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletTrades(\n params: GetNuanzeWalletTradesParams,\n ): Promise<GetNuanzeWalletTradesResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletTradesResponse(\n await this.getJson<NuanzeServerWalletTradesResponse>(\n `/wallets/${encodeURIComponent(address)}/trades`,\n query,\n ),\n );\n }\n\n /**\n * Gets wallet account PnL. 24h is rolling and uses hourly snapshots with a daily fallback\n * baseline. Longer windows use daily snapshots; `all` starts at earliest coverage. PnL includes\n * realized and unrealized movement plus funding.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPnl(\n params: GetNuanzeWalletPnlParams,\n ): Promise<GetNuanzeWalletPnlResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPnlResponse(\n await this.getJson<NuanzeServerWalletPnlResponse>(\n `/wallets/${encodeURIComponent(address)}/pnl`,\n query,\n ),\n );\n }\n\n /**\n * Gets a wallet account series of at most 1,000 deterministically sampled points ordered by\n * timestamp. Series contain a boundary anchor and a carried-forward request-time tip; synthetic\n * points are identified. Latest buckets may be provisional.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPnlSeries(\n params: GetNuanzeWalletPnlSeriesParams,\n ): Promise<GetNuanzeWalletPnlSeriesResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPnlSeriesResponse(\n await this.getJson<NuanzeServerWalletPnlSeriesResponse>(\n `/wallets/${encodeURIComponent(address)}/pnl/series`,\n query,\n ),\n );\n }\n\n /**\n * Lists public collateral events, sorted by timestamp then `id` descending. Repeated `productId`\n * uses OR semantics. `minUsd` excludes unvalued events; without it unvalued events remain.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getCollateralFlows(\n params: GetNuanzeCollateralFlowsParams = {},\n ): Promise<GetNuanzeCollateralFlowsResponse> {\n return mapNuanzeCollateralFlowsResponse(\n await this.getJson<NuanzeServerCollateralFlowsResponse>('/flows', params),\n );\n }\n\n /**\n * Gets collateral flow aggregates: deposited, withdrawn, net, and gross, with valuation coverage\n * and a prior equal-window comparison. `all` has no prior window.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getCollateralFlowSummary(\n params: GetNuanzeCollateralFlowSummaryParams = {},\n ): Promise<GetNuanzeCollateralFlowSummaryResponse> {\n return mapNuanzeCollateralFlowSummaryResponse(\n await this.getJson<NuanzeServerCollateralFlowSummaryResponse>(\n '/flows/summary',\n params,\n ),\n );\n }\n\n /**\n * Gets collateral flow series of at most 1,000 UTC buckets. Allowed timeframe/bucket pairs are\n * 24h/hour, 7d/hour or day (default hour), 30d/day, and all/day.\n *\n * @throws {NuanzeServerFailureError} With `UNSUPPORTED_BUCKET` or `BAD_REQUEST` when the pair or\n * filters are invalid.\n */\n async getCollateralFlowSeries(\n params: GetNuanzeCollateralFlowSeriesParams = {},\n ): Promise<GetNuanzeCollateralFlowSeriesResponse> {\n return mapNuanzeCollateralFlowSeriesResponse(\n await this.getJson<NuanzeServerCollateralFlowSeriesResponse>(\n '/flows/series',\n params,\n ),\n );\n }\n\n /**\n * Gets privacy-preserving aggregate positioning for an active perpetual. Cross and isolated legs\n * are summed within owner/subaccount/product before direction classification. Every cell requires\n * at least 20 distinct contributing owners. No identity, individual position, entry price, PnL,\n * margin, or leverage fields are returned. This operation costs five rate-limit units.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or\n * `BAD_REQUEST` on invalid input, and `MARKET_NOT_FOUND` when the ticker does not resolve to a\n * perp.\n */\n async getMarketPositioning(\n params: GetNuanzeMarketPositioningParams,\n ): Promise<GetNuanzeMarketPositioningResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketPositioningResponse(\n await this.getJson<NuanzeServerMarketPositioningResponse>(\n `/markets/${encodeURIComponent(ticker)}/positioning`,\n query,\n ),\n );\n }\n\n /**\n * Lists open perpetual position legs for the resolved market. Results default to absolute\n * notional descending and can be ordered by signed unrealized PnL or absolute base amount in\n * either direction. Spot markets are not supported. Legs below $10 absolute notional are excluded.\n * Wallet addresses and signed exact base amounts are returned.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,\n * `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or `BAD_REQUEST` on invalid input, and\n * `MARKET_NOT_FOUND` when the ticker does not resolve to a perp.\n */\n async getMarketPositions(\n params: GetNuanzeMarketPositionsParams,\n ): Promise<GetNuanzeMarketPositionsResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketPositionsResponse(\n await this.getJson<NuanzeServerMarketPositionsResponse>(\n `/markets/${encodeURIComponent(ticker)}/positions`,\n query,\n ),\n );\n }\n\n /**\n * Lists current open perpetual position legs across every market by signed unrealized PnL.\n * Descending returns the largest gainers and ascending returns the largest losers. This is a\n * latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.\n * Each row includes market identity and its source snapshot timestamp. Costs five rate-limit\n * units.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or\n * `BAD_REQUEST` when the query or cursor is invalid.\n */\n async getOpenPositions(\n params: GetNuanzeOpenPositionsParams = {},\n ): Promise<GetNuanzeOpenPositionsResponse> {\n return mapNuanzeOpenPositionsResponse(\n await this.getJson<NuanzeServerOpenPositionsResponse>(\n '/positions',\n params,\n ),\n );\n }\n\n /**\n * Performs a GET against `{baseUrl}{path}` and classifies the status before returning the body.\n */\n private async getJson<T>(path: string, params?: object): Promise<T> {\n return this.requestJson<T>('GET', path, { params });\n }\n\n /**\n * Performs a POST against `{baseUrl}{path}` with a JSON body and classifies the status before\n * returning the response. Used only for the non-mutating followed-leaderboard operation.\n */\n private async postJson<T>(path: string, data: object): Promise<T> {\n return this.requestJson<T>('POST', path, { data });\n }\n\n private async requestJson<T>(\n method: 'GET' | 'POST',\n path: string,\n config: { params?: object; data?: object } = {},\n ): Promise<T> {\n const response = await this.axiosInstance.request<T>({\n method,\n url: `${this.opts.url}${path}`,\n ...config,\n });\n this.checkResponseStatus(response);\n return response.data;\n }\n\n /**\n * Validates the HTTP status before interpreting the body. Nuanze maps every domain failure onto a\n * non-2xx status carrying a failure envelope, so anything else is a transport-level error.\n */\n private checkResponseStatus(response: AxiosResponse<unknown>) {\n if (response.status >= 200 && response.status < 300) {\n return;\n }\n if (isNuanzeServerFailureResponse(response.data)) {\n throw new NuanzeServerFailureError(response.data, response.status);\n }\n throw new Error(\n `Unexpected response from Nuanze: ${response.status} ${response.statusText}. Data: ${JSON.stringify(response.data)}`,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiHA,IAAa,eAAb,MAA0B;CAIxB,YAAY,MAAwB;EAClC,KAAK,OAAO;EACZ,KAAK,gBAAgB,MAAM,OAAO;GAGhC,iBAAiB;GAEjB,sBAAsB;GAEtB,kBAAkB,EAAE,SAAS,KAAK;EACpC,CAAC;CACH;;;;;;;;;CAUA,MAAM,QACJ,SAA8B,CAAC,GACC;EAChC,OAAO,sBACL,MAAM,KAAK,QAAkC,SAAS,MAAM,CAC9D;CACF;;;;;;;;;CAUA,MAAM,WACJ,SAAiC,CAAC,GACC;EACnC,OAAO,yBACL,MAAM,KAAK,QAAqC,YAAY,MAAM,CACpE;CACF;;;;;;;;;;CAWA,MAAM,kBACJ,QAC0C;EAC1C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,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D;CAEA,MAAc,YACZ,QACA,MACA,SAA6C,CAAC,GAClC;EACZ,MAAM,WAAW,MAAM,KAAK,cAAc,QAAW;GACnD;GACA,KAAK,GAAG,KAAK,KAAK,MAAM;GACxB,GAAG;EACL,CAAC;EACD,KAAK,oBAAoB,QAAQ;EACjC,OAAO,SAAS;CAClB;;;;;CAMA,oBAA4B,UAAkC;EAC5D,IAAI,SAAS,UAAU,OAAO,SAAS,SAAS,KAC9C;EAEF,IAAI,8BAA8B,SAAS,IAAI,GAC7C,MAAM,IAAI,yBAAyB,SAAS,MAAM,SAAS,MAAM;EAEnE,MAAM,IAAI,MACR,oCAAoC,SAAS,OAAO,GAAG,SAAS,WAAW,UAAU,KAAK,UAAU,SAAS,IAAI,GACnH;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"NuanzeClient.js","names":[],"sources":["../src/NuanzeClient.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport {\n mapNuanzeCollateralFlowSeriesResponse,\n mapNuanzeCollateralFlowSummaryResponse,\n mapNuanzeCollateralFlowsResponse,\n mapNuanzeFollowedLeaderboardResponse,\n mapNuanzeFundingRatesResponse,\n mapNuanzeLeaderboardResponse,\n mapNuanzeMarketByTickerResponse,\n mapNuanzeMarketCandlesResponse,\n mapNuanzeMarketPositioningResponse,\n mapNuanzeMarketPositionsResponse,\n mapNuanzeMarketTradesResponse,\n mapNuanzeMarketsResponse,\n mapNuanzeNewsResponse,\n mapNuanzeOpenPositionsResponse,\n mapNuanzePlatformSummaryResponse,\n mapNuanzeSubaccountLeaderboardResponse,\n mapNuanzeWalletPnlResponse,\n mapNuanzeWalletPnlSeriesResponse,\n mapNuanzeWalletPositionsResponse,\n mapNuanzeWalletSummaryResponse,\n mapNuanzeWalletTradesResponse,\n} from './dataMappers';\nimport {\n GetNuanzeCollateralFlowSeriesParams,\n GetNuanzeCollateralFlowSeriesResponse,\n GetNuanzeCollateralFlowSummaryParams,\n GetNuanzeCollateralFlowSummaryResponse,\n GetNuanzeCollateralFlowsParams,\n GetNuanzeCollateralFlowsResponse,\n GetNuanzeFollowedLeaderboardParams,\n GetNuanzeFollowedLeaderboardResponse,\n GetNuanzeFundingRatesParams,\n GetNuanzeFundingRatesResponse,\n GetNuanzeLeaderboardParams,\n GetNuanzeLeaderboardResponse,\n GetNuanzeMarketByTickerParams,\n GetNuanzeMarketByTickerResponse,\n GetNuanzeMarketCandlesParams,\n GetNuanzeMarketCandlesResponse,\n GetNuanzeMarketPositioningParams,\n GetNuanzeMarketPositioningResponse,\n GetNuanzeMarketPositionsParams,\n GetNuanzeMarketPositionsResponse,\n GetNuanzeMarketTradesParams,\n GetNuanzeMarketTradesResponse,\n GetNuanzeMarketsParams,\n GetNuanzeMarketsResponse,\n GetNuanzeNewsParams,\n GetNuanzeNewsResponse,\n GetNuanzeOpenPositionsParams,\n GetNuanzeOpenPositionsResponse,\n GetNuanzePlatformSummaryParams,\n GetNuanzePlatformSummaryResponse,\n GetNuanzeSubaccountLeaderboardParams,\n GetNuanzeSubaccountLeaderboardResponse,\n GetNuanzeWalletPnlParams,\n GetNuanzeWalletPnlResponse,\n GetNuanzeWalletPnlSeriesParams,\n GetNuanzeWalletPnlSeriesResponse,\n GetNuanzeWalletPositionsParams,\n GetNuanzeWalletPositionsResponse,\n GetNuanzeWalletSummaryParams,\n GetNuanzeWalletSummaryResponse,\n GetNuanzeWalletTradesParams,\n GetNuanzeWalletTradesResponse,\n} from './types/clientTypes';\nimport { NuanzeServerFailureError } from './types/NuanzeServerFailureError';\nimport { NuanzeServerMarketPositioningResponse } from './types/serverModelTypes';\nimport {\n NuanzeServerCollateralFlowSeriesResponse,\n NuanzeServerCollateralFlowSummaryResponse,\n NuanzeServerCollateralFlowsResponse,\n NuanzeServerFollowedLeaderboardResponse,\n NuanzeServerFundingRatesResponse,\n NuanzeServerLeaderboardResponse,\n NuanzeServerMarketByTickerResponse,\n NuanzeServerMarketCandlesResponse,\n NuanzeServerMarketPositionsResponse,\n NuanzeServerMarketTradesResponse,\n NuanzeServerMarketsResponse,\n NuanzeServerNewsResponse,\n NuanzeServerOpenPositionsResponse,\n NuanzeServerPlatformSummaryResponse,\n NuanzeServerSubaccountLeaderboardResponse,\n NuanzeServerWalletPnlResponse,\n NuanzeServerWalletPnlSeriesResponse,\n NuanzeServerWalletPositionsResponse,\n NuanzeServerWalletSummaryResponse,\n NuanzeServerWalletTradesResponse,\n isNuanzeServerFailureResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Options for constructing a {@link NuanzeClient}.\n */\nexport interface NuanzeClientOpts {\n /**\n * Base URL of the Nuanze API, including the version segment, e.g. {@link NUANZE_CLIENT_ENDPOINTS}.\n */\n url: string;\n}\n\n/**\n * Client for the Nuanze public analytics API: markets, wallets, trades, candles, collateral flows,\n * and positioning.\n *\n * Read-only and credential-free, so unlike the other service clients it takes no wallet client or\n * linked signer. It also sends no `x-nado-client-type` header: Nuanze is a public API that does not\n * attribute traffic per client, and its `Access-Control-Allow-Headers` does not list the header, so\n * sending it would fail CORS preflight in the browser. All operations are GET.\n */\nexport class NuanzeClient {\n readonly opts: NuanzeClientOpts;\n readonly axiosInstance: AxiosInstance;\n\n constructor(opts: NuanzeClientOpts) {\n this.opts = opts;\n this.axiosInstance = axios.create({\n // Nuanze is public and answers every origin with `Access-Control-Allow-Origin: *`, which\n // browsers reject for credentialed requests.\n withCredentials: false,\n // We have custom logic to validate response status and create an appropriate error\n validateStatus: () => true,\n // Repeatable `productId` must serialize as `productId=1&productId=2` (OpenAPI explode).\n paramsSerializer: { indexes: null },\n });\n }\n\n /**\n * Lists published editorial stories, sorted by `publishedAt` descending then `id` descending.\n * The opaque cursor is exclusive and bound to normalized filters. Raw article ingestion, scoring,\n * queue, and newsdesk fields are excluded.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getNews(\n params: GetNuanzeNewsParams = {},\n ): Promise<GetNuanzeNewsResponse> {\n return mapNuanzeNewsResponse(\n await this.getJson<NuanzeServerNewsResponse>('/news', params),\n );\n }\n\n /**\n * Gets the active market universe, ordered by `productId` ascending. Never truncated, so `count`\n * always equals the length of `markets`. Market metadata refreshes about every five minutes and\n * prices about every minute.\n *\n * @throws {NuanzeServerFailureError} With error code `BAD_REQUEST` if a filter value is not a\n * documented venue or tradability state.\n */\n async getMarkets(\n params: GetNuanzeMarketsParams = {},\n ): Promise<GetNuanzeMarketsResponse> {\n return mapNuanzeMarketsResponse(\n await this.getJson<NuanzeServerMarketsResponse>('/markets', params),\n );\n }\n\n /**\n * Resolves a market by ticker. Lookup is case-insensitive and accepts canonical tickers or\n * legacy source symbols. An explicit unavailable venue returns `MARKET_NOT_FOUND`. With no\n * venue, `strictVenue=true` returns `AMBIGUOUS_MARKET` for multi-venue assets; otherwise the\n * primary venue is used.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or\n * `BAD_REQUEST` on invalid selectors, and `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketByTicker(\n params: GetNuanzeMarketByTickerParams,\n ): Promise<GetNuanzeMarketByTickerResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketByTickerResponse(\n await this.getJson<NuanzeServerMarketByTickerResponse>(\n `/markets/${encodeURIComponent(ticker)}`,\n query,\n ),\n );\n }\n\n /**\n * Lists the latest funding observation per active perpetual market, refreshed about every five\n * minutes.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getFundingRates(\n params: GetNuanzeFundingRatesParams = {},\n ): Promise<GetNuanzeFundingRatesResponse> {\n return mapNuanzeFundingRatesResponse(\n await this.getJson<NuanzeServerFundingRatesResponse>(\n '/funding/rates',\n params,\n ),\n );\n }\n\n /**\n * Gets the account PnL leaderboard. Equity-basis account PnL includes realized and unrealized\n * movement plus funding and is not realized PnL.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getLeaderboard(\n params: GetNuanzeLeaderboardParams = {},\n ): Promise<GetNuanzeLeaderboardResponse> {\n return mapNuanzeLeaderboardResponse(\n await this.getJson<NuanzeServerLeaderboardResponse>(\n '/leaderboard',\n params,\n ),\n );\n }\n\n /**\n * Gets the global public leaderboard of username-claimed subaccounts. Results are sorted by\n * equity-basis account PnL descending with nulls last. `globalRank` is independent of the active\n * privacy and trading filters. Pagination uses a filter-bound opaque cursor.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getSubaccountLeaderboard(\n params: GetNuanzeSubaccountLeaderboardParams = {},\n ): Promise<GetNuanzeSubaccountLeaderboardResponse> {\n return mapNuanzeSubaccountLeaderboardResponse(\n await this.getJson<NuanzeServerSubaccountLeaderboardResponse>(\n '/leaderboard/subaccounts',\n params,\n ),\n );\n }\n\n /**\n * Gets platform activity summary from five-minute aggregates.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if the window is not a documented value.\n */\n async getPlatformSummary(\n params: GetNuanzePlatformSummaryParams = {},\n ): Promise<GetNuanzePlatformSummaryResponse> {\n return mapNuanzePlatformSummaryResponse(\n await this.getJson<NuanzeServerPlatformSummaryResponse>(\n '/platform/summary',\n params,\n ),\n );\n }\n\n /**\n * Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted\n * by PnL descending with nulls last. Subaccounts with no PnL in the window are included by\n * default with null PnL/rank, zero counts, and no products.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or\n * `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.\n */\n async getFollowedLeaderboard(\n params: GetNuanzeFollowedLeaderboardParams,\n ): Promise<GetNuanzeFollowedLeaderboardResponse> {\n return mapNuanzeFollowedLeaderboardResponse(\n await this.getJson<NuanzeServerFollowedLeaderboardResponse>(\n '/wallets/leaderboard',\n params,\n ),\n );\n }\n\n /**\n * Gets replica-backed wallet analytics. Without `subaccountName`, latest cumulative values are\n * selected per known subaccount and then summed. The response is a snapshot and does not claim\n * live health, withdrawable collateral, open-order, or signer state.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletSummary(\n params: GetNuanzeWalletSummaryParams,\n ): Promise<GetNuanzeWalletSummaryResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletSummaryResponse(\n await this.getJson<NuanzeServerWalletSummaryResponse>(\n `/wallets/${encodeURIComponent(address)}`,\n query,\n ),\n );\n }\n\n /**\n * Lists at most 500 current replica position rows across all known subaccounts by default. Rows\n * remain per subaccount. Spot rows are excluded unless `includeSpot=true`. This is not an\n * execution-grade live feed.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPositions(\n params: GetNuanzeWalletPositionsParams,\n ): Promise<GetNuanzeWalletPositionsResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPositionsResponse(\n await this.getJson<NuanzeServerWalletPositionsResponse>(\n `/wallets/${encodeURIComponent(address)}/positions`,\n query,\n ),\n );\n }\n\n /**\n * Lists market trades: one taker-side row per match, sorted by `matchedAt` then `id` descending.\n * The exclusive cursor is bound to operation and normalized filters. `from` is inclusive and\n * `to` exclusive. Wallet identity is absent.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,\n * `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid\n * input, and `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketTrades(\n params: GetNuanzeMarketTradesParams,\n ): Promise<GetNuanzeMarketTradesResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketTradesResponse(\n await this.getJson<NuanzeServerMarketTradesResponse>(\n `/markets/${encodeURIComponent(ticker)}/trades`,\n query,\n ),\n );\n }\n\n /**\n * Lists market candles. Source storage is 1h; 4h and 1d are UTC-aligned rollups and missing bars\n * are not interpolated. The newest `limit` matching bars are selected and returned\n * oldest-to-newest, at most 750, with no pagination. A current bucket has `complete=false`.\n *\n * @throws {NuanzeServerFailureError} With `UNSUPPORTED_INTERVAL`, `RANGE_TOO_LARGE`,\n * `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or `BAD_REQUEST` on invalid input, and\n * `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketCandles(\n params: GetNuanzeMarketCandlesParams,\n ): Promise<GetNuanzeMarketCandlesResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketCandlesResponse(\n await this.getJson<NuanzeServerMarketCandlesResponse>(\n `/markets/${encodeURIComponent(ticker)}/candles`,\n query,\n ),\n );\n }\n\n /**\n * Lists wallet-owned maker and taker execution rows, sorted by `matchedAt` then `id` descending.\n * The cursor is exclusive and filter-bound. `from` is inclusive and `to` exclusive.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS`, `INVALID_CURSOR`,\n * `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid input, and\n * `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletTrades(\n params: GetNuanzeWalletTradesParams,\n ): Promise<GetNuanzeWalletTradesResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletTradesResponse(\n await this.getJson<NuanzeServerWalletTradesResponse>(\n `/wallets/${encodeURIComponent(address)}/trades`,\n query,\n ),\n );\n }\n\n /**\n * Gets wallet account PnL. 24h is rolling and uses hourly snapshots with a daily fallback\n * baseline. Longer windows use daily snapshots; `all` starts at earliest coverage. PnL includes\n * realized and unrealized movement plus funding.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPnl(\n params: GetNuanzeWalletPnlParams,\n ): Promise<GetNuanzeWalletPnlResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPnlResponse(\n await this.getJson<NuanzeServerWalletPnlResponse>(\n `/wallets/${encodeURIComponent(address)}/pnl`,\n query,\n ),\n );\n }\n\n /**\n * Gets a wallet account series of at most 1,000 deterministically sampled points ordered by\n * timestamp. Series contain a boundary anchor and a carried-forward request-time tip; synthetic\n * points are identified. Latest buckets may be provisional.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPnlSeries(\n params: GetNuanzeWalletPnlSeriesParams,\n ): Promise<GetNuanzeWalletPnlSeriesResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPnlSeriesResponse(\n await this.getJson<NuanzeServerWalletPnlSeriesResponse>(\n `/wallets/${encodeURIComponent(address)}/pnl/series`,\n query,\n ),\n );\n }\n\n /**\n * Lists public collateral events, sorted by timestamp then `id` descending. Repeated `productId`\n * uses OR semantics. `minUsd` excludes unvalued events; without it unvalued events remain.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getCollateralFlows(\n params: GetNuanzeCollateralFlowsParams = {},\n ): Promise<GetNuanzeCollateralFlowsResponse> {\n return mapNuanzeCollateralFlowsResponse(\n await this.getJson<NuanzeServerCollateralFlowsResponse>('/flows', params),\n );\n }\n\n /**\n * Gets collateral flow aggregates: deposited, withdrawn, net, and gross, with valuation coverage\n * and a prior equal-window comparison. `all` has no prior window.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getCollateralFlowSummary(\n params: GetNuanzeCollateralFlowSummaryParams = {},\n ): Promise<GetNuanzeCollateralFlowSummaryResponse> {\n return mapNuanzeCollateralFlowSummaryResponse(\n await this.getJson<NuanzeServerCollateralFlowSummaryResponse>(\n '/flows/summary',\n params,\n ),\n );\n }\n\n /**\n * Gets collateral flow series of at most 1,000 UTC buckets. Allowed timeframe/bucket pairs are\n * 24h/hour, 7d/hour or day (default hour), 30d/day, and all/day.\n *\n * @throws {NuanzeServerFailureError} With `UNSUPPORTED_BUCKET` or `BAD_REQUEST` when the pair or\n * filters are invalid.\n */\n async getCollateralFlowSeries(\n params: GetNuanzeCollateralFlowSeriesParams = {},\n ): Promise<GetNuanzeCollateralFlowSeriesResponse> {\n return mapNuanzeCollateralFlowSeriesResponse(\n await this.getJson<NuanzeServerCollateralFlowSeriesResponse>(\n '/flows/series',\n params,\n ),\n );\n }\n\n /**\n * Gets privacy-preserving aggregate positioning for an active perpetual. Cross and isolated legs\n * are summed within owner/subaccount/product before direction classification. Every cell requires\n * at least 20 distinct contributing owners. No identity, individual position, entry price, PnL,\n * margin, or leverage fields are returned.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or\n * `BAD_REQUEST` on invalid input, and `MARKET_NOT_FOUND` when the ticker does not resolve to a\n * perp.\n */\n async getMarketPositioning(\n params: GetNuanzeMarketPositioningParams,\n ): Promise<GetNuanzeMarketPositioningResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketPositioningResponse(\n await this.getJson<NuanzeServerMarketPositioningResponse>(\n `/markets/${encodeURIComponent(ticker)}/positioning`,\n query,\n ),\n );\n }\n\n /**\n * Lists open perpetual position legs for the resolved market. Results default to absolute\n * notional descending and can be ordered by signed unrealized PnL or absolute base amount in\n * either direction. Spot markets are not supported. Legs below $10 absolute notional are excluded.\n * Wallet addresses and signed exact base amounts are returned.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,\n * `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or `BAD_REQUEST` on invalid input, and\n * `MARKET_NOT_FOUND` when the ticker does not resolve to a perp.\n */\n async getMarketPositions(\n params: GetNuanzeMarketPositionsParams,\n ): Promise<GetNuanzeMarketPositionsResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketPositionsResponse(\n await this.getJson<NuanzeServerMarketPositionsResponse>(\n `/markets/${encodeURIComponent(ticker)}/positions`,\n query,\n ),\n );\n }\n\n /**\n * Lists current open perpetual position legs across every market by signed unrealized PnL.\n * Descending returns the largest gainers and ascending returns the largest losers. This is a\n * latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.\n * Each row includes market identity and its source snapshot timestamp.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or\n * `BAD_REQUEST` when the query or cursor is invalid.\n */\n async getOpenPositions(\n params: GetNuanzeOpenPositionsParams = {},\n ): Promise<GetNuanzeOpenPositionsResponse> {\n return mapNuanzeOpenPositionsResponse(\n await this.getJson<NuanzeServerOpenPositionsResponse>(\n '/positions',\n params,\n ),\n );\n }\n\n /**\n * Performs a GET against `{baseUrl}{path}` and classifies the status before returning the body.\n */\n private async getJson<T>(path: string, params?: object): Promise<T> {\n return this.requestJson<T>(path, { params });\n }\n\n private async requestJson<T>(\n path: string,\n config: { params?: object } = {},\n ): Promise<T> {\n const response = await this.axiosInstance.request<T>({\n method: 'GET',\n url: `${this.opts.url}${path}`,\n ...config,\n });\n this.checkResponseStatus(response);\n return response.data;\n }\n\n /**\n * Validates the HTTP status before interpreting the body. Nuanze maps every domain failure onto a\n * non-2xx status carrying a failure envelope, so anything else is a transport-level error.\n */\n private checkResponseStatus(response: AxiosResponse<unknown>) {\n if (response.status >= 200 && response.status < 300) {\n return;\n }\n if (isNuanzeServerFailureResponse(response.data)) {\n throw new NuanzeServerFailureError(response.data, response.status);\n }\n throw new Error(\n `Unexpected response from Nuanze: ${response.status} ${response.statusText}. Data: ${JSON.st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F,CACF;CACF;;;;;;;;;;;CAYA,MAAM,qBACJ,QAC6C;EAC7C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAO,mCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,eACvC,KACF,CACF;CACF;;;;;;;;;;;CAYA,MAAM,mBACJ,QAC2C;EAC3C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAO,iCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,aACvC,KACF,CACF;CACF;;;;;;;;;;CAWA,MAAM,iBACJ,SAAuC,CAAC,GACC;EACzC,OAAO,+BACL,MAAM,KAAK,QACT,cACA,MACF,CACF;CACF;;;;CAKA,MAAc,QAAW,MAAc,QAA6B;EAClE,OAAO,KAAK,YAAe,MAAM,EAAE,OAAO,CAAC;CAC7C;CAEA,MAAc,YACZ,MACA,SAA8B,CAAC,GACnB;EACZ,MAAM,WAAW,MAAM,KAAK,cAAc,QAAW;GACnD,QAAQ;GACR,KAAK,GAAG,KAAK,KAAK,MAAM;GACxB,GAAG;EACL,CAAC;EACD,KAAK,oBAAoB,QAAQ;EACjC,OAAO,SAAS;CAClB;;;;;CAMA,oBAA4B,UAAkC;EAC5D,IAAI,SAAS,UAAU,OAAO,SAAS,SAAS,KAC9C;EAEF,IAAI,8BAA8B,SAAS,IAAI,GAC7C,MAAM,IAAI,yBAAyB,SAAS,MAAM,SAAS,MAAM;EAEnE,MAAM,IAAI,MACR,oCAAoC,SAAS,OAAO,GAAG,SAAS,WAAW,UAAU,KAAK,UAAU,SAAS,IAAI,GACnH;CACF;AACF"}
|
package/dist/{NuanzeServerFailureError-DqWaKEMA.d.ts → NuanzeServerFailureError-C2iF5q-P.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as NuanzeErrorCode } from "./nuanzeErrorCodes-
|
|
2
|
-
import { i as NuanzeServerFailureResponse } from "./serverQueryTypes-
|
|
1
|
+
import { n as NuanzeErrorCode } from "./nuanzeErrorCodes-DewKYqCe.js";
|
|
2
|
+
import { i as NuanzeServerFailureResponse } from "./serverQueryTypes-BDI5rETc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/types/NuanzeServerFailureError.d.ts
|
|
5
5
|
/**
|
|
@@ -15,7 +15,7 @@ declare class NuanzeServerFailureError extends Error {
|
|
|
15
15
|
*/
|
|
16
16
|
readonly errorCode: NuanzeErrorCode;
|
|
17
17
|
/**
|
|
18
|
-
* HTTP status of the response, e.g. `404` for `MARKET_NOT_FOUND
|
|
18
|
+
* HTTP status of the response, e.g. `404` for `MARKET_NOT_FOUND`.
|
|
19
19
|
*/
|
|
20
20
|
readonly httpStatus: number;
|
|
21
21
|
/**
|
|
@@ -26,4 +26,4 @@ declare class NuanzeServerFailureError extends Error {
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
export { NuanzeServerFailureError as t };
|
|
29
|
-
//# sourceMappingURL=NuanzeServerFailureError-
|
|
29
|
+
//# sourceMappingURL=NuanzeServerFailureError-C2iF5q-P.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeServerFailureError-
|
|
1
|
+
{"version":3,"file":"NuanzeServerFailureError-C2iF5q-P.d.ts","names":[],"sources":["../src/types/src/types/NuanzeServerFailureError.ts"],"mappings":";;;;;;AAQA;;;cAAa,wBAAA,SAAiC,KAAA;EAAA,SAkBjC,YAAA,EAAc,2BAAA;EAAA;;;;EAAA,SAbhB,SAAA,EAAW,eAAA;EAaT;;;EAAA,SARF,UAAA;EAAA;;;EAAA,SAKA,SAAA;cAGE,YAAA,EAAc,2BAAA,EACvB,UAAA;AAAA"}
|
package/dist/{NuanzeServerFailureError-B9EhXPyW.d.cts → NuanzeServerFailureError-CMeSnmPF.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as NuanzeErrorCode } from "./nuanzeErrorCodes-
|
|
2
|
-
import { i as NuanzeServerFailureResponse } from "./serverQueryTypes-
|
|
1
|
+
import { n as NuanzeErrorCode } from "./nuanzeErrorCodes-DMoRcCHK.cjs";
|
|
2
|
+
import { i as NuanzeServerFailureResponse } from "./serverQueryTypes-RBQQXK5Y.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/types/NuanzeServerFailureError.d.ts
|
|
5
5
|
/**
|
|
@@ -15,7 +15,7 @@ declare class NuanzeServerFailureError extends Error {
|
|
|
15
15
|
*/
|
|
16
16
|
readonly errorCode: NuanzeErrorCode;
|
|
17
17
|
/**
|
|
18
|
-
* HTTP status of the response, e.g. `404` for `MARKET_NOT_FOUND
|
|
18
|
+
* HTTP status of the response, e.g. `404` for `MARKET_NOT_FOUND`.
|
|
19
19
|
*/
|
|
20
20
|
readonly httpStatus: number;
|
|
21
21
|
/**
|
|
@@ -26,4 +26,4 @@ declare class NuanzeServerFailureError extends Error {
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
export { NuanzeServerFailureError as t };
|
|
29
|
-
//# sourceMappingURL=NuanzeServerFailureError-
|
|
29
|
+
//# sourceMappingURL=NuanzeServerFailureError-CMeSnmPF.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeServerFailureError-
|
|
1
|
+
{"version":3,"file":"NuanzeServerFailureError-CMeSnmPF.d.cts","names":[],"sources":["../src/types/src/types/NuanzeServerFailureError.ts"],"mappings":";;;;;;AAQA;;;cAAa,wBAAA,SAAiC,KAAA;EAAA,SAkBjC,YAAA,EAAc,2BAAA;EAAA;;;;EAAA,SAbhB,SAAA,EAAW,eAAA;EAaT;;;EAAA,SARF,UAAA;EAAA;;;EAAA,SAKA,SAAA;cAGE,YAAA,EAAc,2BAAA,EACvB,UAAA;AAAA"}
|
|
@@ -66,7 +66,7 @@ type NuanzePnlWindow = (typeof NUANZE_PNL_WINDOWS)[number];
|
|
|
66
66
|
*/
|
|
67
67
|
declare const NUANZE_LEADERBOARD_TIMEFRAMES: readonly ["24h", "7d", "30d", "all"];
|
|
68
68
|
/**
|
|
69
|
-
* Leaderboard ranking window.
|
|
69
|
+
* Leaderboard ranking window.
|
|
70
70
|
*/
|
|
71
71
|
type NuanzeLeaderboardTimeframe = (typeof NUANZE_LEADERBOARD_TIMEFRAMES)[number];
|
|
72
72
|
/**
|
|
@@ -525,15 +525,18 @@ interface NuanzeMarketDetail extends NuanzeMarket {
|
|
|
525
525
|
componentUpdatedAt: NuanzeMarketComponentUpdatedAt;
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
|
-
* Per-subaccount row from `
|
|
529
|
-
*
|
|
530
|
-
* an empty `productIds`.
|
|
528
|
+
* Per-subaccount row from `GET /wallets/leaderboard`. Untraded followed subaccounts are included
|
|
529
|
+
* by default with null PnL/rank/name fields where unavailable, zero counts, and no products.
|
|
531
530
|
*/
|
|
532
531
|
interface NuanzeFollowedLeaderboardItem {
|
|
533
532
|
/**
|
|
534
533
|
* Lowercase bytes32 subaccount hex (owner + name), the SDK `subaccountToHex` form.
|
|
535
534
|
*/
|
|
536
535
|
subaccountHex: string;
|
|
536
|
+
/** Canonical username, or null when the followed subaccount has not claimed one. */
|
|
537
|
+
username: string | null;
|
|
538
|
+
/** User-facing display name, or null when the followed subaccount has not claimed one. */
|
|
539
|
+
displayName: string | null;
|
|
537
540
|
/**
|
|
538
541
|
* Equity-basis account PnL for the requested timeframe, or null when the subaccount
|
|
539
542
|
* has no data in the window.
|
|
@@ -557,6 +560,41 @@ interface NuanzeFollowedLeaderboardItem {
|
|
|
557
560
|
*/
|
|
558
561
|
globalRank: number | null;
|
|
559
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* Username-claimed subaccount row from `GET /leaderboard/subaccounts`.
|
|
565
|
+
*/
|
|
566
|
+
interface NuanzeSubaccountLeaderboardItem {
|
|
567
|
+
/**
|
|
568
|
+
* Lowercase bytes32 subaccount hex (owner + name), the SDK `subaccountToHex` form.
|
|
569
|
+
*/
|
|
570
|
+
subaccountHex: string;
|
|
571
|
+
/** Canonical username claimed by this subaccount. */
|
|
572
|
+
username: string;
|
|
573
|
+
/** User-facing display name, or null when unavailable. */
|
|
574
|
+
displayName: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* Equity-basis account PnL for the requested timeframe, or null for an untraded subaccount
|
|
577
|
+
* returned when `includeUntraded` is enabled.
|
|
578
|
+
*/
|
|
579
|
+
pnl: BigNumber | null;
|
|
580
|
+
/** Close-derived win count. */
|
|
581
|
+
wins: number;
|
|
582
|
+
/** Close-derived loss count. */
|
|
583
|
+
losses: number;
|
|
584
|
+
/** Win rate, or null when there are no closed trades. */
|
|
585
|
+
winRate: BigNumber | null;
|
|
586
|
+
/** Perp fill count in the window. */
|
|
587
|
+
trades: number;
|
|
588
|
+
/** Traded product IDs, sorted by fill count descending. */
|
|
589
|
+
productIds: number[];
|
|
590
|
+
/** Number of distinct traded products. Equals `productIds.length`. */
|
|
591
|
+
productCount: number;
|
|
592
|
+
/**
|
|
593
|
+
* Rank across all subaccounts for the timeframe, independent of page filters, or null when the
|
|
594
|
+
* subaccount has no PnL in the window.
|
|
595
|
+
*/
|
|
596
|
+
globalRank: number | null;
|
|
597
|
+
}
|
|
560
598
|
/**
|
|
561
599
|
* Leaderboard row. PnL is equity-basis account PnL, not realized PnL.
|
|
562
600
|
*/
|
|
@@ -583,6 +621,10 @@ interface NuanzeLeaderboardItem {
|
|
|
583
621
|
losses: number;
|
|
584
622
|
/** Win rate, or null when there are no closed trades. */
|
|
585
623
|
winRate: BigNumber | null;
|
|
624
|
+
/** Traded product IDs, sorted by fill count descending. */
|
|
625
|
+
productIds: number[];
|
|
626
|
+
/** Number of distinct traded products. Equals `productIds.length`. */
|
|
627
|
+
productCount: number;
|
|
586
628
|
}
|
|
587
629
|
/**
|
|
588
630
|
* Prior-window percentage deltas on the platform summary.
|
|
@@ -928,5 +970,5 @@ interface NuanzeMarketPositioningNotionalBucketResponse extends NuanzeMarketPosi
|
|
|
928
970
|
cells: NuanzeNotionalBucketPositioningCell[];
|
|
929
971
|
}
|
|
930
972
|
//#endregion
|
|
931
|
-
export { NuanzeMarket as $, NuanzeCandleInterval as A, NuanzePositioningTotals as At, NuanzeFlowTimeframe as B, NUANZE_PNL_WINDOWS as C, NuanzeOpenPositionSortDirection as Ct, NUANZE_SOURCE_INTERVALS as D, NuanzePositionSide as Dt, NUANZE_SERIES_METRICS as E, NuanzePnlWindow as Et, NuanzeCoverage as F, NuanzeStockFundamentals as Ft, NuanzeFundamentalsSource as G, NuanzeFundamentalsKeyData as H, NuanzeFlowBucket as I,
|
|
932
|
-
//# sourceMappingURL=clientModelTypes-
|
|
973
|
+
export { NuanzeMarket as $, NuanzeCandleInterval as A, NuanzePositioningTotals as At, NuanzeFlowTimeframe as B, NUANZE_PNL_WINDOWS as C, NuanzeOpenPositionSortDirection as Ct, NUANZE_SOURCE_INTERVALS as D, NuanzePositionSide as Dt, NUANZE_SERIES_METRICS as E, NuanzePnlWindow as Et, NuanzeCoverage as F, NuanzeStockFundamentals as Ft, NuanzeFundamentalsSource as G, NuanzeFundamentalsKeyData as H, NuanzeFlowBucket as I, NuanzeSubaccountLeaderboardItem as It, NuanzeFundingRate as J, NuanzeFundamentalsValuation as K, NuanzeFlowEventType as L, NuanzeTradeSide as Lt, NuanzeCohortPositioningCell as M, NuanzeSeriesPoint as Mt, NuanzeCollateralFlow as N, NuanzeSidePositioningCell as Nt, NUANZE_TRADE_SIDES as O, NuanzePositioningCellBase as Ot, NuanzeCollateralFlowPoint as P, NuanzeSourceInterval as Pt, NuanzeMarginKind as Q, NuanzeFlowEventTypeFilter as R, NuanzeWalletPosition as Rt, NUANZE_PLATFORM_WINDOWS as S, NuanzeOpenPosition as St, NUANZE_POSITION_SIDES as T, NuanzePlatformWindow as Tt, NuanzeFundamentalsPerformance as U, NuanzeFollowedLeaderboardItem as V, NuanzeFundamentalsSocial as W, NuanzeLeaderboardItem as X, NuanzeLatestTicker as Y, NuanzeLeaderboardTimeframe as Z, NUANZE_NEWS_EVENT_TYPES as _, NuanzeNewsSentiment as _t, NUANZE_FLOW_EVENT_TYPES as a, NuanzeMarketPositionSortDirection as at, NUANZE_NOTIONAL_BUCKETS as b, NuanzeNotionalBucket as bt, NUANZE_FUNDAMENTALS_SOURCES as c, NuanzeMarketPositioningNotionalBucketResponse as ct, NUANZE_MARKET_POSITION_SORT_BYS as d, NuanzeMarketTradingStatus as dt, NuanzeMarketComponentUpdatedAt as et, NUANZE_MARKET_POSITION_SORT_DIRECTIONS as f, NuanzeMarketVenue as ft, NUANZE_NEWS_ENTITY_ROLES as g, NuanzeNewsEventType as gt, NUANZE_MIN_POSITION_USDS as h, NuanzeNewsEntityRole as ht, NUANZE_FLOW_BUCKETS as i, NuanzeMarketPositionSortBy as it, NuanzeCohortKey as j, NuanzeSeriesMetric as jt, NuanzeCandle as k, NuanzePositioningGroupBy as kt, NUANZE_LEADERBOARD_TIMEFRAMES as l, NuanzeMarketPositioningSideResponse as lt, NUANZE_MARKET_VENUES as m, NuanzeNewsEntity as mt, NUANZE_COHORT_KEYS as n, NuanzeMarketIdentity as nt, NUANZE_FLOW_EVENT_TYPE_FILTERS as o, NuanzeMarketPositioningBase as ot, NUANZE_MARKET_TRADING_STATUSES as p, NuanzeMinPositionUsd as pt, NuanzeFundingObservation as q, NUANZE_COVERAGES as r, NuanzeMarketPosition as rt, NUANZE_FLOW_TIMEFRAMES as s, NuanzeMarketPositioningCohortResponse as st, NUANZE_CANDLE_INTERVALS as t, NuanzeMarketDetail as tt, NUANZE_MARGIN_KINDS as u, NuanzeMarketTrade as ut, NUANZE_NEWS_SENTIMENTS as v, NuanzeNewsStory as vt, NUANZE_POSITIONING_GROUP_BYS as w, NuanzePlatformDeltas as wt, NUANZE_OPEN_POSITION_SORT_DIRECTIONS as x, NuanzeNotionalBucketPositioningCell as xt, NUANZE_NEWS_TIERS as y, NuanzeNewsTier as yt, NuanzeFlowTags as z, NuanzeWalletTrade as zt };
|
|
974
|
+
//# sourceMappingURL=clientModelTypes-DNPU1Q4B.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientModelTypes-
|
|
1
|
+
{"version":3,"file":"clientModelTypes-DNPU1Q4B.d.ts","names":[],"sources":["../src/types/src/types/clientModelTypes.ts"],"mappings":";;;;;AAMA;;cAAa,oBAAA;;AAAgD;AAK7D;KAAY,iBAAA,WAA4B,oBAAoB;;;AAAA;AAM5D;cAAa,8BAAA;;;AAMH;AAMV;KAAY,yBAAA,WACF,8BAA8B;;;AAAA;cAK3B,sBAAA;;;;KASD,mBAAA,WAA8B,sBAAsB;AAAhE;;;AAAA,cAKa,uBAAA;AALmD;AAKhE;;AALgE,KAqBpD,mBAAA,WAA8B,uBAAuB;;AALvD;AAKV;cAKa,iBAAA;;;AALoD;KAUrD,cAAA,WAAyB,iBAAiB;;;;AALY;cAWrD,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;AALnE;;;AAAA,cAUa,kBAAA;AAV8D;AAK3E;;AAL2E,KAe/D,eAAA,WAA0B,kBAAkB;;AAVW;AAKnE;cAUa,6BAAA;;;AAVgE;KAoBjE,0BAAA,WACF,6BAA6B;;;;cAK1B,uBAAA;AAhBb;;;AAAA,KAqBY,oBAAA,WAA+B,uBAAuB;AAhBxD;AAKV;;AALU,cAqBG,sBAAA;;AAf0B;AAKvC;KAeY,mBAAA,WAA8B,sBAAsB;;;AAfI;cAoBvD,8BAAA;;;;KASD,yBAAA,WACF,8BAA8B;AApBxC;;;AAAA,cAyBa,uBAAA;AAzB6D;AAK1E;;AAL0E,KA8B9D,mBAAA,WAA8B,uBAAuB;;AAzBD;AAKhE;cAyBa,mBAAA;;;AArBH;AAKV;KAsBY,gBAAA,WAA2B,mBAAmB;;;AArBlB;cA0B3B,uBAAA;;;;KAKD,oBAAA,WAA+B,uBAAuB;AArBlE;;;AAAA,cA0Ba,qBAAA;AA1BoD;AAKjE;;AALiE,KA+BrD,kBAAA,WAA6B,qBAAqB;;AA1BH;AAM3D;cAyBa,gBAAA;;;AA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gBAAA;EApDA;EAsDA,IAAA;AAAA;;;;UAMe,mCAAA,SAA4C,2BAA2B;EAlDtF;EAoDA,OAAA;EApDqB;EAsDrB,KAAA,EAAO,yBAAA;AAAA;;;;UAMQ,qCAAA,SAA8C,2BAA2B;EApDxF;EAsDA,OAAA;EAtDuB;EAwDvB,KAAA,EAAO,2BAAA;AAAA;;;;UAMQ,6CAAA,SAAsD,2BAA2B;EAtDhG;EAwDA,OAAA;EAxDoB;EA0DpB,KAAA,EAAO,mCAAA;AAAA"}
|
|
@@ -66,7 +66,7 @@ type NuanzePnlWindow = (typeof NUANZE_PNL_WINDOWS)[number];
|
|
|
66
66
|
*/
|
|
67
67
|
declare const NUANZE_LEADERBOARD_TIMEFRAMES: readonly ["24h", "7d", "30d", "all"];
|
|
68
68
|
/**
|
|
69
|
-
* Leaderboard ranking window.
|
|
69
|
+
* Leaderboard ranking window.
|
|
70
70
|
*/
|
|
71
71
|
type NuanzeLeaderboardTimeframe = (typeof NUANZE_LEADERBOARD_TIMEFRAMES)[number];
|
|
72
72
|
/**
|
|
@@ -525,15 +525,18 @@ interface NuanzeMarketDetail extends NuanzeMarket {
|
|
|
525
525
|
componentUpdatedAt: NuanzeMarketComponentUpdatedAt;
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
|
-
* Per-subaccount row from `
|
|
529
|
-
*
|
|
530
|
-
* an empty `productIds`.
|
|
528
|
+
* Per-subaccount row from `GET /wallets/leaderboard`. Untraded followed subaccounts are included
|
|
529
|
+
* by default with null PnL/rank/name fields where unavailable, zero counts, and no products.
|
|
531
530
|
*/
|
|
532
531
|
interface NuanzeFollowedLeaderboardItem {
|
|
533
532
|
/**
|
|
534
533
|
* Lowercase bytes32 subaccount hex (owner + name), the SDK `subaccountToHex` form.
|
|
535
534
|
*/
|
|
536
535
|
subaccountHex: string;
|
|
536
|
+
/** Canonical username, or null when the followed subaccount has not claimed one. */
|
|
537
|
+
username: string | null;
|
|
538
|
+
/** User-facing display name, or null when the followed subaccount has not claimed one. */
|
|
539
|
+
displayName: string | null;
|
|
537
540
|
/**
|
|
538
541
|
* Equity-basis account PnL for the requested timeframe, or null when the subaccount
|
|
539
542
|
* has no data in the window.
|
|
@@ -557,6 +560,41 @@ interface NuanzeFollowedLeaderboardItem {
|
|
|
557
560
|
*/
|
|
558
561
|
globalRank: number | null;
|
|
559
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* Username-claimed subaccount row from `GET /leaderboard/subaccounts`.
|
|
565
|
+
*/
|
|
566
|
+
interface NuanzeSubaccountLeaderboardItem {
|
|
567
|
+
/**
|
|
568
|
+
* Lowercase bytes32 subaccount hex (owner + name), the SDK `subaccountToHex` form.
|
|
569
|
+
*/
|
|
570
|
+
subaccountHex: string;
|
|
571
|
+
/** Canonical username claimed by this subaccount. */
|
|
572
|
+
username: string;
|
|
573
|
+
/** User-facing display name, or null when unavailable. */
|
|
574
|
+
displayName: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* Equity-basis account PnL for the requested timeframe, or null for an untraded subaccount
|
|
577
|
+
* returned when `includeUntraded` is enabled.
|
|
578
|
+
*/
|
|
579
|
+
pnl: BigNumber | null;
|
|
580
|
+
/** Close-derived win count. */
|
|
581
|
+
wins: number;
|
|
582
|
+
/** Close-derived loss count. */
|
|
583
|
+
losses: number;
|
|
584
|
+
/** Win rate, or null when there are no closed trades. */
|
|
585
|
+
winRate: BigNumber | null;
|
|
586
|
+
/** Perp fill count in the window. */
|
|
587
|
+
trades: number;
|
|
588
|
+
/** Traded product IDs, sorted by fill count descending. */
|
|
589
|
+
productIds: number[];
|
|
590
|
+
/** Number of distinct traded products. Equals `productIds.length`. */
|
|
591
|
+
productCount: number;
|
|
592
|
+
/**
|
|
593
|
+
* Rank across all subaccounts for the timeframe, independent of page filters, or null when the
|
|
594
|
+
* subaccount has no PnL in the window.
|
|
595
|
+
*/
|
|
596
|
+
globalRank: number | null;
|
|
597
|
+
}
|
|
560
598
|
/**
|
|
561
599
|
* Leaderboard row. PnL is equity-basis account PnL, not realized PnL.
|
|
562
600
|
*/
|
|
@@ -583,6 +621,10 @@ interface NuanzeLeaderboardItem {
|
|
|
583
621
|
losses: number;
|
|
584
622
|
/** Win rate, or null when there are no closed trades. */
|
|
585
623
|
winRate: BigNumber | null;
|
|
624
|
+
/** Traded product IDs, sorted by fill count descending. */
|
|
625
|
+
productIds: number[];
|
|
626
|
+
/** Number of distinct traded products. Equals `productIds.length`. */
|
|
627
|
+
productCount: number;
|
|
586
628
|
}
|
|
587
629
|
/**
|
|
588
630
|
* Prior-window percentage deltas on the platform summary.
|
|
@@ -928,5 +970,5 @@ interface NuanzeMarketPositioningNotionalBucketResponse extends NuanzeMarketPosi
|
|
|
928
970
|
cells: NuanzeNotionalBucketPositioningCell[];
|
|
929
971
|
}
|
|
930
972
|
//#endregion
|
|
931
|
-
export { NuanzeMarket as $, NuanzeCandleInterval as A, NuanzePositioningTotals as At, NuanzeFlowTimeframe as B, NUANZE_PNL_WINDOWS as C, NuanzeOpenPositionSortDirection as Ct, NUANZE_SOURCE_INTERVALS as D, NuanzePositionSide as Dt, NUANZE_SERIES_METRICS as E, NuanzePnlWindow as Et, NuanzeCoverage as F, NuanzeStockFundamentals as Ft, NuanzeFundamentalsSource as G, NuanzeFundamentalsKeyData as H, NuanzeFlowBucket as I,
|
|
932
|
-
//# sourceMappingURL=clientModelTypes-
|
|
973
|
+
export { NuanzeMarket as $, NuanzeCandleInterval as A, NuanzePositioningTotals as At, NuanzeFlowTimeframe as B, NUANZE_PNL_WINDOWS as C, NuanzeOpenPositionSortDirection as Ct, NUANZE_SOURCE_INTERVALS as D, NuanzePositionSide as Dt, NUANZE_SERIES_METRICS as E, NuanzePnlWindow as Et, NuanzeCoverage as F, NuanzeStockFundamentals as Ft, NuanzeFundamentalsSource as G, NuanzeFundamentalsKeyData as H, NuanzeFlowBucket as I, NuanzeSubaccountLeaderboardItem as It, NuanzeFundingRate as J, NuanzeFundamentalsValuation as K, NuanzeFlowEventType as L, NuanzeTradeSide as Lt, NuanzeCohortPositioningCell as M, NuanzeSeriesPoint as Mt, NuanzeCollateralFlow as N, NuanzeSidePositioningCell as Nt, NUANZE_TRADE_SIDES as O, NuanzePositioningCellBase as Ot, NuanzeCollateralFlowPoint as P, NuanzeSourceInterval as Pt, NuanzeMarginKind as Q, NuanzeFlowEventTypeFilter as R, NuanzeWalletPosition as Rt, NUANZE_PLATFORM_WINDOWS as S, NuanzeOpenPosition as St, NUANZE_POSITION_SIDES as T, NuanzePlatformWindow as Tt, NuanzeFundamentalsPerformance as U, NuanzeFollowedLeaderboardItem as V, NuanzeFundamentalsSocial as W, NuanzeLeaderboardItem as X, NuanzeLatestTicker as Y, NuanzeLeaderboardTimeframe as Z, NUANZE_NEWS_EVENT_TYPES as _, NuanzeNewsSentiment as _t, NUANZE_FLOW_EVENT_TYPES as a, NuanzeMarketPositionSortDirection as at, NUANZE_NOTIONAL_BUCKETS as b, NuanzeNotionalBucket as bt, NUANZE_FUNDAMENTALS_SOURCES as c, NuanzeMarketPositioningNotionalBucketResponse as ct, NUANZE_MARKET_POSITION_SORT_BYS as d, NuanzeMarketTradingStatus as dt, NuanzeMarketComponentUpdatedAt as et, NUANZE_MARKET_POSITION_SORT_DIRECTIONS as f, NuanzeMarketVenue as ft, NUANZE_NEWS_ENTITY_ROLES as g, NuanzeNewsEventType as gt, NUANZE_MIN_POSITION_USDS as h, NuanzeNewsEntityRole as ht, NUANZE_FLOW_BUCKETS as i, NuanzeMarketPositionSortBy as it, NuanzeCohortKey as j, NuanzeSeriesMetric as jt, NuanzeCandle as k, NuanzePositioningGroupBy as kt, NUANZE_LEADERBOARD_TIMEFRAMES as l, NuanzeMarketPositioningSideResponse as lt, NUANZE_MARKET_VENUES as m, NuanzeNewsEntity as mt, NUANZE_COHORT_KEYS as n, NuanzeMarketIdentity as nt, NUANZE_FLOW_EVENT_TYPE_FILTERS as o, NuanzeMarketPositioningBase as ot, NUANZE_MARKET_TRADING_STATUSES as p, NuanzeMinPositionUsd as pt, NuanzeFundingObservation as q, NUANZE_COVERAGES as r, NuanzeMarketPosition as rt, NUANZE_FLOW_TIMEFRAMES as s, NuanzeMarketPositioningCohortResponse as st, NUANZE_CANDLE_INTERVALS as t, NuanzeMarketDetail as tt, NUANZE_MARGIN_KINDS as u, NuanzeMarketTrade as ut, NUANZE_NEWS_SENTIMENTS as v, NuanzeNewsStory as vt, NUANZE_POSITIONING_GROUP_BYS as w, NuanzePlatformDeltas as wt, NUANZE_OPEN_POSITION_SORT_DIRECTIONS as x, NuanzeNotionalBucketPositioningCell as xt, NUANZE_NEWS_TIERS as y, NuanzeNewsTier as yt, NuanzeFlowTags as z, NuanzeWalletTrade as zt };
|
|
974
|
+
//# sourceMappingURL=clientModelTypes-YrD7pXq6.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientModelTypes-
|
|
1
|
+
{"version":3,"file":"clientModelTypes-YrD7pXq6.d.cts","names":[],"sources":["../src/types/src/types/clientModelTypes.ts"],"mappings":";;;;;AAMA;;cAAa,oBAAA;;AAAgD;AAK7D;KAAY,iBAAA,WAA4B,oBAAoB;;;AAAA;AAM5D;cAAa,8BAAA;;;AAMH;AAMV;KAAY,yBAAA,WACF,8BAA8B;;;AAAA;cAK3B,sBAAA;;;;KASD,mBAAA,WAA8B,sBAAsB;AAAhE;;;AAAA,cAKa,uBAAA;AALmD;AAKhE;;AALgE,KAqBpD,mBAAA,WAA8B,uBAAuB;;AALvD;AAKV;cAKa,iBAAA;;;AALoD;KAUrD,cAAA,WAAyB,iBAAiB;;;;AALY;cAWrD,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;AALnE;;;AAAA,cAUa,kBAAA;AAV8D;AAK3E;;AAL2E,KAe/D,eAAA,WAA0B,kBAAkB;;AAVW;AAKnE;cAUa,6BAAA;;;AAVgE;KAoBjE,0BAAA,WACF,6BAA6B;;;;cAK1B,uBAAA;AAhBb;;;AAAA,KAqBY,oBAAA,WAA+B,uBAAuB;AAhB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AkDb,eAAA,EAAiB,SAAA;EA3CF;EA6Cf,UAAA,EAAY,SAAA;AAAA;;;;UAMG,yBAAA,SAAkC,yBAAyB;EA/B1D;EAiChB,GAAA,EAAK,kBAAA;AAAA;;;;UAMU,2BAAA,SAAoC,yBAAyB;EAjD5E;EAmDA,GAAA,EAAK,eAAA;AAAA;;;;;UAOU,mCAAA,SAA4C,yBAAyB;EAlDlE;EAoDlB,GAAA,EAAK,oBAAA;AAAA;;AAlDoB;AAO3B;;UAkDiB,2BAAA,SAAoC,oBAAA;EA9C7C;EAgDN,uBAAA,EAAyB,oBAAA;EApCR;EAsCjB,oBAAA;EApCqB;EAsCrB,MAAA,EAAQ,uBAAA;EAtDR;EAwDA,gBAAA;EAtDM;EAwDN,gBAAA;EApDA;EAsDA,IAAA;AAAA;;;;UAMe,mCAAA,SAA4C,2BAA2B;EAlDtF;EAoDA,OAAA;EApDqB;EAsDrB,KAAA,EAAO,yBAAA;AAAA;;;;UAMQ,qCAAA,SAA8C,2BAA2B;EApDxF;EAsDA,OAAA;EAtDuB;EAwDvB,KAAA,EAAO,2BAAA;AAAA;;;;UAMQ,6CAAA,SAAsD,2BAA2B;EAtDhG;EAwDA,OAAA;EAxDoB;EA0DpB,KAAA,EAAO,mCAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as NuanzeMarket, A as NuanzeCandleInterval, B as NuanzeFlowTimeframe, Ct as NuanzeOpenPositionSortDirection, Et as NuanzePnlWindow, F as NuanzeCoverage, I as NuanzeFlowBucket,
|
|
1
|
+
import { $ as NuanzeMarket, A as NuanzeCandleInterval, B as NuanzeFlowTimeframe, Ct as NuanzeOpenPositionSortDirection, Et as NuanzePnlWindow, F as NuanzeCoverage, I as NuanzeFlowBucket, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, P as NuanzeCollateralFlowPoint, Pt as NuanzeSourceInterval, R as NuanzeFlowEventTypeFilter, Rt as NuanzeWalletPosition, St as NuanzeOpenPosition, Tt as NuanzePlatformWindow, V as NuanzeFollowedLeaderboardItem, X as NuanzeLeaderboardItem, Z as NuanzeLeaderboardTimeframe, _t as NuanzeNewsSentiment, at as NuanzeMarketPositionSortDirection, ct as NuanzeMarketPositioningNotionalBucketResponse, dt as NuanzeMarketTradingStatus, ft as NuanzeMarketVenue, gt as NuanzeNewsEventType, it as NuanzeMarketPositionSortBy, jt as NuanzeSeriesMetric, k as NuanzeCandle, kt as NuanzePositioningGroupBy, lt as NuanzeMarketPositioningSideResponse, pt as NuanzeMinPositionUsd, rt as NuanzeMarketPosition, st as NuanzeMarketPositioningCohortResponse, tt as NuanzeMarketDetail, ut as NuanzeMarketTrade, vt as NuanzeNewsStory, wt as NuanzePlatformDeltas, zt as NuanzeWalletTrade } from "./clientModelTypes-YrD7pXq6.cjs";
|
|
2
2
|
import BigNumber from "bignumber.js";
|
|
3
3
|
|
|
4
4
|
//#region src/types/clientTypes.d.ts
|
|
@@ -97,7 +97,7 @@ interface GetNuanzeFundingRatesResponse {
|
|
|
97
97
|
* Params for `NuanzeClient.getLeaderboard`.
|
|
98
98
|
*/
|
|
99
99
|
interface GetNuanzeLeaderboardParams {
|
|
100
|
-
/** Ranking window, default `30d`.
|
|
100
|
+
/** Ranking window, default `30d`. */
|
|
101
101
|
timeframe?: NuanzeLeaderboardTimeframe;
|
|
102
102
|
/** Page size, 1-200, default 100. */
|
|
103
103
|
limit?: number;
|
|
@@ -121,18 +121,57 @@ interface GetNuanzeLeaderboardResponse {
|
|
|
121
121
|
/** When the response was generated, as a UTC ISO 8601 string. */
|
|
122
122
|
asOf: string;
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Params for `NuanzeClient.getSubaccountLeaderboard`.
|
|
126
|
+
*/
|
|
127
|
+
interface GetNuanzeSubaccountLeaderboardParams {
|
|
128
|
+
/** Ranking window, default `30d`. */
|
|
129
|
+
timeframe?: NuanzeLeaderboardTimeframe;
|
|
130
|
+
/** Page size, 1-200, default 100. */
|
|
131
|
+
limit?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Opaque cursor from the previous page. It is bound to the normalized filters and must be
|
|
134
|
+
* returned unchanged.
|
|
135
|
+
*/
|
|
136
|
+
cursor?: string;
|
|
137
|
+
/** Include subaccounts with Private Mode enabled, default false. */
|
|
138
|
+
includePrivate?: boolean;
|
|
139
|
+
/** Include subaccounts with no PnL in the requested window, default false. */
|
|
140
|
+
includeUntraded?: boolean;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Response of `NuanzeClient.getSubaccountLeaderboard`.
|
|
144
|
+
*/
|
|
145
|
+
interface GetNuanzeSubaccountLeaderboardResponse {
|
|
146
|
+
/** Echoed timeframe. */
|
|
147
|
+
timeframe: NuanzeLeaderboardTimeframe;
|
|
148
|
+
/** Total username-claimed subaccounts matching the active filters. */
|
|
149
|
+
totalCount: number;
|
|
150
|
+
/** Ranked rows for this page. */
|
|
151
|
+
items: NuanzeSubaccountLeaderboardItem[];
|
|
152
|
+
/** Opaque cursor for the next page, or null when this is the final page. */
|
|
153
|
+
nextCursor: string | null;
|
|
154
|
+
/** When the response was generated, as a UTC ISO 8601 string. */
|
|
155
|
+
asOf: string;
|
|
156
|
+
}
|
|
124
157
|
/**
|
|
125
158
|
* Params for `NuanzeClient.getFollowedLeaderboard`. `timeframe` is required and applies to
|
|
126
159
|
* every per-subaccount figure.
|
|
127
160
|
*/
|
|
128
161
|
interface GetNuanzeFollowedLeaderboardParams {
|
|
129
|
-
/**
|
|
130
|
-
|
|
131
|
-
* normalized to lowercase. 1-300 items; the response preserves this order.
|
|
132
|
-
*/
|
|
133
|
-
subaccounts: string[];
|
|
162
|
+
/** Username whose active follow graph should be ranked. */
|
|
163
|
+
username: string;
|
|
134
164
|
/** Ranking window for every per-subaccount figure. */
|
|
135
165
|
timeframe: NuanzeLeaderboardTimeframe;
|
|
166
|
+
/** Include followed subaccounts with no PnL in the requested window, default true. */
|
|
167
|
+
includeUntraded?: boolean;
|
|
168
|
+
/** Page size, 1-200, default 100. */
|
|
169
|
+
limit?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Opaque cursor from the previous page. It is bound to the username and normalized filters and
|
|
172
|
+
* must be returned unchanged.
|
|
173
|
+
*/
|
|
174
|
+
cursor?: string;
|
|
136
175
|
}
|
|
137
176
|
/**
|
|
138
177
|
* Response of `NuanzeClient.getFollowedLeaderboard`.
|
|
@@ -140,10 +179,10 @@ interface GetNuanzeFollowedLeaderboardParams {
|
|
|
140
179
|
interface GetNuanzeFollowedLeaderboardResponse {
|
|
141
180
|
/** Echoed timeframe. */
|
|
142
181
|
timeframe: NuanzeLeaderboardTimeframe;
|
|
143
|
-
/**
|
|
182
|
+
/** Actively followed subaccounts, sorted by PnL descending with nulls last. */
|
|
144
183
|
items: NuanzeFollowedLeaderboardItem[];
|
|
145
|
-
/**
|
|
146
|
-
|
|
184
|
+
/** Opaque cursor for the next page, or null when this is the final page. */
|
|
185
|
+
nextCursor: string | null;
|
|
147
186
|
/** When the response was generated, as a UTC ISO 8601 string. */
|
|
148
187
|
asOf: string;
|
|
149
188
|
}
|
|
@@ -638,5 +677,5 @@ interface GetNuanzeOpenPositionsResponse {
|
|
|
638
677
|
asOf: string;
|
|
639
678
|
}
|
|
640
679
|
//#endregion
|
|
641
|
-
export { GetNuanzePlatformSummaryResponse as A,
|
|
642
|
-
//# sourceMappingURL=clientTypes-
|
|
680
|
+
export { GetNuanzePlatformSummaryResponse as A, GetNuanzeWalletSummaryResponse as B, GetNuanzeMarketsParams as C, GetNuanzeOpenPositionsParams as D, GetNuanzeNewsResponse as E, GetNuanzeWalletPnlSeriesParams as F, GetNuanzeWalletTradesResponse as H, GetNuanzeWalletPnlSeriesResponse as I, GetNuanzeWalletPositionsParams as L, GetNuanzeSubaccountLeaderboardResponse as M, GetNuanzeWalletPnlParams as N, GetNuanzeOpenPositionsResponse as O, GetNuanzeWalletPnlResponse as P, GetNuanzeWalletPositionsResponse as R, GetNuanzeMarketTradesResponse as S, GetNuanzeNewsParams as T, GetNuanzeWalletTradesParams as V, GetNuanzeMarketPositioningParams as _, GetNuanzeCollateralFlowsParams as a, GetNuanzeMarketPositionsResponse as b, GetNuanzeFollowedLeaderboardResponse as c, GetNuanzeLeaderboardParams as d, GetNuanzeLeaderboardResponse as f, GetNuanzeMarketCandlesResponse as g, GetNuanzeMarketCandlesParams as h, GetNuanzeCollateralFlowSummaryResponse as i, GetNuanzeSubaccountLeaderboardParams as j, GetNuanzePlatformSummaryParams as k, GetNuanzeFundingRatesParams as l, GetNuanzeMarketByTickerResponse as m, GetNuanzeCollateralFlowSeriesResponse as n, GetNuanzeCollateralFlowsResponse as o, GetNuanzeMarketByTickerParams as p, GetNuanzeCollateralFlowSummaryParams as r, GetNuanzeFollowedLeaderboardParams as s, GetNuanzeCollateralFlowSeriesParams as t, GetNuanzeFundingRatesResponse as u, GetNuanzeMarketPositioningResponse as v, GetNuanzeMarketsResponse as w, GetNuanzeMarketTradesParams as x, GetNuanzeMarketPositionsParams as y, GetNuanzeWalletSummaryParams as z };
|
|
681
|
+
//# sourceMappingURL=clientTypes-COeQAlKN.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientTypes-COeQAlKN.d.cts","names":[],"sources":["../src/types/src/types/clientTypes.ts"],"mappings":";;;;;;AA8CA;UAAiB,sBAAA;;EAEf,KAAA,GAAQ,iBAAA;EAAR;EAEA,aAAA,GAAgB,yBAAyB;EAAzC;EAEA,MAAA;AAAA;;AAAM;AAMR;UAAiB,wBAAA;;;;;EAKf,OAAA,EAAS,YAAY;EAIrB;EAFA,KAAA;EAEI;EAAJ,IAAA;AAAA;;;;UAMe,mBAAA;EAIH;EAFZ,KAAA;EAIY;EAFZ,SAAA,GAAY,mBAAA;EAMZ;EAJA,SAAA,GAAY,mBAAmB;EAIzB;EAFN,YAAA;EAQoC;EANpC,MAAA;AAAA;;;;UAMe,qBAAA;EAMX;EAJJ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