@nadohq/nuanze-client 0.42.0 → 0.42.1
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/dist/{NuanzeClient-ILfa7B1C.cjs → NuanzeClient-CEmOugzW.cjs} +5 -3
- package/dist/NuanzeClient-CEmOugzW.cjs.map +1 -0
- package/dist/NuanzeClient.cjs +1 -1
- package/dist/NuanzeClient.d.cts +5 -3
- package/dist/NuanzeClient.d.cts.map +1 -1
- package/dist/NuanzeClient.d.ts +5 -3
- package/dist/NuanzeClient.d.ts.map +1 -1
- package/dist/NuanzeClient.js +4 -2
- package/dist/NuanzeClient.js.map +1 -1
- package/dist/{clientTypes-COeQAlKN.d.cts → clientTypes-PhICTa52.d.cts} +6 -2
- package/dist/clientTypes-PhICTa52.d.cts.map +1 -0
- package/dist/{clientTypes-CpOcZ6ST.d.ts → clientTypes-t9TgQnqp.d.ts} +6 -2
- package/dist/clientTypes-t9TgQnqp.d.ts.map +1 -0
- package/dist/dataMappers.cjs +1 -1
- package/dist/dataMappers.d.cts +1 -1
- package/dist/dataMappers.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types/clientTypes.d.cts +1 -1
- package/dist/types/clientTypes.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/NuanzeClient.ts +4 -2
- package/src/types/clientTypes.ts +5 -1
- package/dist/NuanzeClient-ILfa7B1C.cjs.map +0 -1
- package/dist/clientTypes-COeQAlKN.d.cts.map +0 -1
- package/dist/clientTypes-CpOcZ6ST.d.ts.map +0 -1
|
@@ -119,7 +119,8 @@ var NuanzeClient = class {
|
|
|
119
119
|
/**
|
|
120
120
|
* Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted
|
|
121
121
|
* by PnL descending with nulls last. Subaccounts with no PnL in the window are included by
|
|
122
|
-
* default with null PnL/rank, zero counts, and no products.
|
|
122
|
+
* default with null PnL/rank, zero counts, and no products. Private subaccounts are excluded
|
|
123
|
+
* unless `includePrivate=true`.
|
|
123
124
|
*
|
|
124
125
|
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or
|
|
125
126
|
* `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.
|
|
@@ -274,7 +275,8 @@ var NuanzeClient = class {
|
|
|
274
275
|
* Lists current open perpetual position legs across every market by signed unrealized PnL.
|
|
275
276
|
* Descending returns the largest gainers and ascending returns the largest losers. This is a
|
|
276
277
|
* latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.
|
|
277
|
-
*
|
|
278
|
+
* Private subaccounts are excluded unless `includePrivate=true`. Each row includes market
|
|
279
|
+
* identity and its source snapshot timestamp.
|
|
278
280
|
*
|
|
279
281
|
* @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or
|
|
280
282
|
* `BAD_REQUEST` when the query or cursor is invalid.
|
|
@@ -321,4 +323,4 @@ Object.defineProperty(exports, "__toESM", {
|
|
|
321
323
|
}
|
|
322
324
|
});
|
|
323
325
|
|
|
324
|
-
//# sourceMappingURL=NuanzeClient-
|
|
326
|
+
//# sourceMappingURL=NuanzeClient-CEmOugzW.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NuanzeClient-CEmOugzW.cjs","names":["mapNuanzeNewsResponse","mapNuanzeMarketsResponse","mapNuanzeMarketByTickerResponse","mapNuanzeFundingRatesResponse","mapNuanzeLeaderboardResponse","mapNuanzeSubaccountLeaderboardResponse","mapNuanzePlatformSummaryResponse","mapNuanzeFollowedLeaderboardResponse","mapNuanzeWalletSummaryResponse","mapNuanzeWalletPositionsResponse","mapNuanzeMarketTradesResponse","mapNuanzeMarketCandlesResponse","mapNuanzeWalletTradesResponse","mapNuanzeWalletPnlResponse","mapNuanzeWalletPnlSeriesResponse","mapNuanzeCollateralFlowsResponse","mapNuanzeCollateralFlowSummaryResponse","mapNuanzeCollateralFlowSeriesResponse","mapNuanzeMarketPositioningResponse","mapNuanzeMarketPositionsResponse","mapNuanzeOpenPositionsResponse","isNuanzeServerFailureResponse","NuanzeServerFailureError"],"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. Private subaccounts are excluded\n * unless `includePrivate=true`.\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 * Private subaccounts are excluded unless `includePrivate=true`. Each row includes market\n * 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.stringify(response.data)}`,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA,IAAa,eAAb,MAA0B;CAIxB,YAAY,MAAwB;EAClC,KAAK,OAAO;EACZ,KAAK,gBAAgB,MAAA,QAAM,OAAO;GAGhC,iBAAiB;GAEjB,sBAAsB;GAEtB,kBAAkB,EAAE,SAAS,KAAK;EACpC,CAAC;CACH;;;;;;;;;CAUA,MAAM,QACJ,SAA8B,CAA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B,OAAOC,oBAAAA,mCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,eACvC,KACF,CACF;CACF;;;;;;;;;;;CAYA,MAAM,mBACJ,QAC2C;EAC3C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAOC,oBAAAA,iCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,aACvC,KACF,CACF;CACF;;;;;;;;;;;CAYA,MAAM,iBACJ,SAAuC,CAAC,GACC;EACzC,OAAOC,oBAAAA,+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,IAAIC,+BAAAA,8BAA8B,SAAS,IAAI,GAC7C,MAAM,IAAIC,uCAAAA,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/NuanzeClient.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_NuanzeClient = require("./NuanzeClient-
|
|
2
|
+
const require_NuanzeClient = require("./NuanzeClient-CEmOugzW.cjs");
|
|
3
3
|
require("./dataMappers.cjs");
|
|
4
4
|
exports.NuanzeClient = require_NuanzeClient.NuanzeClient;
|
package/dist/NuanzeClient.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-
|
|
1
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-PhICTa52.cjs";
|
|
2
2
|
import { AxiosInstance } from "axios";
|
|
3
3
|
|
|
4
4
|
//#region src/NuanzeClient.d.ts
|
|
@@ -84,7 +84,8 @@ declare class NuanzeClient {
|
|
|
84
84
|
/**
|
|
85
85
|
* Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted
|
|
86
86
|
* by PnL descending with nulls last. Subaccounts with no PnL in the window are included by
|
|
87
|
-
* default with null PnL/rank, zero counts, and no products.
|
|
87
|
+
* default with null PnL/rank, zero counts, and no products. Private subaccounts are excluded
|
|
88
|
+
* unless `includePrivate=true`.
|
|
88
89
|
*
|
|
89
90
|
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or
|
|
90
91
|
* `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.
|
|
@@ -204,7 +205,8 @@ declare class NuanzeClient {
|
|
|
204
205
|
* Lists current open perpetual position legs across every market by signed unrealized PnL.
|
|
205
206
|
* Descending returns the largest gainers and ascending returns the largest losers. This is a
|
|
206
207
|
* latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.
|
|
207
|
-
*
|
|
208
|
+
* Private subaccounts are excluded unless `includePrivate=true`. Each row includes market
|
|
209
|
+
* identity and its source snapshot timestamp.
|
|
208
210
|
*
|
|
209
211
|
* @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or
|
|
210
212
|
* `BAD_REQUEST` when the query or cursor is invalid.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeClient.d.cts","names":[],"sources":["../src/src/NuanzeClient.ts"],"mappings":";;;;;;AAiGA;UAAiB,gBAAA;;;AAIZ;EAAH,GAAG;AAAA;;;;;;;;;;cAYQ,YAAA;EAAA,SACF,IAAA,EAAM,gBAAA;EAAA,SACN,aAAA,EAAe,aAAA;cAEZ,IAAA,EAAM,gBAAA;EAyER;;;;;;;;EApDJ,OAAA,CACJ,MAAA,GAAQ,mBAAA,GACP,OAAA,CAAQ,qBAAA;EAsGD;;;;;;;;EAxFJ,UAAA,CACJ,MAAA,GAAQ,sBAAA,GACP,OAAA,CAAQ,wBAAA;
|
|
1
|
+
{"version":3,"file":"NuanzeClient.d.cts","names":[],"sources":["../src/src/NuanzeClient.ts"],"mappings":";;;;;;AAiGA;UAAiB,gBAAA;;;AAIZ;EAAH,GAAG;AAAA;;;;;;;;;;cAYQ,YAAA;EAAA,SACF,IAAA,EAAM,gBAAA;EAAA,SACN,aAAA,EAAe,aAAA;cAEZ,IAAA,EAAM,gBAAA;EAyER;;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BAAA,CACJ,MAAA,GAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EADT;;;;;;EAaI,wBAAA,CACJ,MAAA,GAAQ,oCAAA,GACP,OAAA,CAAQ,sCAAA;EAAA;;;;;;;EAgBL,uBAAA,CACJ,MAAA,GAAQ,mCAAA,GACP,OAAA,CAAQ,qCAAA;EAoBT;;;;;;;;;;EADI,oBAAA,CACJ,MAAA,EAAQ,gCAAA,GACP,OAAA,CAAQ,kCAAA;EA4CR;;;;;;AAiCwB;;;;EAzDrB,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;;;;;;;;;;;EAoBL,gBAAA,CACJ,MAAA,GAAQ,4BAAA,GACP,OAAA,CAAQ,8BAAA;;;;UAYG,OAAA;EAAA,QAIA,WAAA;;;;;UAiBN,mBAAA;AAAA"}
|
package/dist/NuanzeClient.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-
|
|
1
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-t9TgQnqp.js";
|
|
2
2
|
import { AxiosInstance } from "axios";
|
|
3
3
|
|
|
4
4
|
//#region src/NuanzeClient.d.ts
|
|
@@ -84,7 +84,8 @@ declare class NuanzeClient {
|
|
|
84
84
|
/**
|
|
85
85
|
* Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted
|
|
86
86
|
* by PnL descending with nulls last. Subaccounts with no PnL in the window are included by
|
|
87
|
-
* default with null PnL/rank, zero counts, and no products.
|
|
87
|
+
* default with null PnL/rank, zero counts, and no products. Private subaccounts are excluded
|
|
88
|
+
* unless `includePrivate=true`.
|
|
88
89
|
*
|
|
89
90
|
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or
|
|
90
91
|
* `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.
|
|
@@ -204,7 +205,8 @@ declare class NuanzeClient {
|
|
|
204
205
|
* Lists current open perpetual position legs across every market by signed unrealized PnL.
|
|
205
206
|
* Descending returns the largest gainers and ascending returns the largest losers. This is a
|
|
206
207
|
* latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.
|
|
207
|
-
*
|
|
208
|
+
* Private subaccounts are excluded unless `includePrivate=true`. Each row includes market
|
|
209
|
+
* identity and its source snapshot timestamp.
|
|
208
210
|
*
|
|
209
211
|
* @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or
|
|
210
212
|
* `BAD_REQUEST` when the query or cursor is invalid.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeClient.d.ts","names":[],"sources":["../src/src/NuanzeClient.ts"],"mappings":";;;;;;AAiGA;UAAiB,gBAAA;;;AAIZ;EAAH,GAAG;AA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AAQ,8BAAA;EA7GR;;;;;;;;EA+HG,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EA/FT;;;;;;;;;EAkHI,eAAA,CACJ,MAAA,EAAQ,2BAAA,GACP,OAAA,CAAQ,6BAAA;EAjFT;;;;;;;;;EAoGI,gBAAA,CACJ,MAAA,EAAQ,4BAAA,GACP,OAAA,CAAQ,8BAAA;EA/DT;;;;;;;;EAiFI,eAAA,CACJ,MAAA,EAAQ,2BAAA,GACP,OAAA,CAAQ,6BAAA;EA1CD;;;;;;;;EA4DJ,YAAA,CACJ,MAAA,EAAQ,wBAAA,GACP,OAAA,CAAQ,0BAAA;EAtBL;;;;;;;;EAwCA,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EApBA;;;;;;;EAqCL,kBAAA,CACJ,MAAA,GAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EADT;;;;;;EAaI,wBAAA,CACJ,MAAA,GAAQ,oCAAA,GACP,OAAA,CAAQ,sCAAA;EAAA;;;;;;;EAgBL,uBAAA,CACJ,MAAA,GAAQ,mCAAA,GACP,OAAA,CAAQ,qCAAA;EAoBT;;;;;;;;;;EADI,oBAAA,CACJ,MAAA,EAAQ,gCAAA,GACP,OAAA,CAAQ,kCAAA;EA4CR;;;;;;AAiCwB;;;;EAzDrB,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;;;;;;;;;;;EAoBL,gBAAA,CACJ,MAAA,GAAQ,4BAAA,GACP,OAAA,CAAQ,8BAAA;;;;UAYG,OAAA;EAAA,QAIA,WAAA;;;;;UAiBN,mBAAA;AAAA"}
|
package/dist/NuanzeClient.js
CHANGED
|
@@ -96,7 +96,8 @@ var NuanzeClient = class {
|
|
|
96
96
|
/**
|
|
97
97
|
* Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted
|
|
98
98
|
* by PnL descending with nulls last. Subaccounts with no PnL in the window are included by
|
|
99
|
-
* default with null PnL/rank, zero counts, and no products.
|
|
99
|
+
* default with null PnL/rank, zero counts, and no products. Private subaccounts are excluded
|
|
100
|
+
* unless `includePrivate=true`.
|
|
100
101
|
*
|
|
101
102
|
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or
|
|
102
103
|
* `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.
|
|
@@ -251,7 +252,8 @@ var NuanzeClient = class {
|
|
|
251
252
|
* Lists current open perpetual position legs across every market by signed unrealized PnL.
|
|
252
253
|
* Descending returns the largest gainers and ascending returns the largest losers. This is a
|
|
253
254
|
* latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.
|
|
254
|
-
*
|
|
255
|
+
* Private subaccounts are excluded unless `includePrivate=true`. Each row includes market
|
|
256
|
+
* identity and its source snapshot timestamp.
|
|
255
257
|
*
|
|
256
258
|
* @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or
|
|
257
259
|
* `BAD_REQUEST` when the query or cursor is invalid.
|
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 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.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,OAAO,gCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,KACrC,KACF,CACF;CACF;;;;;;;CAQA,MAAM,gBACJ,SAAsC,CAAC,GACC;EACxC,OAAO,8BACL,MAAM,KAAK,QACT,kBACA,MACF,CACF;CACF;;;;;;;CAQA,MAAM,eACJ,SAAqC,CAAC,GACC;EACvC,OAAO,6BACL,MAAM,KAAK,QACT,gBACA,MACF,CACF;CACF;;;;;;;;;CAUA,MAAM,yBACJ,SAA+C,CAAC,GACC;EACjD,OAAO,uCACL,MAAM,KAAK,QACT,4BACA,MACF,CACF;CACF;;;;;;CAOA,MAAM,mBACJ,SAAyC,CAAC,GACC;EAC3C,OAAO,iCACL,MAAM,KAAK,QACT,qBACA,MACF,CACF;CACF;;;;;;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|
|
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. Private subaccounts are excluded\n * unless `includePrivate=true`.\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 * Private subaccounts are excluded unless `includePrivate=true`. Each row includes market\n * 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.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,QA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T,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"}
|
|
@@ -165,6 +165,8 @@ interface GetNuanzeFollowedLeaderboardParams {
|
|
|
165
165
|
timeframe: NuanzeLeaderboardTimeframe;
|
|
166
166
|
/** Include followed subaccounts with no PnL in the requested window, default true. */
|
|
167
167
|
includeUntraded?: boolean;
|
|
168
|
+
/** Include followed subaccounts with Private Mode enabled, default false. */
|
|
169
|
+
includePrivate?: boolean;
|
|
168
170
|
/** Page size, 1-200, default 100. */
|
|
169
171
|
limit?: number;
|
|
170
172
|
/**
|
|
@@ -660,7 +662,9 @@ interface GetNuanzeOpenPositionsParams {
|
|
|
660
662
|
limit?: number;
|
|
661
663
|
/** Signed unrealized-PnL direction, default `desc` (largest gainers first). */
|
|
662
664
|
sortDirection?: NuanzeOpenPositionSortDirection;
|
|
663
|
-
/**
|
|
665
|
+
/** Include positions from subaccounts with Private Mode enabled, default false. */
|
|
666
|
+
includePrivate?: boolean;
|
|
667
|
+
/** Opaque exclusive cursor bound to the sort direction and private visibility. */
|
|
664
668
|
cursor?: string;
|
|
665
669
|
}
|
|
666
670
|
/**
|
|
@@ -678,4 +682,4 @@ interface GetNuanzeOpenPositionsResponse {
|
|
|
678
682
|
}
|
|
679
683
|
//#endregion
|
|
680
684
|
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-
|
|
685
|
+
//# sourceMappingURL=clientTypes-PhICTa52.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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Ka,8BAAA;;EAEf,MAAA;;EAEA,KAAA;;EAEA,SAAA;;EAEA,KAAA;;;;;EAKA,MAAA,GAAS,0BAAA;;EAET,aAAA,GAAgB,iCAAiC;;EAEjD,MAAA;AAAA;;;;UAMe,gCAAA;;EAEf,SAAA;;EAEA,MAAA;;EAEA,MAAA;;EAEA,KAAA,EAAO,iBAAA;;EAEP,SAAA,EAAW,oBAAoB;;EAE/B,UAAA;;EAEA,aAAA;;EAEA,IAAA;AAAA;;;;;UAOe,4BAAA;;EAEf,KAAA;;EAEA,aAAA,GAAgB,+BAA+B;;EAE/C,cAAA;;EAEA,MAAA;AAAA;;;;UAMe,8BAAA;;EAEf,SAAA,EAAW,kBAAkB;;EAE7B,UAAA;;EAEA,aAAA;;EAEA,IAAA;AAAA"}
|
|
@@ -165,6 +165,8 @@ interface GetNuanzeFollowedLeaderboardParams {
|
|
|
165
165
|
timeframe: NuanzeLeaderboardTimeframe;
|
|
166
166
|
/** Include followed subaccounts with no PnL in the requested window, default true. */
|
|
167
167
|
includeUntraded?: boolean;
|
|
168
|
+
/** Include followed subaccounts with Private Mode enabled, default false. */
|
|
169
|
+
includePrivate?: boolean;
|
|
168
170
|
/** Page size, 1-200, default 100. */
|
|
169
171
|
limit?: number;
|
|
170
172
|
/**
|
|
@@ -660,7 +662,9 @@ interface GetNuanzeOpenPositionsParams {
|
|
|
660
662
|
limit?: number;
|
|
661
663
|
/** Signed unrealized-PnL direction, default `desc` (largest gainers first). */
|
|
662
664
|
sortDirection?: NuanzeOpenPositionSortDirection;
|
|
663
|
-
/**
|
|
665
|
+
/** Include positions from subaccounts with Private Mode enabled, default false. */
|
|
666
|
+
includePrivate?: boolean;
|
|
667
|
+
/** Opaque exclusive cursor bound to the sort direction and private visibility. */
|
|
664
668
|
cursor?: string;
|
|
665
669
|
}
|
|
666
670
|
/**
|
|
@@ -678,4 +682,4 @@ interface GetNuanzeOpenPositionsResponse {
|
|
|
678
682
|
}
|
|
679
683
|
//#endregion
|
|
680
684
|
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-
|
|
685
|
+
//# sourceMappingURL=clientTypes-t9TgQnqp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientTypes-t9TgQnqp.d.ts","names":[],"sources":["../src/types/src/types/clientTypes.ts"],"mappings":";;;;;;AA8CA;UAAiB,sB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ET,aAAA,GAAgB,iCAAiC;;EAEjD,MAAA;AAAA;;;;UAMe,gCAAA;;EAEf,SAAA;;EAEA,MAAA;;EAEA,MAAA;;EAEA,KAAA,EAAO,iBAAA;;EAEP,SAAA,EAAW,oBAAoB;;EAE/B,UAAA;;EAEA,aAAA;;EAEA,IAAA;AAAA;;;;;UAOe,4BAAA;;EAEf,KAAA;;EAEA,aAAA,GAAgB,+BAA+B;;EAE/C,cAAA;;EAEA,MAAA;AAAA;;;;UAMe,8BAAA;;EAEf,SAAA,EAAW,kBAAkB;;EAE7B,UAAA;;EAEA,aAAA;;EAEA,IAAA;AAAA"}
|
package/dist/dataMappers.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./NuanzeClient-
|
|
2
|
+
require("./NuanzeClient-CEmOugzW.cjs");
|
|
3
3
|
let _nadohq_shared = require("@nadohq/shared");
|
|
4
4
|
//#region src/dataMappers.ts
|
|
5
5
|
function mapNuanzeDecimal(value) {
|
package/dist/dataMappers.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as NuanzeMarket, Ft as NuanzeStockFundamentals, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, P as NuanzeCollateralFlowPoint, Rt as NuanzeWalletPosition, St as NuanzeOpenPosition, V as NuanzeFollowedLeaderboardItem, X as NuanzeLeaderboardItem, Y as NuanzeLatestTicker, k as NuanzeCandle, q as NuanzeFundingObservation, rt as NuanzeMarketPosition, tt as NuanzeMarketDetail, ut as NuanzeMarketTrade, zt as NuanzeWalletTrade } from "./clientModelTypes-YrD7pXq6.cjs";
|
|
2
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, E as GetNuanzeNewsResponse, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, M as GetNuanzeSubaccountLeaderboardResponse, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, i as GetNuanzeCollateralFlowSummaryResponse, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse } from "./clientTypes-
|
|
2
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, E as GetNuanzeNewsResponse, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, M as GetNuanzeSubaccountLeaderboardResponse, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, i as GetNuanzeCollateralFlowSummaryResponse, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse } from "./clientTypes-PhICTa52.cjs";
|
|
3
3
|
import { A as NuanzeServerStockFundamentals, M as NuanzeServerWalletPosition, N as NuanzeServerWalletTrade, O as NuanzeServerSeriesPoint, S as NuanzeServerMarketTrade, a as NuanzeServerFollowedLeaderboardItem, b as NuanzeServerMarketPositioningResponse, d as NuanzeServerFundingRate, f as NuanzeServerLatestTicker, g as NuanzeServerMarketPosition, h as NuanzeServerMarketDetail, i as NuanzeServerCollateralFlowPoint, j as NuanzeServerSubaccountLeaderboardItem, m as NuanzeServerMarket, p as NuanzeServerLeaderboardItem, r as NuanzeServerCollateralFlow, t as NuanzeServerCandle, u as NuanzeServerFundingObservation, w as NuanzeServerOpenPosition } from "./serverModelTypes-BJzL4GkE.cjs";
|
|
4
4
|
import { _ as NuanzeServerWalletPnlResponse, a as NuanzeServerFollowedLeaderboardResponse, b as NuanzeServerWalletSummaryResponse, d as NuanzeServerMarketTradesResponse, f as NuanzeServerMarketsResponse, g as NuanzeServerSubaccountLeaderboardResponse, h as NuanzeServerPlatformSummaryResponse, l as NuanzeServerMarketCandlesResponse, m as NuanzeServerOpenPositionsResponse, n as NuanzeServerCollateralFlowSummaryResponse, o as NuanzeServerFundingRatesResponse, p as NuanzeServerNewsResponse, r as NuanzeServerCollateralFlowsResponse, s as NuanzeServerLeaderboardResponse, t as NuanzeServerCollateralFlowSeriesResponse, u as NuanzeServerMarketPositionsResponse, v as NuanzeServerWalletPnlSeriesResponse, x as NuanzeServerWalletTradesResponse, y as NuanzeServerWalletPositionsResponse } from "./serverQueryTypes-RBQQXK5Y.cjs";
|
|
5
5
|
|
package/dist/dataMappers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as NuanzeMarket, Ft as NuanzeStockFundamentals, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, P as NuanzeCollateralFlowPoint, Rt as NuanzeWalletPosition, St as NuanzeOpenPosition, V as NuanzeFollowedLeaderboardItem, X as NuanzeLeaderboardItem, Y as NuanzeLatestTicker, k as NuanzeCandle, q as NuanzeFundingObservation, rt as NuanzeMarketPosition, tt as NuanzeMarketDetail, ut as NuanzeMarketTrade, zt as NuanzeWalletTrade } from "./clientModelTypes-DNPU1Q4B.js";
|
|
2
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, E as GetNuanzeNewsResponse, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, M as GetNuanzeSubaccountLeaderboardResponse, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, i as GetNuanzeCollateralFlowSummaryResponse, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse } from "./clientTypes-
|
|
2
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, E as GetNuanzeNewsResponse, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, M as GetNuanzeSubaccountLeaderboardResponse, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, i as GetNuanzeCollateralFlowSummaryResponse, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse } from "./clientTypes-t9TgQnqp.js";
|
|
3
3
|
import { A as NuanzeServerStockFundamentals, M as NuanzeServerWalletPosition, N as NuanzeServerWalletTrade, O as NuanzeServerSeriesPoint, S as NuanzeServerMarketTrade, a as NuanzeServerFollowedLeaderboardItem, b as NuanzeServerMarketPositioningResponse, d as NuanzeServerFundingRate, f as NuanzeServerLatestTicker, g as NuanzeServerMarketPosition, h as NuanzeServerMarketDetail, i as NuanzeServerCollateralFlowPoint, j as NuanzeServerSubaccountLeaderboardItem, m as NuanzeServerMarket, p as NuanzeServerLeaderboardItem, r as NuanzeServerCollateralFlow, t as NuanzeServerCandle, u as NuanzeServerFundingObservation, w as NuanzeServerOpenPosition } from "./serverModelTypes-Ch4IifDo.js";
|
|
4
4
|
import { _ as NuanzeServerWalletPnlResponse, a as NuanzeServerFollowedLeaderboardResponse, b as NuanzeServerWalletSummaryResponse, d as NuanzeServerMarketTradesResponse, f as NuanzeServerMarketsResponse, g as NuanzeServerSubaccountLeaderboardResponse, h as NuanzeServerPlatformSummaryResponse, l as NuanzeServerMarketCandlesResponse, m as NuanzeServerOpenPositionsResponse, n as NuanzeServerCollateralFlowSummaryResponse, o as NuanzeServerFundingRatesResponse, p as NuanzeServerNewsResponse, r as NuanzeServerCollateralFlowsResponse, s as NuanzeServerLeaderboardResponse, t as NuanzeServerCollateralFlowSeriesResponse, u as NuanzeServerMarketPositionsResponse, v as NuanzeServerWalletPnlSeriesResponse, x as NuanzeServerWalletTradesResponse, y as NuanzeServerWalletPositionsResponse } from "./serverQueryTypes-BDI5rETc.js";
|
|
5
5
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_NuanzeClient = require("./NuanzeClient-
|
|
2
|
+
const require_NuanzeClient = require("./NuanzeClient-CEmOugzW.cjs");
|
|
3
3
|
const require_dataMappers = require("./dataMappers.cjs");
|
|
4
4
|
const require_types_NuanzeServerFailureError = require("./types/NuanzeServerFailureError.cjs");
|
|
5
5
|
const require_types_serverQueryTypes = require("./types/serverQueryTypes.cjs");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as NuanzeMarket, A as NuanzeCandleInterval, At as NuanzePositioningTotals, B as NuanzeFlowTimeframe, C as NUANZE_PNL_WINDOWS, Ct as NuanzeOpenPositionSortDirection, D as NUANZE_SOURCE_INTERVALS, Dt as NuanzePositionSide, E as NUANZE_SERIES_METRICS, Et as NuanzePnlWindow, F as NuanzeCoverage, Ft as NuanzeStockFundamentals, G as NuanzeFundamentalsSource, H as NuanzeFundamentalsKeyData, I as NuanzeFlowBucket, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, K as NuanzeFundamentalsValuation, L as NuanzeFlowEventType, Lt as NuanzeTradeSide, M as NuanzeCohortPositioningCell, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, Nt as NuanzeSidePositioningCell, O as NUANZE_TRADE_SIDES, Ot as NuanzePositioningCellBase, P as NuanzeCollateralFlowPoint, Pt as NuanzeSourceInterval, Q as NuanzeMarginKind, R as NuanzeFlowEventTypeFilter, Rt as NuanzeWalletPosition, S as NUANZE_PLATFORM_WINDOWS, St as NuanzeOpenPosition, T as NUANZE_POSITION_SIDES, Tt as NuanzePlatformWindow, U as NuanzeFundamentalsPerformance, V as NuanzeFollowedLeaderboardItem, W as NuanzeFundamentalsSocial, X as NuanzeLeaderboardItem, Y as NuanzeLatestTicker, Z as NuanzeLeaderboardTimeframe, _ as NUANZE_NEWS_EVENT_TYPES, _t as NuanzeNewsSentiment, a as NUANZE_FLOW_EVENT_TYPES, at as NuanzeMarketPositionSortDirection, b as NUANZE_NOTIONAL_BUCKETS, bt as NuanzeNotionalBucket, c as NUANZE_FUNDAMENTALS_SOURCES, ct as NuanzeMarketPositioningNotionalBucketResponse, d as NUANZE_MARKET_POSITION_SORT_BYS, dt as NuanzeMarketTradingStatus, et as NuanzeMarketComponentUpdatedAt, f as NUANZE_MARKET_POSITION_SORT_DIRECTIONS, ft as NuanzeMarketVenue, g as NUANZE_NEWS_ENTITY_ROLES, gt as NuanzeNewsEventType, h as NUANZE_MIN_POSITION_USDS, ht as NuanzeNewsEntityRole, i as NUANZE_FLOW_BUCKETS, it as NuanzeMarketPositionSortBy, j as NuanzeCohortKey, jt as NuanzeSeriesMetric, k as NuanzeCandle, kt as NuanzePositioningGroupBy, l as NUANZE_LEADERBOARD_TIMEFRAMES, lt as NuanzeMarketPositioningSideResponse, m as NUANZE_MARKET_VENUES, mt as NuanzeNewsEntity, n as NUANZE_COHORT_KEYS, nt as NuanzeMarketIdentity, o as NUANZE_FLOW_EVENT_TYPE_FILTERS, ot as NuanzeMarketPositioningBase, p as NUANZE_MARKET_TRADING_STATUSES, pt as NuanzeMinPositionUsd, q as NuanzeFundingObservation, r as NUANZE_COVERAGES, rt as NuanzeMarketPosition, s as NUANZE_FLOW_TIMEFRAMES, st as NuanzeMarketPositioningCohortResponse, t as NUANZE_CANDLE_INTERVALS, tt as NuanzeMarketDetail, u as NUANZE_MARGIN_KINDS, ut as NuanzeMarketTrade, v as NUANZE_NEWS_SENTIMENTS, vt as NuanzeNewsStory, w as NUANZE_POSITIONING_GROUP_BYS, wt as NuanzePlatformDeltas, x as NUANZE_OPEN_POSITION_SORT_DIRECTIONS, xt as NuanzeNotionalBucketPositioningCell, y as NUANZE_NEWS_TIERS, yt as NuanzeNewsTier, z as NuanzeFlowTags, zt as NuanzeWalletTrade } from "./clientModelTypes-YrD7pXq6.cjs";
|
|
2
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-
|
|
2
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-PhICTa52.cjs";
|
|
3
3
|
import { NuanzeClient, NuanzeClientOpts } from "./NuanzeClient.cjs";
|
|
4
4
|
import { A as NuanzeServerStockFundamentals, C as NuanzeServerNotionalBucketPositioningCell, D as NuanzeServerPositioningTotals, E as NuanzeServerPositioningCellBase, M as NuanzeServerWalletPosition, N as NuanzeServerWalletTrade, O as NuanzeServerSeriesPoint, S as NuanzeServerMarketTrade, T as NuanzeServerPlatformDeltas, _ as NuanzeServerMarketPositioningBase, a as NuanzeServerFollowedLeaderboardItem, b as NuanzeServerMarketPositioningResponse, c as NuanzeServerFundamentalsSocial, d as NuanzeServerFundingRate, f as NuanzeServerLatestTicker, g as NuanzeServerMarketPosition, h as NuanzeServerMarketDetail, i as NuanzeServerCollateralFlowPoint, j as NuanzeServerSubaccountLeaderboardItem, k as NuanzeServerSidePositioningCell, l as NuanzeServerFundamentalsValuation, m as NuanzeServerMarket, n as NuanzeServerCohortPositioningCell, o as NuanzeServerFundamentalsKeyData, p as NuanzeServerLeaderboardItem, r as NuanzeServerCollateralFlow, s as NuanzeServerFundamentalsPerformance, t as NuanzeServerCandle, u as NuanzeServerFundingObservation, v as NuanzeServerMarketPositioningCohortResponse, w as NuanzeServerOpenPosition, x as NuanzeServerMarketPositioningSideResponse, y as NuanzeServerMarketPositioningNotionalBucketResponse } from "./serverModelTypes-BJzL4GkE.cjs";
|
|
5
5
|
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "./nuanzeErrorCodes-DMoRcCHK.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as NuanzeMarket, A as NuanzeCandleInterval, At as NuanzePositioningTotals, B as NuanzeFlowTimeframe, C as NUANZE_PNL_WINDOWS, Ct as NuanzeOpenPositionSortDirection, D as NUANZE_SOURCE_INTERVALS, Dt as NuanzePositionSide, E as NUANZE_SERIES_METRICS, Et as NuanzePnlWindow, F as NuanzeCoverage, Ft as NuanzeStockFundamentals, G as NuanzeFundamentalsSource, H as NuanzeFundamentalsKeyData, I as NuanzeFlowBucket, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, K as NuanzeFundamentalsValuation, L as NuanzeFlowEventType, Lt as NuanzeTradeSide, M as NuanzeCohortPositioningCell, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, Nt as NuanzeSidePositioningCell, O as NUANZE_TRADE_SIDES, Ot as NuanzePositioningCellBase, P as NuanzeCollateralFlowPoint, Pt as NuanzeSourceInterval, Q as NuanzeMarginKind, R as NuanzeFlowEventTypeFilter, Rt as NuanzeWalletPosition, S as NUANZE_PLATFORM_WINDOWS, St as NuanzeOpenPosition, T as NUANZE_POSITION_SIDES, Tt as NuanzePlatformWindow, U as NuanzeFundamentalsPerformance, V as NuanzeFollowedLeaderboardItem, W as NuanzeFundamentalsSocial, X as NuanzeLeaderboardItem, Y as NuanzeLatestTicker, Z as NuanzeLeaderboardTimeframe, _ as NUANZE_NEWS_EVENT_TYPES, _t as NuanzeNewsSentiment, a as NUANZE_FLOW_EVENT_TYPES, at as NuanzeMarketPositionSortDirection, b as NUANZE_NOTIONAL_BUCKETS, bt as NuanzeNotionalBucket, c as NUANZE_FUNDAMENTALS_SOURCES, ct as NuanzeMarketPositioningNotionalBucketResponse, d as NUANZE_MARKET_POSITION_SORT_BYS, dt as NuanzeMarketTradingStatus, et as NuanzeMarketComponentUpdatedAt, f as NUANZE_MARKET_POSITION_SORT_DIRECTIONS, ft as NuanzeMarketVenue, g as NUANZE_NEWS_ENTITY_ROLES, gt as NuanzeNewsEventType, h as NUANZE_MIN_POSITION_USDS, ht as NuanzeNewsEntityRole, i as NUANZE_FLOW_BUCKETS, it as NuanzeMarketPositionSortBy, j as NuanzeCohortKey, jt as NuanzeSeriesMetric, k as NuanzeCandle, kt as NuanzePositioningGroupBy, l as NUANZE_LEADERBOARD_TIMEFRAMES, lt as NuanzeMarketPositioningSideResponse, m as NUANZE_MARKET_VENUES, mt as NuanzeNewsEntity, n as NUANZE_COHORT_KEYS, nt as NuanzeMarketIdentity, o as NUANZE_FLOW_EVENT_TYPE_FILTERS, ot as NuanzeMarketPositioningBase, p as NUANZE_MARKET_TRADING_STATUSES, pt as NuanzeMinPositionUsd, q as NuanzeFundingObservation, r as NUANZE_COVERAGES, rt as NuanzeMarketPosition, s as NUANZE_FLOW_TIMEFRAMES, st as NuanzeMarketPositioningCohortResponse, t as NUANZE_CANDLE_INTERVALS, tt as NuanzeMarketDetail, u as NUANZE_MARGIN_KINDS, ut as NuanzeMarketTrade, v as NUANZE_NEWS_SENTIMENTS, vt as NuanzeNewsStory, w as NUANZE_POSITIONING_GROUP_BYS, wt as NuanzePlatformDeltas, x as NUANZE_OPEN_POSITION_SORT_DIRECTIONS, xt as NuanzeNotionalBucketPositioningCell, y as NUANZE_NEWS_TIERS, yt as NuanzeNewsTier, z as NuanzeFlowTags, zt as NuanzeWalletTrade } from "./clientModelTypes-DNPU1Q4B.js";
|
|
2
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-
|
|
2
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "./clientTypes-t9TgQnqp.js";
|
|
3
3
|
import { NuanzeClient, NuanzeClientOpts } from "./NuanzeClient.js";
|
|
4
4
|
import { A as NuanzeServerStockFundamentals, C as NuanzeServerNotionalBucketPositioningCell, D as NuanzeServerPositioningTotals, E as NuanzeServerPositioningCellBase, M as NuanzeServerWalletPosition, N as NuanzeServerWalletTrade, O as NuanzeServerSeriesPoint, S as NuanzeServerMarketTrade, T as NuanzeServerPlatformDeltas, _ as NuanzeServerMarketPositioningBase, a as NuanzeServerFollowedLeaderboardItem, b as NuanzeServerMarketPositioningResponse, c as NuanzeServerFundamentalsSocial, d as NuanzeServerFundingRate, f as NuanzeServerLatestTicker, g as NuanzeServerMarketPosition, h as NuanzeServerMarketDetail, i as NuanzeServerCollateralFlowPoint, j as NuanzeServerSubaccountLeaderboardItem, k as NuanzeServerSidePositioningCell, l as NuanzeServerFundamentalsValuation, m as NuanzeServerMarket, n as NuanzeServerCohortPositioningCell, o as NuanzeServerFundamentalsKeyData, p as NuanzeServerLeaderboardItem, r as NuanzeServerCollateralFlow, s as NuanzeServerFundamentalsPerformance, t as NuanzeServerCandle, u as NuanzeServerFundingObservation, v as NuanzeServerMarketPositioningCohortResponse, w as NuanzeServerOpenPosition, x as NuanzeServerMarketPositioningSideResponse, y as NuanzeServerMarketPositioningNotionalBucketResponse } from "./serverModelTypes-Ch4IifDo.js";
|
|
5
5
|
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "./nuanzeErrorCodes-DewKYqCe.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-
|
|
1
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-PhICTa52.cjs";
|
|
2
2
|
export { GetNuanzeCollateralFlowSeriesParams, GetNuanzeCollateralFlowSeriesResponse, GetNuanzeCollateralFlowSummaryParams, GetNuanzeCollateralFlowSummaryResponse, GetNuanzeCollateralFlowsParams, GetNuanzeCollateralFlowsResponse, GetNuanzeFollowedLeaderboardParams, GetNuanzeFollowedLeaderboardResponse, GetNuanzeFundingRatesParams, GetNuanzeFundingRatesResponse, GetNuanzeLeaderboardParams, GetNuanzeLeaderboardResponse, GetNuanzeMarketByTickerParams, GetNuanzeMarketByTickerResponse, GetNuanzeMarketCandlesParams, GetNuanzeMarketCandlesResponse, GetNuanzeMarketPositioningParams, GetNuanzeMarketPositioningResponse, GetNuanzeMarketPositionsParams, GetNuanzeMarketPositionsResponse, GetNuanzeMarketTradesParams, GetNuanzeMarketTradesResponse, GetNuanzeMarketsParams, GetNuanzeMarketsResponse, GetNuanzeNewsParams, GetNuanzeNewsResponse, GetNuanzeOpenPositionsParams, GetNuanzeOpenPositionsResponse, GetNuanzePlatformSummaryParams, GetNuanzePlatformSummaryResponse, GetNuanzeSubaccountLeaderboardParams, GetNuanzeSubaccountLeaderboardResponse, GetNuanzeWalletPnlParams, GetNuanzeWalletPnlResponse, GetNuanzeWalletPnlSeriesParams, GetNuanzeWalletPnlSeriesResponse, GetNuanzeWalletPositionsParams, GetNuanzeWalletPositionsResponse, GetNuanzeWalletSummaryParams, GetNuanzeWalletSummaryResponse, GetNuanzeWalletTradesParams, GetNuanzeWalletTradesResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-
|
|
1
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-t9TgQnqp.js";
|
|
2
2
|
export { GetNuanzeCollateralFlowSeriesParams, GetNuanzeCollateralFlowSeriesResponse, GetNuanzeCollateralFlowSummaryParams, GetNuanzeCollateralFlowSummaryResponse, GetNuanzeCollateralFlowsParams, GetNuanzeCollateralFlowsResponse, GetNuanzeFollowedLeaderboardParams, GetNuanzeFollowedLeaderboardResponse, GetNuanzeFundingRatesParams, GetNuanzeFundingRatesResponse, GetNuanzeLeaderboardParams, GetNuanzeLeaderboardResponse, GetNuanzeMarketByTickerParams, GetNuanzeMarketByTickerResponse, GetNuanzeMarketCandlesParams, GetNuanzeMarketCandlesResponse, GetNuanzeMarketPositioningParams, GetNuanzeMarketPositioningResponse, GetNuanzeMarketPositionsParams, GetNuanzeMarketPositionsResponse, GetNuanzeMarketTradesParams, GetNuanzeMarketTradesResponse, GetNuanzeMarketsParams, GetNuanzeMarketsResponse, GetNuanzeNewsParams, GetNuanzeNewsResponse, GetNuanzeOpenPositionsParams, GetNuanzeOpenPositionsResponse, GetNuanzePlatformSummaryParams, GetNuanzePlatformSummaryResponse, GetNuanzeSubaccountLeaderboardParams, GetNuanzeSubaccountLeaderboardResponse, GetNuanzeWalletPnlParams, GetNuanzeWalletPnlResponse, GetNuanzeWalletPnlSeriesParams, GetNuanzeWalletPnlSeriesResponse, GetNuanzeWalletPositionsParams, GetNuanzeWalletPositionsResponse, GetNuanzeWalletSummaryParams, GetNuanzeWalletSummaryResponse, GetNuanzeWalletTradesParams, GetNuanzeWalletTradesResponse };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as NuanzeMarket, A as NuanzeCandleInterval, At as NuanzePositioningTotals, B as NuanzeFlowTimeframe, C as NUANZE_PNL_WINDOWS, Ct as NuanzeOpenPositionSortDirection, D as NUANZE_SOURCE_INTERVALS, Dt as NuanzePositionSide, E as NUANZE_SERIES_METRICS, Et as NuanzePnlWindow, F as NuanzeCoverage, Ft as NuanzeStockFundamentals, G as NuanzeFundamentalsSource, H as NuanzeFundamentalsKeyData, I as NuanzeFlowBucket, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, K as NuanzeFundamentalsValuation, L as NuanzeFlowEventType, Lt as NuanzeTradeSide, M as NuanzeCohortPositioningCell, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, Nt as NuanzeSidePositioningCell, O as NUANZE_TRADE_SIDES, Ot as NuanzePositioningCellBase, P as NuanzeCollateralFlowPoint, Pt as NuanzeSourceInterval, Q as NuanzeMarginKind, R as NuanzeFlowEventTypeFilter, Rt as NuanzeWalletPosition, S as NUANZE_PLATFORM_WINDOWS, St as NuanzeOpenPosition, T as NUANZE_POSITION_SIDES, Tt as NuanzePlatformWindow, U as NuanzeFundamentalsPerformance, V as NuanzeFollowedLeaderboardItem, W as NuanzeFundamentalsSocial, X as NuanzeLeaderboardItem, Y as NuanzeLatestTicker, Z as NuanzeLeaderboardTimeframe, _ as NUANZE_NEWS_EVENT_TYPES, _t as NuanzeNewsSentiment, a as NUANZE_FLOW_EVENT_TYPES, at as NuanzeMarketPositionSortDirection, b as NUANZE_NOTIONAL_BUCKETS, bt as NuanzeNotionalBucket, c as NUANZE_FUNDAMENTALS_SOURCES, ct as NuanzeMarketPositioningNotionalBucketResponse, d as NUANZE_MARKET_POSITION_SORT_BYS, dt as NuanzeMarketTradingStatus, et as NuanzeMarketComponentUpdatedAt, f as NUANZE_MARKET_POSITION_SORT_DIRECTIONS, ft as NuanzeMarketVenue, g as NUANZE_NEWS_ENTITY_ROLES, gt as NuanzeNewsEventType, h as NUANZE_MIN_POSITION_USDS, ht as NuanzeNewsEntityRole, i as NUANZE_FLOW_BUCKETS, it as NuanzeMarketPositionSortBy, j as NuanzeCohortKey, jt as NuanzeSeriesMetric, k as NuanzeCandle, kt as NuanzePositioningGroupBy, l as NUANZE_LEADERBOARD_TIMEFRAMES, lt as NuanzeMarketPositioningSideResponse, m as NUANZE_MARKET_VENUES, mt as NuanzeNewsEntity, n as NUANZE_COHORT_KEYS, nt as NuanzeMarketIdentity, o as NUANZE_FLOW_EVENT_TYPE_FILTERS, ot as NuanzeMarketPositioningBase, p as NUANZE_MARKET_TRADING_STATUSES, pt as NuanzeMinPositionUsd, q as NuanzeFundingObservation, r as NUANZE_COVERAGES, rt as NuanzeMarketPosition, s as NUANZE_FLOW_TIMEFRAMES, st as NuanzeMarketPositioningCohortResponse, t as NUANZE_CANDLE_INTERVALS, tt as NuanzeMarketDetail, u as NUANZE_MARGIN_KINDS, ut as NuanzeMarketTrade, v as NUANZE_NEWS_SENTIMENTS, vt as NuanzeNewsStory, w as NUANZE_POSITIONING_GROUP_BYS, wt as NuanzePlatformDeltas, x as NUANZE_OPEN_POSITION_SORT_DIRECTIONS, xt as NuanzeNotionalBucketPositioningCell, y as NUANZE_NEWS_TIERS, yt as NuanzeNewsTier, z as NuanzeFlowTags, zt as NuanzeWalletTrade } from "../clientModelTypes-YrD7pXq6.cjs";
|
|
2
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-
|
|
2
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-PhICTa52.cjs";
|
|
3
3
|
import { A as NuanzeServerStockFundamentals, C as NuanzeServerNotionalBucketPositioningCell, D as NuanzeServerPositioningTotals, E as NuanzeServerPositioningCellBase, M as NuanzeServerWalletPosition, N as NuanzeServerWalletTrade, O as NuanzeServerSeriesPoint, S as NuanzeServerMarketTrade, T as NuanzeServerPlatformDeltas, _ as NuanzeServerMarketPositioningBase, a as NuanzeServerFollowedLeaderboardItem, b as NuanzeServerMarketPositioningResponse, c as NuanzeServerFundamentalsSocial, d as NuanzeServerFundingRate, f as NuanzeServerLatestTicker, g as NuanzeServerMarketPosition, h as NuanzeServerMarketDetail, i as NuanzeServerCollateralFlowPoint, j as NuanzeServerSubaccountLeaderboardItem, k as NuanzeServerSidePositioningCell, l as NuanzeServerFundamentalsValuation, m as NuanzeServerMarket, n as NuanzeServerCohortPositioningCell, o as NuanzeServerFundamentalsKeyData, p as NuanzeServerLeaderboardItem, r as NuanzeServerCollateralFlow, s as NuanzeServerFundamentalsPerformance, t as NuanzeServerCandle, u as NuanzeServerFundingObservation, v as NuanzeServerMarketPositioningCohortResponse, w as NuanzeServerOpenPosition, x as NuanzeServerMarketPositioningSideResponse, y as NuanzeServerMarketPositioningNotionalBucketResponse } from "../serverModelTypes-BJzL4GkE.cjs";
|
|
4
4
|
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-DMoRcCHK.cjs";
|
|
5
5
|
import { S as isNuanzeServerFailureResponse, _ as NuanzeServerWalletPnlResponse, a as NuanzeServerFollowedLeaderboardResponse, b as NuanzeServerWalletSummaryResponse, c as NuanzeServerMarketByTickerResponse, d as NuanzeServerMarketTradesResponse, f as NuanzeServerMarketsResponse, g as NuanzeServerSubaccountLeaderboardResponse, h as NuanzeServerPlatformSummaryResponse, i as NuanzeServerFailureResponse, l as NuanzeServerMarketCandlesResponse, m as NuanzeServerOpenPositionsResponse, n as NuanzeServerCollateralFlowSummaryResponse, o as NuanzeServerFundingRatesResponse, p as NuanzeServerNewsResponse, r as NuanzeServerCollateralFlowsResponse, s as NuanzeServerLeaderboardResponse, t as NuanzeServerCollateralFlowSeriesResponse, u as NuanzeServerMarketPositionsResponse, v as NuanzeServerWalletPnlSeriesResponse, x as NuanzeServerWalletTradesResponse, y as NuanzeServerWalletPositionsResponse } from "../serverQueryTypes-RBQQXK5Y.cjs";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as NuanzeMarket, A as NuanzeCandleInterval, At as NuanzePositioningTotals, B as NuanzeFlowTimeframe, C as NUANZE_PNL_WINDOWS, Ct as NuanzeOpenPositionSortDirection, D as NUANZE_SOURCE_INTERVALS, Dt as NuanzePositionSide, E as NUANZE_SERIES_METRICS, Et as NuanzePnlWindow, F as NuanzeCoverage, Ft as NuanzeStockFundamentals, G as NuanzeFundamentalsSource, H as NuanzeFundamentalsKeyData, I as NuanzeFlowBucket, It as NuanzeSubaccountLeaderboardItem, J as NuanzeFundingRate, K as NuanzeFundamentalsValuation, L as NuanzeFlowEventType, Lt as NuanzeTradeSide, M as NuanzeCohortPositioningCell, Mt as NuanzeSeriesPoint, N as NuanzeCollateralFlow, Nt as NuanzeSidePositioningCell, O as NUANZE_TRADE_SIDES, Ot as NuanzePositioningCellBase, P as NuanzeCollateralFlowPoint, Pt as NuanzeSourceInterval, Q as NuanzeMarginKind, R as NuanzeFlowEventTypeFilter, Rt as NuanzeWalletPosition, S as NUANZE_PLATFORM_WINDOWS, St as NuanzeOpenPosition, T as NUANZE_POSITION_SIDES, Tt as NuanzePlatformWindow, U as NuanzeFundamentalsPerformance, V as NuanzeFollowedLeaderboardItem, W as NuanzeFundamentalsSocial, X as NuanzeLeaderboardItem, Y as NuanzeLatestTicker, Z as NuanzeLeaderboardTimeframe, _ as NUANZE_NEWS_EVENT_TYPES, _t as NuanzeNewsSentiment, a as NUANZE_FLOW_EVENT_TYPES, at as NuanzeMarketPositionSortDirection, b as NUANZE_NOTIONAL_BUCKETS, bt as NuanzeNotionalBucket, c as NUANZE_FUNDAMENTALS_SOURCES, ct as NuanzeMarketPositioningNotionalBucketResponse, d as NUANZE_MARKET_POSITION_SORT_BYS, dt as NuanzeMarketTradingStatus, et as NuanzeMarketComponentUpdatedAt, f as NUANZE_MARKET_POSITION_SORT_DIRECTIONS, ft as NuanzeMarketVenue, g as NUANZE_NEWS_ENTITY_ROLES, gt as NuanzeNewsEventType, h as NUANZE_MIN_POSITION_USDS, ht as NuanzeNewsEntityRole, i as NUANZE_FLOW_BUCKETS, it as NuanzeMarketPositionSortBy, j as NuanzeCohortKey, jt as NuanzeSeriesMetric, k as NuanzeCandle, kt as NuanzePositioningGroupBy, l as NUANZE_LEADERBOARD_TIMEFRAMES, lt as NuanzeMarketPositioningSideResponse, m as NUANZE_MARKET_VENUES, mt as NuanzeNewsEntity, n as NUANZE_COHORT_KEYS, nt as NuanzeMarketIdentity, o as NUANZE_FLOW_EVENT_TYPE_FILTERS, ot as NuanzeMarketPositioningBase, p as NUANZE_MARKET_TRADING_STATUSES, pt as NuanzeMinPositionUsd, q as NuanzeFundingObservation, r as NUANZE_COVERAGES, rt as NuanzeMarketPosition, s as NUANZE_FLOW_TIMEFRAMES, st as NuanzeMarketPositioningCohortResponse, t as NUANZE_CANDLE_INTERVALS, tt as NuanzeMarketDetail, u as NUANZE_MARGIN_KINDS, ut as NuanzeMarketTrade, v as NUANZE_NEWS_SENTIMENTS, vt as NuanzeNewsStory, w as NUANZE_POSITIONING_GROUP_BYS, wt as NuanzePlatformDeltas, x as NUANZE_OPEN_POSITION_SORT_DIRECTIONS, xt as NuanzeNotionalBucketPositioningCell, y as NUANZE_NEWS_TIERS, yt as NuanzeNewsTier, z as NuanzeFlowTags, zt as NuanzeWalletTrade } from "../clientModelTypes-DNPU1Q4B.js";
|
|
2
|
-
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-
|
|
2
|
+
import { A as GetNuanzePlatformSummaryResponse, B as GetNuanzeWalletSummaryResponse, C as GetNuanzeMarketsParams, D as GetNuanzeOpenPositionsParams, E as GetNuanzeNewsResponse, F as GetNuanzeWalletPnlSeriesParams, H as GetNuanzeWalletTradesResponse, I as GetNuanzeWalletPnlSeriesResponse, L as GetNuanzeWalletPositionsParams, M as GetNuanzeSubaccountLeaderboardResponse, N as GetNuanzeWalletPnlParams, O as GetNuanzeOpenPositionsResponse, P as GetNuanzeWalletPnlResponse, R as GetNuanzeWalletPositionsResponse, S as GetNuanzeMarketTradesResponse, T as GetNuanzeNewsParams, V as GetNuanzeWalletTradesParams, _ as GetNuanzeMarketPositioningParams, a as GetNuanzeCollateralFlowsParams, b as GetNuanzeMarketPositionsResponse, c as GetNuanzeFollowedLeaderboardResponse, d as GetNuanzeLeaderboardParams, f as GetNuanzeLeaderboardResponse, g as GetNuanzeMarketCandlesResponse, h as GetNuanzeMarketCandlesParams, i as GetNuanzeCollateralFlowSummaryResponse, j as GetNuanzeSubaccountLeaderboardParams, k as GetNuanzePlatformSummaryParams, l as GetNuanzeFundingRatesParams, m as GetNuanzeMarketByTickerResponse, n as GetNuanzeCollateralFlowSeriesResponse, o as GetNuanzeCollateralFlowsResponse, p as GetNuanzeMarketByTickerParams, r as GetNuanzeCollateralFlowSummaryParams, s as GetNuanzeFollowedLeaderboardParams, t as GetNuanzeCollateralFlowSeriesParams, u as GetNuanzeFundingRatesResponse, v as GetNuanzeMarketPositioningResponse, w as GetNuanzeMarketsResponse, x as GetNuanzeMarketTradesParams, y as GetNuanzeMarketPositionsParams, z as GetNuanzeWalletSummaryParams } from "../clientTypes-t9TgQnqp.js";
|
|
3
3
|
import { A as NuanzeServerStockFundamentals, C as NuanzeServerNotionalBucketPositioningCell, D as NuanzeServerPositioningTotals, E as NuanzeServerPositioningCellBase, M as NuanzeServerWalletPosition, N as NuanzeServerWalletTrade, O as NuanzeServerSeriesPoint, S as NuanzeServerMarketTrade, T as NuanzeServerPlatformDeltas, _ as NuanzeServerMarketPositioningBase, a as NuanzeServerFollowedLeaderboardItem, b as NuanzeServerMarketPositioningResponse, c as NuanzeServerFundamentalsSocial, d as NuanzeServerFundingRate, f as NuanzeServerLatestTicker, g as NuanzeServerMarketPosition, h as NuanzeServerMarketDetail, i as NuanzeServerCollateralFlowPoint, j as NuanzeServerSubaccountLeaderboardItem, k as NuanzeServerSidePositioningCell, l as NuanzeServerFundamentalsValuation, m as NuanzeServerMarket, n as NuanzeServerCohortPositioningCell, o as NuanzeServerFundamentalsKeyData, p as NuanzeServerLeaderboardItem, r as NuanzeServerCollateralFlow, s as NuanzeServerFundamentalsPerformance, t as NuanzeServerCandle, u as NuanzeServerFundingObservation, v as NuanzeServerMarketPositioningCohortResponse, w as NuanzeServerOpenPosition, x as NuanzeServerMarketPositioningSideResponse, y as NuanzeServerMarketPositioningNotionalBucketResponse } from "../serverModelTypes-Ch4IifDo.js";
|
|
4
4
|
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-DewKYqCe.js";
|
|
5
5
|
import { S as isNuanzeServerFailureResponse, _ as NuanzeServerWalletPnlResponse, a as NuanzeServerFollowedLeaderboardResponse, b as NuanzeServerWalletSummaryResponse, c as NuanzeServerMarketByTickerResponse, d as NuanzeServerMarketTradesResponse, f as NuanzeServerMarketsResponse, g as NuanzeServerSubaccountLeaderboardResponse, h as NuanzeServerPlatformSummaryResponse, i as NuanzeServerFailureResponse, l as NuanzeServerMarketCandlesResponse, m as NuanzeServerOpenPositionsResponse, n as NuanzeServerCollateralFlowSummaryResponse, o as NuanzeServerFundingRatesResponse, p as NuanzeServerNewsResponse, r as NuanzeServerCollateralFlowsResponse, s as NuanzeServerLeaderboardResponse, t as NuanzeServerCollateralFlowSeriesResponse, u as NuanzeServerMarketPositionsResponse, v as NuanzeServerWalletPnlSeriesResponse, x as NuanzeServerWalletTradesResponse, y as NuanzeServerWalletPositionsResponse } from "../serverQueryTypes-BDI5rETc.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/nuanze-client",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "HTTP client for the Nuanze public analytics API - markets, wallets, trades, candles, flows, positioning, and open positions",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"module": "./dist/index.js",
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nadohq/shared": "^0.42.
|
|
44
|
+
"@nadohq/shared": "^0.42.1",
|
|
45
45
|
"axios": "1.16.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"bignumber.js": "11.1.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "1d0747b4be30ef4c907e5049ee51a34fac272dde"
|
|
54
54
|
}
|
package/src/NuanzeClient.ts
CHANGED
|
@@ -253,7 +253,8 @@ export class NuanzeClient {
|
|
|
253
253
|
/**
|
|
254
254
|
* Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted
|
|
255
255
|
* by PnL descending with nulls last. Subaccounts with no PnL in the window are included by
|
|
256
|
-
* default with null PnL/rank, zero counts, and no products.
|
|
256
|
+
* default with null PnL/rank, zero counts, and no products. Private subaccounts are excluded
|
|
257
|
+
* unless `includePrivate=true`.
|
|
257
258
|
*
|
|
258
259
|
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or
|
|
259
260
|
* `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.
|
|
@@ -509,7 +510,8 @@ export class NuanzeClient {
|
|
|
509
510
|
* Lists current open perpetual position legs across every market by signed unrealized PnL.
|
|
510
511
|
* Descending returns the largest gainers and ascending returns the largest losers. This is a
|
|
511
512
|
* latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.
|
|
512
|
-
*
|
|
513
|
+
* Private subaccounts are excluded unless `includePrivate=true`. Each row includes market
|
|
514
|
+
* identity and its source snapshot timestamp.
|
|
513
515
|
*
|
|
514
516
|
* @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or
|
|
515
517
|
* `BAD_REQUEST` when the query or cursor is invalid.
|
package/src/types/clientTypes.ts
CHANGED
|
@@ -216,6 +216,8 @@ export interface GetNuanzeFollowedLeaderboardParams {
|
|
|
216
216
|
timeframe: NuanzeLeaderboardTimeframe;
|
|
217
217
|
/** Include followed subaccounts with no PnL in the requested window, default true. */
|
|
218
218
|
includeUntraded?: boolean;
|
|
219
|
+
/** Include followed subaccounts with Private Mode enabled, default false. */
|
|
220
|
+
includePrivate?: boolean;
|
|
219
221
|
/** Page size, 1-200, default 100. */
|
|
220
222
|
limit?: number;
|
|
221
223
|
/**
|
|
@@ -742,7 +744,9 @@ export interface GetNuanzeOpenPositionsParams {
|
|
|
742
744
|
limit?: number;
|
|
743
745
|
/** Signed unrealized-PnL direction, default `desc` (largest gainers first). */
|
|
744
746
|
sortDirection?: NuanzeOpenPositionSortDirection;
|
|
745
|
-
/**
|
|
747
|
+
/** Include positions from subaccounts with Private Mode enabled, default false. */
|
|
748
|
+
includePrivate?: boolean;
|
|
749
|
+
/** Opaque exclusive cursor bound to the sort direction and private visibility. */
|
|
746
750
|
cursor?: string;
|
|
747
751
|
}
|
|
748
752
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeClient-ILfa7B1C.cjs","names":["mapNuanzeNewsResponse","mapNuanzeMarketsResponse","mapNuanzeMarketByTickerResponse","mapNuanzeFundingRatesResponse","mapNuanzeLeaderboardResponse","mapNuanzeSubaccountLeaderboardResponse","mapNuanzePlatformSummaryResponse","mapNuanzeFollowedLeaderboardResponse","mapNuanzeWalletSummaryResponse","mapNuanzeWalletPositionsResponse","mapNuanzeMarketTradesResponse","mapNuanzeMarketCandlesResponse","mapNuanzeWalletTradesResponse","mapNuanzeWalletPnlResponse","mapNuanzeWalletPnlSeriesResponse","mapNuanzeCollateralFlowsResponse","mapNuanzeCollateralFlowSummaryResponse","mapNuanzeCollateralFlowSeriesResponse","mapNuanzeMarketPositioningResponse","mapNuanzeMarketPositionsResponse","mapNuanzeOpenPositionsResponse","isNuanzeServerFailureResponse","NuanzeServerFailureError"],"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.stringify(response.data)}`,\n );\n }\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