@nadohq/nuanze-client 0.43.1 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/{NuanzeClient-BrjXP2Sz.cjs → NuanzeClient-C707zWgg.cjs} +51 -43
- package/dist/NuanzeClient-C707zWgg.cjs.map +1 -0
- package/dist/NuanzeClient.cjs +1 -1
- package/dist/NuanzeClient.d.cts +41 -33
- package/dist/NuanzeClient.d.cts.map +1 -1
- package/dist/NuanzeClient.d.ts +41 -33
- package/dist/NuanzeClient.d.ts.map +1 -1
- package/dist/NuanzeClient.js +50 -42
- package/dist/NuanzeClient.js.map +1 -1
- package/dist/{NuanzeServerFailureError-DQp7Lca2.d.ts → NuanzeServerFailureError-BS6Gvwoy.d.ts} +2 -2
- package/dist/{NuanzeServerFailureError-DQp7Lca2.d.ts.map → NuanzeServerFailureError-BS6Gvwoy.d.ts.map} +1 -1
- package/dist/{NuanzeServerFailureError-DMdmlNpW.d.cts → NuanzeServerFailureError-Bn2iKpoY.d.cts} +2 -2
- package/dist/{NuanzeServerFailureError-DMdmlNpW.d.cts.map → NuanzeServerFailureError-Bn2iKpoY.d.cts.map} +1 -1
- package/dist/{clientTypes-DfQsJWmx.d.cts → clientTypes-BAfxfhmA.d.cts} +55 -72
- package/dist/clientTypes-BAfxfhmA.d.cts.map +1 -0
- package/dist/{clientTypes-BPlIXBRh.d.ts → clientTypes-vIgldUM_.d.ts} +55 -72
- package/dist/clientTypes-vIgldUM_.d.ts.map +1 -0
- package/dist/dataMappers.cjs +1 -1
- package/dist/dataMappers.d.cts +2 -2
- package/dist/dataMappers.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/{serverQueryTypes-D5-euf7o.d.ts → serverQueryTypes-D8xcBytZ.d.ts} +9 -5
- package/dist/serverQueryTypes-D8xcBytZ.d.ts.map +1 -0
- package/dist/{serverQueryTypes-d03JU0mr.d.cts → serverQueryTypes-wuju0Njg.d.cts} +9 -5
- package/dist/serverQueryTypes-wuju0Njg.d.cts.map +1 -0
- package/dist/types/NuanzeServerFailureError.d.cts +1 -1
- package/dist/types/NuanzeServerFailureError.d.ts +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/serverQueryTypes.cjs.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +1 -1
- package/dist/types/serverQueryTypes.d.ts +1 -1
- package/dist/types/serverQueryTypes.js.map +1 -1
- package/package.json +3 -3
- package/src/NuanzeClient.ts +68 -53
- package/src/types/clientTypes.ts +42 -36
- package/src/types/serverQueryTypes.ts +8 -4
- package/dist/NuanzeClient-BrjXP2Sz.cjs.map +0 -1
- package/dist/clientTypes-BPlIXBRh.d.ts.map +0 -1
- package/dist/clientTypes-DfQsJWmx.d.cts.map +0 -1
- package/dist/serverQueryTypes-D5-euf7o.d.ts.map +0 -1
- package/dist/serverQueryTypes-d03JU0mr.d.cts.map +0 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-DyNrbcyr.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, U as NuanzeMarketSelector, 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-BAfxfhmA.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-DUggGfPj.cjs";
|
|
4
4
|
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-BJA7C7xg.cjs";
|
|
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-
|
|
6
|
-
import { t as NuanzeServerFailureError } from "../NuanzeServerFailureError-
|
|
7
|
-
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, NUANZE_CANDLE_INTERVALS, NUANZE_COHORT_KEYS, NUANZE_COVERAGES, NUANZE_ERROR_CODES, NUANZE_FLOW_BUCKETS, NUANZE_FLOW_EVENT_TYPES, NUANZE_FLOW_EVENT_TYPE_FILTERS, NUANZE_FLOW_TIMEFRAMES, NUANZE_FUNDAMENTALS_SOURCES, NUANZE_LEADERBOARD_TIMEFRAMES, NUANZE_MARGIN_KINDS, NUANZE_MARKET_POSITION_SORT_BYS, NUANZE_MARKET_POSITION_SORT_DIRECTIONS, NUANZE_MARKET_TRADING_STATUSES, NUANZE_MARKET_VENUES, NUANZE_MIN_POSITION_USDS, NUANZE_NEWS_ENTITY_ROLES, NUANZE_NEWS_EVENT_TYPES, NUANZE_NEWS_SENTIMENTS, NUANZE_NEWS_TIERS, NUANZE_NOTIONAL_BUCKETS, NUANZE_OPEN_POSITION_SORT_DIRECTIONS, NUANZE_PLATFORM_WINDOWS, NUANZE_PNL_WINDOWS, NUANZE_POSITIONING_GROUP_BYS, NUANZE_POSITION_SIDES, NUANZE_SERIES_METRICS, NUANZE_SOURCE_INTERVALS, NUANZE_TRADE_SIDES, NuanzeCandle, NuanzeCandleInterval, NuanzeCohortKey, NuanzeCohortPositioningCell, NuanzeCollateralFlow, NuanzeCollateralFlowPoint, NuanzeCoverage, NuanzeErrorCode, NuanzeFlowBucket, NuanzeFlowEventType, NuanzeFlowEventTypeFilter, NuanzeFlowTags, NuanzeFlowTimeframe, NuanzeFollowedLeaderboardItem, NuanzeFundamentalsKeyData, NuanzeFundamentalsPerformance, NuanzeFundamentalsSocial, NuanzeFundamentalsSource, NuanzeFundamentalsValuation, NuanzeFundingObservation, NuanzeFundingRate, NuanzeLatestTicker, NuanzeLeaderboardItem, NuanzeLeaderboardTimeframe, NuanzeMarginKind, NuanzeMarket, NuanzeMarketComponentUpdatedAt, NuanzeMarketDetail, NuanzeMarketIdentity, NuanzeMarketPosition, NuanzeMarketPositionSortBy, NuanzeMarketPositionSortDirection, NuanzeMarketPositioningBase, NuanzeMarketPositioningCohortResponse, NuanzeMarketPositioningNotionalBucketResponse, NuanzeMarketPositioningSideResponse, NuanzeMarketTrade, NuanzeMarketTradingStatus, NuanzeMarketVenue, NuanzeMinPositionUsd, NuanzeNewsEntity, NuanzeNewsEntityRole, NuanzeNewsEventType, NuanzeNewsSentiment, NuanzeNewsStory, NuanzeNewsTier, NuanzeNotionalBucket, NuanzeNotionalBucketPositioningCell, NuanzeOpenPosition, NuanzeOpenPositionSortDirection, NuanzePlatformDeltas, NuanzePlatformWindow, NuanzePnlWindow, NuanzePositionSide, NuanzePositioningCellBase, NuanzePositioningGroupBy, NuanzePositioningTotals, NuanzeSeriesMetric, NuanzeSeriesPoint, NuanzeServerCandle, NuanzeServerCohortPositioningCell, NuanzeServerCollateralFlow, NuanzeServerCollateralFlowPoint, NuanzeServerCollateralFlowSeriesResponse, NuanzeServerCollateralFlowSummaryResponse, NuanzeServerCollateralFlowsResponse, NuanzeServerFailureError, NuanzeServerFailureResponse, NuanzeServerFollowedLeaderboardItem, NuanzeServerFollowedLeaderboardResponse, NuanzeServerFundamentalsKeyData, NuanzeServerFundamentalsPerformance, NuanzeServerFundamentalsSocial, NuanzeServerFundamentalsValuation, NuanzeServerFundingObservation, NuanzeServerFundingRate, NuanzeServerFundingRatesResponse, NuanzeServerLatestTicker, NuanzeServerLeaderboardItem, NuanzeServerLeaderboardResponse, NuanzeServerMarket, NuanzeServerMarketByTickerResponse, NuanzeServerMarketCandlesResponse, NuanzeServerMarketDetail, NuanzeServerMarketPosition, NuanzeServerMarketPositioningBase, NuanzeServerMarketPositioningCohortResponse, NuanzeServerMarketPositioningNotionalBucketResponse, NuanzeServerMarketPositioningResponse, NuanzeServerMarketPositioningSideResponse, NuanzeServerMarketPositionsResponse, NuanzeServerMarketTrade, NuanzeServerMarketTradesResponse, NuanzeServerMarketsResponse, NuanzeServerNewsResponse, NuanzeServerNotionalBucketPositioningCell, NuanzeServerOpenPosition, NuanzeServerOpenPositionsResponse, NuanzeServerPlatformDeltas, NuanzeServerPlatformSummaryResponse, NuanzeServerPositioningCellBase, NuanzeServerPositioningTotals, NuanzeServerSeriesPoint, NuanzeServerSidePositioningCell, NuanzeServerStockFundamentals, NuanzeServerSubaccountLeaderboardItem, NuanzeServerSubaccountLeaderboardResponse, NuanzeServerWalletPnlResponse, NuanzeServerWalletPnlSeriesResponse, NuanzeServerWalletPosition, NuanzeServerWalletPositionsResponse, NuanzeServerWalletSummaryResponse, NuanzeServerWalletTrade, NuanzeServerWalletTradesResponse, NuanzeSidePositioningCell, NuanzeSourceInterval, NuanzeStockFundamentals, NuanzeSubaccountLeaderboardItem, NuanzeTradeSide, NuanzeWalletPosition, NuanzeWalletTrade, isNuanzeServerFailureResponse };
|
|
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-wuju0Njg.cjs";
|
|
6
|
+
import { t as NuanzeServerFailureError } from "../NuanzeServerFailureError-Bn2iKpoY.cjs";
|
|
7
|
+
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, NUANZE_CANDLE_INTERVALS, NUANZE_COHORT_KEYS, NUANZE_COVERAGES, NUANZE_ERROR_CODES, NUANZE_FLOW_BUCKETS, NUANZE_FLOW_EVENT_TYPES, NUANZE_FLOW_EVENT_TYPE_FILTERS, NUANZE_FLOW_TIMEFRAMES, NUANZE_FUNDAMENTALS_SOURCES, NUANZE_LEADERBOARD_TIMEFRAMES, NUANZE_MARGIN_KINDS, NUANZE_MARKET_POSITION_SORT_BYS, NUANZE_MARKET_POSITION_SORT_DIRECTIONS, NUANZE_MARKET_TRADING_STATUSES, NUANZE_MARKET_VENUES, NUANZE_MIN_POSITION_USDS, NUANZE_NEWS_ENTITY_ROLES, NUANZE_NEWS_EVENT_TYPES, NUANZE_NEWS_SENTIMENTS, NUANZE_NEWS_TIERS, NUANZE_NOTIONAL_BUCKETS, NUANZE_OPEN_POSITION_SORT_DIRECTIONS, NUANZE_PLATFORM_WINDOWS, NUANZE_PNL_WINDOWS, NUANZE_POSITIONING_GROUP_BYS, NUANZE_POSITION_SIDES, NUANZE_SERIES_METRICS, NUANZE_SOURCE_INTERVALS, NUANZE_TRADE_SIDES, NuanzeCandle, NuanzeCandleInterval, NuanzeCohortKey, NuanzeCohortPositioningCell, NuanzeCollateralFlow, NuanzeCollateralFlowPoint, NuanzeCoverage, NuanzeErrorCode, NuanzeFlowBucket, NuanzeFlowEventType, NuanzeFlowEventTypeFilter, NuanzeFlowTags, NuanzeFlowTimeframe, NuanzeFollowedLeaderboardItem, NuanzeFundamentalsKeyData, NuanzeFundamentalsPerformance, NuanzeFundamentalsSocial, NuanzeFundamentalsSource, NuanzeFundamentalsValuation, NuanzeFundingObservation, NuanzeFundingRate, NuanzeLatestTicker, NuanzeLeaderboardItem, NuanzeLeaderboardTimeframe, NuanzeMarginKind, NuanzeMarket, NuanzeMarketComponentUpdatedAt, NuanzeMarketDetail, NuanzeMarketIdentity, NuanzeMarketPosition, NuanzeMarketPositionSortBy, NuanzeMarketPositionSortDirection, NuanzeMarketPositioningBase, NuanzeMarketPositioningCohortResponse, NuanzeMarketPositioningNotionalBucketResponse, NuanzeMarketPositioningSideResponse, NuanzeMarketSelector, NuanzeMarketTrade, NuanzeMarketTradingStatus, NuanzeMarketVenue, NuanzeMinPositionUsd, NuanzeNewsEntity, NuanzeNewsEntityRole, NuanzeNewsEventType, NuanzeNewsSentiment, NuanzeNewsStory, NuanzeNewsTier, NuanzeNotionalBucket, NuanzeNotionalBucketPositioningCell, NuanzeOpenPosition, NuanzeOpenPositionSortDirection, NuanzePlatformDeltas, NuanzePlatformWindow, NuanzePnlWindow, NuanzePositionSide, NuanzePositioningCellBase, NuanzePositioningGroupBy, NuanzePositioningTotals, NuanzeSeriesMetric, NuanzeSeriesPoint, NuanzeServerCandle, NuanzeServerCohortPositioningCell, NuanzeServerCollateralFlow, NuanzeServerCollateralFlowPoint, NuanzeServerCollateralFlowSeriesResponse, NuanzeServerCollateralFlowSummaryResponse, NuanzeServerCollateralFlowsResponse, NuanzeServerFailureError, NuanzeServerFailureResponse, NuanzeServerFollowedLeaderboardItem, NuanzeServerFollowedLeaderboardResponse, NuanzeServerFundamentalsKeyData, NuanzeServerFundamentalsPerformance, NuanzeServerFundamentalsSocial, NuanzeServerFundamentalsValuation, NuanzeServerFundingObservation, NuanzeServerFundingRate, NuanzeServerFundingRatesResponse, NuanzeServerLatestTicker, NuanzeServerLeaderboardItem, NuanzeServerLeaderboardResponse, NuanzeServerMarket, NuanzeServerMarketByTickerResponse, NuanzeServerMarketCandlesResponse, NuanzeServerMarketDetail, NuanzeServerMarketPosition, NuanzeServerMarketPositioningBase, NuanzeServerMarketPositioningCohortResponse, NuanzeServerMarketPositioningNotionalBucketResponse, NuanzeServerMarketPositioningResponse, NuanzeServerMarketPositioningSideResponse, NuanzeServerMarketPositionsResponse, NuanzeServerMarketTrade, NuanzeServerMarketTradesResponse, NuanzeServerMarketsResponse, NuanzeServerNewsResponse, NuanzeServerNotionalBucketPositioningCell, NuanzeServerOpenPosition, NuanzeServerOpenPositionsResponse, NuanzeServerPlatformDeltas, NuanzeServerPlatformSummaryResponse, NuanzeServerPositioningCellBase, NuanzeServerPositioningTotals, NuanzeServerSeriesPoint, NuanzeServerSidePositioningCell, NuanzeServerStockFundamentals, NuanzeServerSubaccountLeaderboardItem, NuanzeServerSubaccountLeaderboardResponse, NuanzeServerWalletPnlResponse, NuanzeServerWalletPnlSeriesResponse, NuanzeServerWalletPosition, NuanzeServerWalletPositionsResponse, NuanzeServerWalletSummaryResponse, NuanzeServerWalletTrade, NuanzeServerWalletTradesResponse, NuanzeSidePositioningCell, NuanzeSourceInterval, NuanzeStockFundamentals, NuanzeSubaccountLeaderboardItem, NuanzeTradeSide, NuanzeWalletPosition, NuanzeWalletTrade, isNuanzeServerFailureResponse };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-CreYRHbE.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, U as NuanzeMarketSelector, 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-vIgldUM_.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-DL_58zos.js";
|
|
4
4
|
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-BXfbZV_p.js";
|
|
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-
|
|
6
|
-
import { t as NuanzeServerFailureError } from "../NuanzeServerFailureError-
|
|
7
|
-
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, NUANZE_CANDLE_INTERVALS, NUANZE_COHORT_KEYS, NUANZE_COVERAGES, NUANZE_ERROR_CODES, NUANZE_FLOW_BUCKETS, NUANZE_FLOW_EVENT_TYPES, NUANZE_FLOW_EVENT_TYPE_FILTERS, NUANZE_FLOW_TIMEFRAMES, NUANZE_FUNDAMENTALS_SOURCES, NUANZE_LEADERBOARD_TIMEFRAMES, NUANZE_MARGIN_KINDS, NUANZE_MARKET_POSITION_SORT_BYS, NUANZE_MARKET_POSITION_SORT_DIRECTIONS, NUANZE_MARKET_TRADING_STATUSES, NUANZE_MARKET_VENUES, NUANZE_MIN_POSITION_USDS, NUANZE_NEWS_ENTITY_ROLES, NUANZE_NEWS_EVENT_TYPES, NUANZE_NEWS_SENTIMENTS, NUANZE_NEWS_TIERS, NUANZE_NOTIONAL_BUCKETS, NUANZE_OPEN_POSITION_SORT_DIRECTIONS, NUANZE_PLATFORM_WINDOWS, NUANZE_PNL_WINDOWS, NUANZE_POSITIONING_GROUP_BYS, NUANZE_POSITION_SIDES, NUANZE_SERIES_METRICS, NUANZE_SOURCE_INTERVALS, NUANZE_TRADE_SIDES, NuanzeCandle, NuanzeCandleInterval, NuanzeCohortKey, NuanzeCohortPositioningCell, NuanzeCollateralFlow, NuanzeCollateralFlowPoint, NuanzeCoverage, NuanzeErrorCode, NuanzeFlowBucket, NuanzeFlowEventType, NuanzeFlowEventTypeFilter, NuanzeFlowTags, NuanzeFlowTimeframe, NuanzeFollowedLeaderboardItem, NuanzeFundamentalsKeyData, NuanzeFundamentalsPerformance, NuanzeFundamentalsSocial, NuanzeFundamentalsSource, NuanzeFundamentalsValuation, NuanzeFundingObservation, NuanzeFundingRate, NuanzeLatestTicker, NuanzeLeaderboardItem, NuanzeLeaderboardTimeframe, NuanzeMarginKind, NuanzeMarket, NuanzeMarketComponentUpdatedAt, NuanzeMarketDetail, NuanzeMarketIdentity, NuanzeMarketPosition, NuanzeMarketPositionSortBy, NuanzeMarketPositionSortDirection, NuanzeMarketPositioningBase, NuanzeMarketPositioningCohortResponse, NuanzeMarketPositioningNotionalBucketResponse, NuanzeMarketPositioningSideResponse, NuanzeMarketTrade, NuanzeMarketTradingStatus, NuanzeMarketVenue, NuanzeMinPositionUsd, NuanzeNewsEntity, NuanzeNewsEntityRole, NuanzeNewsEventType, NuanzeNewsSentiment, NuanzeNewsStory, NuanzeNewsTier, NuanzeNotionalBucket, NuanzeNotionalBucketPositioningCell, NuanzeOpenPosition, NuanzeOpenPositionSortDirection, NuanzePlatformDeltas, NuanzePlatformWindow, NuanzePnlWindow, NuanzePositionSide, NuanzePositioningCellBase, NuanzePositioningGroupBy, NuanzePositioningTotals, NuanzeSeriesMetric, NuanzeSeriesPoint, NuanzeServerCandle, NuanzeServerCohortPositioningCell, NuanzeServerCollateralFlow, NuanzeServerCollateralFlowPoint, NuanzeServerCollateralFlowSeriesResponse, NuanzeServerCollateralFlowSummaryResponse, NuanzeServerCollateralFlowsResponse, NuanzeServerFailureError, NuanzeServerFailureResponse, NuanzeServerFollowedLeaderboardItem, NuanzeServerFollowedLeaderboardResponse, NuanzeServerFundamentalsKeyData, NuanzeServerFundamentalsPerformance, NuanzeServerFundamentalsSocial, NuanzeServerFundamentalsValuation, NuanzeServerFundingObservation, NuanzeServerFundingRate, NuanzeServerFundingRatesResponse, NuanzeServerLatestTicker, NuanzeServerLeaderboardItem, NuanzeServerLeaderboardResponse, NuanzeServerMarket, NuanzeServerMarketByTickerResponse, NuanzeServerMarketCandlesResponse, NuanzeServerMarketDetail, NuanzeServerMarketPosition, NuanzeServerMarketPositioningBase, NuanzeServerMarketPositioningCohortResponse, NuanzeServerMarketPositioningNotionalBucketResponse, NuanzeServerMarketPositioningResponse, NuanzeServerMarketPositioningSideResponse, NuanzeServerMarketPositionsResponse, NuanzeServerMarketTrade, NuanzeServerMarketTradesResponse, NuanzeServerMarketsResponse, NuanzeServerNewsResponse, NuanzeServerNotionalBucketPositioningCell, NuanzeServerOpenPosition, NuanzeServerOpenPositionsResponse, NuanzeServerPlatformDeltas, NuanzeServerPlatformSummaryResponse, NuanzeServerPositioningCellBase, NuanzeServerPositioningTotals, NuanzeServerSeriesPoint, NuanzeServerSidePositioningCell, NuanzeServerStockFundamentals, NuanzeServerSubaccountLeaderboardItem, NuanzeServerSubaccountLeaderboardResponse, NuanzeServerWalletPnlResponse, NuanzeServerWalletPnlSeriesResponse, NuanzeServerWalletPosition, NuanzeServerWalletPositionsResponse, NuanzeServerWalletSummaryResponse, NuanzeServerWalletTrade, NuanzeServerWalletTradesResponse, NuanzeSidePositioningCell, NuanzeSourceInterval, NuanzeStockFundamentals, NuanzeSubaccountLeaderboardItem, NuanzeTradeSide, NuanzeWalletPosition, NuanzeWalletTrade, isNuanzeServerFailureResponse };
|
|
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-D8xcBytZ.js";
|
|
6
|
+
import { t as NuanzeServerFailureError } from "../NuanzeServerFailureError-BS6Gvwoy.js";
|
|
7
|
+
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, NUANZE_CANDLE_INTERVALS, NUANZE_COHORT_KEYS, NUANZE_COVERAGES, NUANZE_ERROR_CODES, NUANZE_FLOW_BUCKETS, NUANZE_FLOW_EVENT_TYPES, NUANZE_FLOW_EVENT_TYPE_FILTERS, NUANZE_FLOW_TIMEFRAMES, NUANZE_FUNDAMENTALS_SOURCES, NUANZE_LEADERBOARD_TIMEFRAMES, NUANZE_MARGIN_KINDS, NUANZE_MARKET_POSITION_SORT_BYS, NUANZE_MARKET_POSITION_SORT_DIRECTIONS, NUANZE_MARKET_TRADING_STATUSES, NUANZE_MARKET_VENUES, NUANZE_MIN_POSITION_USDS, NUANZE_NEWS_ENTITY_ROLES, NUANZE_NEWS_EVENT_TYPES, NUANZE_NEWS_SENTIMENTS, NUANZE_NEWS_TIERS, NUANZE_NOTIONAL_BUCKETS, NUANZE_OPEN_POSITION_SORT_DIRECTIONS, NUANZE_PLATFORM_WINDOWS, NUANZE_PNL_WINDOWS, NUANZE_POSITIONING_GROUP_BYS, NUANZE_POSITION_SIDES, NUANZE_SERIES_METRICS, NUANZE_SOURCE_INTERVALS, NUANZE_TRADE_SIDES, NuanzeCandle, NuanzeCandleInterval, NuanzeCohortKey, NuanzeCohortPositioningCell, NuanzeCollateralFlow, NuanzeCollateralFlowPoint, NuanzeCoverage, NuanzeErrorCode, NuanzeFlowBucket, NuanzeFlowEventType, NuanzeFlowEventTypeFilter, NuanzeFlowTags, NuanzeFlowTimeframe, NuanzeFollowedLeaderboardItem, NuanzeFundamentalsKeyData, NuanzeFundamentalsPerformance, NuanzeFundamentalsSocial, NuanzeFundamentalsSource, NuanzeFundamentalsValuation, NuanzeFundingObservation, NuanzeFundingRate, NuanzeLatestTicker, NuanzeLeaderboardItem, NuanzeLeaderboardTimeframe, NuanzeMarginKind, NuanzeMarket, NuanzeMarketComponentUpdatedAt, NuanzeMarketDetail, NuanzeMarketIdentity, NuanzeMarketPosition, NuanzeMarketPositionSortBy, NuanzeMarketPositionSortDirection, NuanzeMarketPositioningBase, NuanzeMarketPositioningCohortResponse, NuanzeMarketPositioningNotionalBucketResponse, NuanzeMarketPositioningSideResponse, NuanzeMarketSelector, NuanzeMarketTrade, NuanzeMarketTradingStatus, NuanzeMarketVenue, NuanzeMinPositionUsd, NuanzeNewsEntity, NuanzeNewsEntityRole, NuanzeNewsEventType, NuanzeNewsSentiment, NuanzeNewsStory, NuanzeNewsTier, NuanzeNotionalBucket, NuanzeNotionalBucketPositioningCell, NuanzeOpenPosition, NuanzeOpenPositionSortDirection, NuanzePlatformDeltas, NuanzePlatformWindow, NuanzePnlWindow, NuanzePositionSide, NuanzePositioningCellBase, NuanzePositioningGroupBy, NuanzePositioningTotals, NuanzeSeriesMetric, NuanzeSeriesPoint, NuanzeServerCandle, NuanzeServerCohortPositioningCell, NuanzeServerCollateralFlow, NuanzeServerCollateralFlowPoint, NuanzeServerCollateralFlowSeriesResponse, NuanzeServerCollateralFlowSummaryResponse, NuanzeServerCollateralFlowsResponse, NuanzeServerFailureError, NuanzeServerFailureResponse, NuanzeServerFollowedLeaderboardItem, NuanzeServerFollowedLeaderboardResponse, NuanzeServerFundamentalsKeyData, NuanzeServerFundamentalsPerformance, NuanzeServerFundamentalsSocial, NuanzeServerFundamentalsValuation, NuanzeServerFundingObservation, NuanzeServerFundingRate, NuanzeServerFundingRatesResponse, NuanzeServerLatestTicker, NuanzeServerLeaderboardItem, NuanzeServerLeaderboardResponse, NuanzeServerMarket, NuanzeServerMarketByTickerResponse, NuanzeServerMarketCandlesResponse, NuanzeServerMarketDetail, NuanzeServerMarketPosition, NuanzeServerMarketPositioningBase, NuanzeServerMarketPositioningCohortResponse, NuanzeServerMarketPositioningNotionalBucketResponse, NuanzeServerMarketPositioningResponse, NuanzeServerMarketPositioningSideResponse, NuanzeServerMarketPositionsResponse, NuanzeServerMarketTrade, NuanzeServerMarketTradesResponse, NuanzeServerMarketsResponse, NuanzeServerNewsResponse, NuanzeServerNotionalBucketPositioningCell, NuanzeServerOpenPosition, NuanzeServerOpenPositionsResponse, NuanzeServerPlatformDeltas, NuanzeServerPlatformSummaryResponse, NuanzeServerPositioningCellBase, NuanzeServerPositioningTotals, NuanzeServerSeriesPoint, NuanzeServerSidePositioningCell, NuanzeServerStockFundamentals, NuanzeServerSubaccountLeaderboardItem, NuanzeServerSubaccountLeaderboardResponse, NuanzeServerWalletPnlResponse, NuanzeServerWalletPnlSeriesResponse, NuanzeServerWalletPosition, NuanzeServerWalletPositionsResponse, NuanzeServerWalletSummaryResponse, NuanzeServerWalletTrade, NuanzeServerWalletTradesResponse, NuanzeSidePositioningCell, NuanzeSourceInterval, NuanzeStockFundamentals, NuanzeSubaccountLeaderboardItem, NuanzeTradeSide, NuanzeWalletPosition, NuanzeWalletTrade, isNuanzeServerFailureResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverQueryTypes.cjs","names":[],"sources":["../../src/types/serverQueryTypes.ts"],"sourcesContent":["import type {\n NuanzeCandleInterval,\n NuanzeCoverage,\n NuanzeFlowBucket,\n NuanzeFlowTimeframe,\n NuanzeLeaderboardTimeframe,\n NuanzeMarketVenue,\n NuanzePlatformWindow,\n NuanzePnlWindow,\n NuanzeSeriesMetric,\n NuanzeSourceInterval,\n} from './clientModelTypes';\nimport { NuanzeNewsStory } from './clientModelTypes';\nimport { NuanzeErrorCode } from './nuanzeErrorCodes';\nimport {\n NuanzeServerCandle,\n NuanzeServerCollateralFlow,\n NuanzeServerCollateralFlowPoint,\n NuanzeServerFollowedLeaderboardItem,\n NuanzeServerFundingRate,\n NuanzeServerLeaderboardItem,\n NuanzeServerMarket,\n NuanzeServerMarketDetail,\n NuanzeServerMarketPosition,\n NuanzeServerMarketTrade,\n NuanzeServerOpenPosition,\n NuanzeServerPlatformDeltas,\n NuanzeServerSeriesPoint,\n NuanzeServerSubaccountLeaderboardItem,\n NuanzeServerWalletPosition,\n NuanzeServerWalletTrade,\n} from './serverModelTypes';\n\n/**\n * Failure envelope returned with every non-2xx response.\n *\n * Structurally unrelated to `BaseServerFailureResponse`: Nuanze nests a string `code` under `error`\n * instead of carrying a top-level numeric `error_code` and `status: 'failure'`.\n */\nexport interface NuanzeServerFailureResponse {\n error: {\n code: NuanzeErrorCode;\n message: string;\n requestId: string;\n };\n}\n\n/**\n * `GET /markets` response as returned on the wire.\n */\nexport interface NuanzeServerMarketsResponse {\n markets: NuanzeServerMarket[];\n count: number;\n asOf: string;\n}\n\n/**\n * `GET /news` response as returned on the wire. Stories have no decimals.\n */\nexport interface NuanzeServerNewsResponse {\n stories: NuanzeNewsStory[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}` response as returned on the wire.\n */\nexport type NuanzeServerMarketByTickerResponse = NuanzeServerMarketDetail;\n\n/**\n * `GET /funding/rates` response as returned on the wire.\n */\nexport interface NuanzeServerFundingRatesResponse {\n rates: NuanzeServerFundingRate[];\n asOf: string;\n}\n\n/**\n * `GET /leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerLeaderboardItem[];\n limit: number;\n offset: number;\n total: number;\n asOf: string;\n}\n\n/**\n * `GET /leaderboard/subaccounts` response as returned on the wire.\n */\nexport interface NuanzeServerSubaccountLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n totalCount: number;\n items: NuanzeServerSubaccountLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerFollowedLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerFollowedLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /platform/summary` response as returned on the wire.\n */\nexport interface NuanzeServerPlatformSummaryResponse {\n window: NuanzePlatformWindow;\n volume24h: string;\n trades24h: number;\n traders24h: number;\n windowVolume: string;\n windowTrades: number;\n windowTraders: number;\n deltas: NuanzeServerPlatformDeltas;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}` response as returned on the wire.\n */\nexport interface NuanzeServerWalletSummaryResponse {\n address: string;\n subaccountName: string | null;\n subaccountCount: number;\n pnlWindow: NuanzePnlWindow;\n accountPnl: string;\n windowPnl: string;\n equity: string | null;\n cumulativeVolume: string;\n windowVolume: string;\n totalTrades: number;\n wins: number;\n losses: number;\n winRate: string | null;\n snapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/positions` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPositionsResponse {\n address: string;\n positions: NuanzeServerWalletPosition[];\n count: number;\n newestSnapshotAt: string | null;\n oldestSnapshotAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/trades` response as returned on the wire.\n */\nexport interface NuanzeServerMarketTradesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n trades: NuanzeServerMarketTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/candles` response as returned on the wire.\n */\nexport interface NuanzeServerMarketCandlesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n interval: NuanzeCandleInterval;\n candles: NuanzeServerCandle[];\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/trades` response as returned on the wire.\n */\nexport interface NuanzeServerWalletTradesResponse {\n address: string;\n trades: NuanzeServerWalletTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlResponse {\n address: string;\n subaccountName: string | null;\n window: NuanzePnlWindow;\n windowStart: string;\n windowEnd: string;\n openingAccountPnl: string;\n latestAccountPnl: string;\n windowPnl: string;\n openingEquity: string | null;\n latestEquity: string | null;\n volumeDelta: string;\n sourceInterval: NuanzeSourceInterval;\n latestSnapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl/series` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlSeriesResponse {\n address: string;\n subaccountName: string | null;\n metric: NuanzeSeriesMetric;\n window: NuanzePnlWindow;\n points: NuanzeServerSeriesPoint[];\n sourceInterval: NuanzeSourceInterval;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /flows` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowsResponse {\n events: NuanzeServerCollateralFlow[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/summary` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSummaryResponse {\n timeframe: NuanzeFlowTimeframe;\n deposited: string;\n withdrawn: string;\n net: string;\n gross: string;\n depositCount: number;\n withdrawalCount: number;\n valuedCount: number;\n unvaluedCount: number;\n priorNet: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/series` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSeriesResponse {\n timeframe: NuanzeFlowTimeframe;\n bucket: NuanzeFlowBucket;\n points: NuanzeServerCollateralFlowPoint[];\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/positions` response as returned on the wire.\n */\nexport interface NuanzeServerMarketPositionsResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n positions: NuanzeServerMarketPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /positions` response as returned on the wire.\n */\nexport interface NuanzeServerOpenPositionsResponse {\n positions: NuanzeServerOpenPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * Checks whether a response body is a Nuanze failure envelope. The `code` is not compared against\n * {@link NUANZE_ERROR_CODES}, so a code added by a newer API release still reaches the caller.\n */\nexport function isNuanzeServerFailureResponse(\n data: unknown,\n): data is NuanzeServerFailureResponse {\n if (typeof data !== 'object' || data === null || !('error' in data)) {\n return false;\n }\n\n const { error } = data;\n return (\n typeof error === 'object' &&\n error !== null &&\n typeof (error as { code?: unknown }).code === 'string' &&\n typeof (error as { message?: unknown }).message === 'string'\n );\n}\n"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"serverQueryTypes.cjs","names":[],"sources":["../../src/types/serverQueryTypes.ts"],"sourcesContent":["import type {\n NuanzeCandleInterval,\n NuanzeCoverage,\n NuanzeFlowBucket,\n NuanzeFlowTimeframe,\n NuanzeLeaderboardTimeframe,\n NuanzeMarketVenue,\n NuanzePlatformWindow,\n NuanzePnlWindow,\n NuanzeSeriesMetric,\n NuanzeSourceInterval,\n} from './clientModelTypes';\nimport { NuanzeNewsStory } from './clientModelTypes';\nimport { NuanzeErrorCode } from './nuanzeErrorCodes';\nimport {\n NuanzeServerCandle,\n NuanzeServerCollateralFlow,\n NuanzeServerCollateralFlowPoint,\n NuanzeServerFollowedLeaderboardItem,\n NuanzeServerFundingRate,\n NuanzeServerLeaderboardItem,\n NuanzeServerMarket,\n NuanzeServerMarketDetail,\n NuanzeServerMarketPosition,\n NuanzeServerMarketTrade,\n NuanzeServerOpenPosition,\n NuanzeServerPlatformDeltas,\n NuanzeServerSeriesPoint,\n NuanzeServerSubaccountLeaderboardItem,\n NuanzeServerWalletPosition,\n NuanzeServerWalletTrade,\n} from './serverModelTypes';\n\n/**\n * Failure envelope returned with every non-2xx response.\n *\n * Structurally unrelated to `BaseServerFailureResponse`: Nuanze nests a string `code` under `error`\n * instead of carrying a top-level numeric `error_code` and `status: 'failure'`.\n */\nexport interface NuanzeServerFailureResponse {\n error: {\n code: NuanzeErrorCode;\n message: string;\n requestId: string;\n };\n}\n\n/**\n * `GET /markets` response as returned on the wire.\n */\nexport interface NuanzeServerMarketsResponse {\n markets: NuanzeServerMarket[];\n count: number;\n asOf: string;\n}\n\n/**\n * `GET /news` response as returned on the wire. Stories have no decimals.\n */\nexport interface NuanzeServerNewsResponse {\n stories: NuanzeNewsStory[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}` response as returned on the wire. The `{ticker}` path segment accepts a\n * canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport type NuanzeServerMarketByTickerResponse = NuanzeServerMarketDetail;\n\n/**\n * `GET /funding/rates` response as returned on the wire.\n */\nexport interface NuanzeServerFundingRatesResponse {\n rates: NuanzeServerFundingRate[];\n asOf: string;\n}\n\n/**\n * `GET /leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerLeaderboardItem[];\n limit: number;\n offset: number;\n total: number;\n asOf: string;\n}\n\n/**\n * `GET /leaderboard/subaccounts` response as returned on the wire.\n */\nexport interface NuanzeServerSubaccountLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n totalCount: number;\n items: NuanzeServerSubaccountLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerFollowedLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerFollowedLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /platform/summary` response as returned on the wire.\n */\nexport interface NuanzeServerPlatformSummaryResponse {\n window: NuanzePlatformWindow;\n volume24h: string;\n trades24h: number;\n traders24h: number;\n windowVolume: string;\n windowTrades: number;\n windowTraders: number;\n deltas: NuanzeServerPlatformDeltas;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}` response as returned on the wire.\n */\nexport interface NuanzeServerWalletSummaryResponse {\n address: string;\n subaccountName: string | null;\n subaccountCount: number;\n pnlWindow: NuanzePnlWindow;\n accountPnl: string;\n windowPnl: string;\n equity: string | null;\n cumulativeVolume: string;\n windowVolume: string;\n totalTrades: number;\n wins: number;\n losses: number;\n winRate: string | null;\n snapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/positions` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPositionsResponse {\n address: string;\n positions: NuanzeServerWalletPosition[];\n count: number;\n newestSnapshotAt: string | null;\n oldestSnapshotAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/trades` response as returned on the wire. The `{ticker}` path segment\n * accepts a canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport interface NuanzeServerMarketTradesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n trades: NuanzeServerMarketTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/candles` response as returned on the wire. The `{ticker}` path segment\n * accepts a canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport interface NuanzeServerMarketCandlesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n interval: NuanzeCandleInterval;\n candles: NuanzeServerCandle[];\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/trades` response as returned on the wire.\n */\nexport interface NuanzeServerWalletTradesResponse {\n address: string;\n trades: NuanzeServerWalletTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlResponse {\n address: string;\n subaccountName: string | null;\n window: NuanzePnlWindow;\n windowStart: string;\n windowEnd: string;\n openingAccountPnl: string;\n latestAccountPnl: string;\n windowPnl: string;\n openingEquity: string | null;\n latestEquity: string | null;\n volumeDelta: string;\n sourceInterval: NuanzeSourceInterval;\n latestSnapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl/series` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlSeriesResponse {\n address: string;\n subaccountName: string | null;\n metric: NuanzeSeriesMetric;\n window: NuanzePnlWindow;\n points: NuanzeServerSeriesPoint[];\n sourceInterval: NuanzeSourceInterval;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /flows` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowsResponse {\n events: NuanzeServerCollateralFlow[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/summary` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSummaryResponse {\n timeframe: NuanzeFlowTimeframe;\n deposited: string;\n withdrawn: string;\n net: string;\n gross: string;\n depositCount: number;\n withdrawalCount: number;\n valuedCount: number;\n unvaluedCount: number;\n priorNet: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/series` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSeriesResponse {\n timeframe: NuanzeFlowTimeframe;\n bucket: NuanzeFlowBucket;\n points: NuanzeServerCollateralFlowPoint[];\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/positions` response as returned on the wire. The `{ticker}` path segment\n * accepts a canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport interface NuanzeServerMarketPositionsResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n positions: NuanzeServerMarketPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /positions` response as returned on the wire.\n */\nexport interface NuanzeServerOpenPositionsResponse {\n positions: NuanzeServerOpenPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * Checks whether a response body is a Nuanze failure envelope. The `code` is not compared against\n * {@link NUANZE_ERROR_CODES}, so a code added by a newer API release still reaches the caller.\n */\nexport function isNuanzeServerFailureResponse(\n data: unknown,\n): data is NuanzeServerFailureResponse {\n if (typeof data !== 'object' || data === null || !('error' in data)) {\n return false;\n }\n\n const { error } = data;\n return (\n typeof error === 'object' &&\n error !== null &&\n typeof (error as { code?: unknown }).code === 'string' &&\n typeof (error as { message?: unknown }).message === 'string'\n );\n}\n"],"mappings":";;;;;;AA2SA,SAAgB,8BACd,MACqC;CACrC,IAAI,OAAO,SAAS,YAAY,SAAS,QAAQ,EAAE,WAAW,OAC5D,OAAO;CAGT,MAAM,EAAE,UAAU;CAClB,OACE,OAAO,UAAU,YACjB,UAAU,QACV,OAAQ,MAA6B,SAAS,YAC9C,OAAQ,MAAgC,YAAY;AAExD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-wuju0Njg.cjs";
|
|
2
2
|
export { NuanzeServerCollateralFlowSeriesResponse, NuanzeServerCollateralFlowSummaryResponse, NuanzeServerCollateralFlowsResponse, NuanzeServerFailureResponse, NuanzeServerFollowedLeaderboardResponse, NuanzeServerFundingRatesResponse, NuanzeServerLeaderboardResponse, NuanzeServerMarketByTickerResponse, NuanzeServerMarketCandlesResponse, NuanzeServerMarketPositionsResponse, NuanzeServerMarketTradesResponse, NuanzeServerMarketsResponse, NuanzeServerNewsResponse, NuanzeServerOpenPositionsResponse, NuanzeServerPlatformSummaryResponse, NuanzeServerSubaccountLeaderboardResponse, NuanzeServerWalletPnlResponse, NuanzeServerWalletPnlSeriesResponse, NuanzeServerWalletPositionsResponse, NuanzeServerWalletSummaryResponse, NuanzeServerWalletTradesResponse, isNuanzeServerFailureResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-D8xcBytZ.js";
|
|
2
2
|
export { NuanzeServerCollateralFlowSeriesResponse, NuanzeServerCollateralFlowSummaryResponse, NuanzeServerCollateralFlowsResponse, NuanzeServerFailureResponse, NuanzeServerFollowedLeaderboardResponse, NuanzeServerFundingRatesResponse, NuanzeServerLeaderboardResponse, NuanzeServerMarketByTickerResponse, NuanzeServerMarketCandlesResponse, NuanzeServerMarketPositionsResponse, NuanzeServerMarketTradesResponse, NuanzeServerMarketsResponse, NuanzeServerNewsResponse, NuanzeServerOpenPositionsResponse, NuanzeServerPlatformSummaryResponse, NuanzeServerSubaccountLeaderboardResponse, NuanzeServerWalletPnlResponse, NuanzeServerWalletPnlSeriesResponse, NuanzeServerWalletPositionsResponse, NuanzeServerWalletSummaryResponse, NuanzeServerWalletTradesResponse, isNuanzeServerFailureResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverQueryTypes.js","names":[],"sources":["../../src/types/serverQueryTypes.ts"],"sourcesContent":["import type {\n NuanzeCandleInterval,\n NuanzeCoverage,\n NuanzeFlowBucket,\n NuanzeFlowTimeframe,\n NuanzeLeaderboardTimeframe,\n NuanzeMarketVenue,\n NuanzePlatformWindow,\n NuanzePnlWindow,\n NuanzeSeriesMetric,\n NuanzeSourceInterval,\n} from './clientModelTypes';\nimport { NuanzeNewsStory } from './clientModelTypes';\nimport { NuanzeErrorCode } from './nuanzeErrorCodes';\nimport {\n NuanzeServerCandle,\n NuanzeServerCollateralFlow,\n NuanzeServerCollateralFlowPoint,\n NuanzeServerFollowedLeaderboardItem,\n NuanzeServerFundingRate,\n NuanzeServerLeaderboardItem,\n NuanzeServerMarket,\n NuanzeServerMarketDetail,\n NuanzeServerMarketPosition,\n NuanzeServerMarketTrade,\n NuanzeServerOpenPosition,\n NuanzeServerPlatformDeltas,\n NuanzeServerSeriesPoint,\n NuanzeServerSubaccountLeaderboardItem,\n NuanzeServerWalletPosition,\n NuanzeServerWalletTrade,\n} from './serverModelTypes';\n\n/**\n * Failure envelope returned with every non-2xx response.\n *\n * Structurally unrelated to `BaseServerFailureResponse`: Nuanze nests a string `code` under `error`\n * instead of carrying a top-level numeric `error_code` and `status: 'failure'`.\n */\nexport interface NuanzeServerFailureResponse {\n error: {\n code: NuanzeErrorCode;\n message: string;\n requestId: string;\n };\n}\n\n/**\n * `GET /markets` response as returned on the wire.\n */\nexport interface NuanzeServerMarketsResponse {\n markets: NuanzeServerMarket[];\n count: number;\n asOf: string;\n}\n\n/**\n * `GET /news` response as returned on the wire. Stories have no decimals.\n */\nexport interface NuanzeServerNewsResponse {\n stories: NuanzeNewsStory[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}` response as returned on the wire.\n */\nexport type NuanzeServerMarketByTickerResponse = NuanzeServerMarketDetail;\n\n/**\n * `GET /funding/rates` response as returned on the wire.\n */\nexport interface NuanzeServerFundingRatesResponse {\n rates: NuanzeServerFundingRate[];\n asOf: string;\n}\n\n/**\n * `GET /leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerLeaderboardItem[];\n limit: number;\n offset: number;\n total: number;\n asOf: string;\n}\n\n/**\n * `GET /leaderboard/subaccounts` response as returned on the wire.\n */\nexport interface NuanzeServerSubaccountLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n totalCount: number;\n items: NuanzeServerSubaccountLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerFollowedLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerFollowedLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /platform/summary` response as returned on the wire.\n */\nexport interface NuanzeServerPlatformSummaryResponse {\n window: NuanzePlatformWindow;\n volume24h: string;\n trades24h: number;\n traders24h: number;\n windowVolume: string;\n windowTrades: number;\n windowTraders: number;\n deltas: NuanzeServerPlatformDeltas;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}` response as returned on the wire.\n */\nexport interface NuanzeServerWalletSummaryResponse {\n address: string;\n subaccountName: string | null;\n subaccountCount: number;\n pnlWindow: NuanzePnlWindow;\n accountPnl: string;\n windowPnl: string;\n equity: string | null;\n cumulativeVolume: string;\n windowVolume: string;\n totalTrades: number;\n wins: number;\n losses: number;\n winRate: string | null;\n snapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/positions` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPositionsResponse {\n address: string;\n positions: NuanzeServerWalletPosition[];\n count: number;\n newestSnapshotAt: string | null;\n oldestSnapshotAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/trades` response as returned on the wire.\n */\nexport interface NuanzeServerMarketTradesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n trades: NuanzeServerMarketTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/candles` response as returned on the wire.\n */\nexport interface NuanzeServerMarketCandlesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n interval: NuanzeCandleInterval;\n candles: NuanzeServerCandle[];\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/trades` response as returned on the wire.\n */\nexport interface NuanzeServerWalletTradesResponse {\n address: string;\n trades: NuanzeServerWalletTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlResponse {\n address: string;\n subaccountName: string | null;\n window: NuanzePnlWindow;\n windowStart: string;\n windowEnd: string;\n openingAccountPnl: string;\n latestAccountPnl: string;\n windowPnl: string;\n openingEquity: string | null;\n latestEquity: string | null;\n volumeDelta: string;\n sourceInterval: NuanzeSourceInterval;\n latestSnapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl/series` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlSeriesResponse {\n address: string;\n subaccountName: string | null;\n metric: NuanzeSeriesMetric;\n window: NuanzePnlWindow;\n points: NuanzeServerSeriesPoint[];\n sourceInterval: NuanzeSourceInterval;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /flows` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowsResponse {\n events: NuanzeServerCollateralFlow[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/summary` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSummaryResponse {\n timeframe: NuanzeFlowTimeframe;\n deposited: string;\n withdrawn: string;\n net: string;\n gross: string;\n depositCount: number;\n withdrawalCount: number;\n valuedCount: number;\n unvaluedCount: number;\n priorNet: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/series` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSeriesResponse {\n timeframe: NuanzeFlowTimeframe;\n bucket: NuanzeFlowBucket;\n points: NuanzeServerCollateralFlowPoint[];\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/positions` response as returned on the wire.\n */\nexport interface NuanzeServerMarketPositionsResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n positions: NuanzeServerMarketPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /positions` response as returned on the wire.\n */\nexport interface NuanzeServerOpenPositionsResponse {\n positions: NuanzeServerOpenPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * Checks whether a response body is a Nuanze failure envelope. The `code` is not compared against\n * {@link NUANZE_ERROR_CODES}, so a code added by a newer API release still reaches the caller.\n */\nexport function isNuanzeServerFailureResponse(\n data: unknown,\n): data is NuanzeServerFailureResponse {\n if (typeof data !== 'object' || data === null || !('error' in data)) {\n return false;\n }\n\n const { error } = data;\n return (\n typeof error === 'object' &&\n error !== null &&\n typeof (error as { code?: unknown }).code === 'string' &&\n typeof (error as { message?: unknown }).message === 'string'\n );\n}\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"serverQueryTypes.js","names":[],"sources":["../../src/types/serverQueryTypes.ts"],"sourcesContent":["import type {\n NuanzeCandleInterval,\n NuanzeCoverage,\n NuanzeFlowBucket,\n NuanzeFlowTimeframe,\n NuanzeLeaderboardTimeframe,\n NuanzeMarketVenue,\n NuanzePlatformWindow,\n NuanzePnlWindow,\n NuanzeSeriesMetric,\n NuanzeSourceInterval,\n} from './clientModelTypes';\nimport { NuanzeNewsStory } from './clientModelTypes';\nimport { NuanzeErrorCode } from './nuanzeErrorCodes';\nimport {\n NuanzeServerCandle,\n NuanzeServerCollateralFlow,\n NuanzeServerCollateralFlowPoint,\n NuanzeServerFollowedLeaderboardItem,\n NuanzeServerFundingRate,\n NuanzeServerLeaderboardItem,\n NuanzeServerMarket,\n NuanzeServerMarketDetail,\n NuanzeServerMarketPosition,\n NuanzeServerMarketTrade,\n NuanzeServerOpenPosition,\n NuanzeServerPlatformDeltas,\n NuanzeServerSeriesPoint,\n NuanzeServerSubaccountLeaderboardItem,\n NuanzeServerWalletPosition,\n NuanzeServerWalletTrade,\n} from './serverModelTypes';\n\n/**\n * Failure envelope returned with every non-2xx response.\n *\n * Structurally unrelated to `BaseServerFailureResponse`: Nuanze nests a string `code` under `error`\n * instead of carrying a top-level numeric `error_code` and `status: 'failure'`.\n */\nexport interface NuanzeServerFailureResponse {\n error: {\n code: NuanzeErrorCode;\n message: string;\n requestId: string;\n };\n}\n\n/**\n * `GET /markets` response as returned on the wire.\n */\nexport interface NuanzeServerMarketsResponse {\n markets: NuanzeServerMarket[];\n count: number;\n asOf: string;\n}\n\n/**\n * `GET /news` response as returned on the wire. Stories have no decimals.\n */\nexport interface NuanzeServerNewsResponse {\n stories: NuanzeNewsStory[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}` response as returned on the wire. The `{ticker}` path segment accepts a\n * canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport type NuanzeServerMarketByTickerResponse = NuanzeServerMarketDetail;\n\n/**\n * `GET /funding/rates` response as returned on the wire.\n */\nexport interface NuanzeServerFundingRatesResponse {\n rates: NuanzeServerFundingRate[];\n asOf: string;\n}\n\n/**\n * `GET /leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerLeaderboardItem[];\n limit: number;\n offset: number;\n total: number;\n asOf: string;\n}\n\n/**\n * `GET /leaderboard/subaccounts` response as returned on the wire.\n */\nexport interface NuanzeServerSubaccountLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n totalCount: number;\n items: NuanzeServerSubaccountLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/leaderboard` response as returned on the wire.\n */\nexport interface NuanzeServerFollowedLeaderboardResponse {\n timeframe: NuanzeLeaderboardTimeframe;\n items: NuanzeServerFollowedLeaderboardItem[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /platform/summary` response as returned on the wire.\n */\nexport interface NuanzeServerPlatformSummaryResponse {\n window: NuanzePlatformWindow;\n volume24h: string;\n trades24h: number;\n traders24h: number;\n windowVolume: string;\n windowTrades: number;\n windowTraders: number;\n deltas: NuanzeServerPlatformDeltas;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}` response as returned on the wire.\n */\nexport interface NuanzeServerWalletSummaryResponse {\n address: string;\n subaccountName: string | null;\n subaccountCount: number;\n pnlWindow: NuanzePnlWindow;\n accountPnl: string;\n windowPnl: string;\n equity: string | null;\n cumulativeVolume: string;\n windowVolume: string;\n totalTrades: number;\n wins: number;\n losses: number;\n winRate: string | null;\n snapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/positions` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPositionsResponse {\n address: string;\n positions: NuanzeServerWalletPosition[];\n count: number;\n newestSnapshotAt: string | null;\n oldestSnapshotAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/trades` response as returned on the wire. The `{ticker}` path segment\n * accepts a canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport interface NuanzeServerMarketTradesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n trades: NuanzeServerMarketTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/candles` response as returned on the wire. The `{ticker}` path segment\n * accepts a canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport interface NuanzeServerMarketCandlesResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n interval: NuanzeCandleInterval;\n candles: NuanzeServerCandle[];\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/trades` response as returned on the wire.\n */\nexport interface NuanzeServerWalletTradesResponse {\n address: string;\n trades: NuanzeServerWalletTrade[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlResponse {\n address: string;\n subaccountName: string | null;\n window: NuanzePnlWindow;\n windowStart: string;\n windowEnd: string;\n openingAccountPnl: string;\n latestAccountPnl: string;\n windowPnl: string;\n openingEquity: string | null;\n latestEquity: string | null;\n volumeDelta: string;\n sourceInterval: NuanzeSourceInterval;\n latestSnapshotAt: string;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /wallets/{address}/pnl/series` response as returned on the wire.\n */\nexport interface NuanzeServerWalletPnlSeriesResponse {\n address: string;\n subaccountName: string | null;\n metric: NuanzeSeriesMetric;\n window: NuanzePnlWindow;\n points: NuanzeServerSeriesPoint[];\n sourceInterval: NuanzeSourceInterval;\n coverage: NuanzeCoverage;\n asOf: string;\n}\n\n/**\n * `GET /flows` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowsResponse {\n events: NuanzeServerCollateralFlow[];\n nextCursor: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/summary` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSummaryResponse {\n timeframe: NuanzeFlowTimeframe;\n deposited: string;\n withdrawn: string;\n net: string;\n gross: string;\n depositCount: number;\n withdrawalCount: number;\n valuedCount: number;\n unvaluedCount: number;\n priorNet: string | null;\n asOf: string;\n}\n\n/**\n * `GET /flows/series` response as returned on the wire.\n */\nexport interface NuanzeServerCollateralFlowSeriesResponse {\n timeframe: NuanzeFlowTimeframe;\n bucket: NuanzeFlowBucket;\n points: NuanzeServerCollateralFlowPoint[];\n asOf: string;\n}\n\n/**\n * `GET /markets/{ticker}/positions` response as returned on the wire. The `{ticker}` path segment\n * accepts a canonical ticker, legacy source symbol, or numeric product ID.\n */\nexport interface NuanzeServerMarketPositionsResponse {\n productId: number;\n symbol: string;\n ticker: string;\n venue: NuanzeMarketVenue;\n positions: NuanzeServerMarketPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * `GET /positions` response as returned on the wire.\n */\nexport interface NuanzeServerOpenPositionsResponse {\n positions: NuanzeServerOpenPosition[];\n nextCursor: string | null;\n dataUpdatedAt: string | null;\n asOf: string;\n}\n\n/**\n * Checks whether a response body is a Nuanze failure envelope. The `code` is not compared against\n * {@link NUANZE_ERROR_CODES}, so a code added by a newer API release still reaches the caller.\n */\nexport function isNuanzeServerFailureResponse(\n data: unknown,\n): data is NuanzeServerFailureResponse {\n if (typeof data !== 'object' || data === null || !('error' in data)) {\n return false;\n }\n\n const { error } = data;\n return (\n typeof error === 'object' &&\n error !== null &&\n typeof (error as { code?: unknown }).code === 'string' &&\n typeof (error as { message?: unknown }).message === 'string'\n );\n}\n"],"mappings":";;;;;AA2SA,SAAgB,8BACd,MACqC;CACrC,IAAI,OAAO,SAAS,YAAY,SAAS,QAAQ,EAAE,WAAW,OAC5D,OAAO;CAGT,MAAM,EAAE,UAAU;CAClB,OACE,OAAO,UAAU,YACjB,UAAU,QACV,OAAQ,MAA6B,SAAS,YAC9C,OAAQ,MAAgC,YAAY;AAExD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/nuanze-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
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.
|
|
44
|
+
"@nadohq/shared": "^0.44.0",
|
|
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": "f7bc068dcd33a19944613ccaab61b1a4071a16a3"
|
|
54
54
|
}
|
package/src/NuanzeClient.ts
CHANGED
|
@@ -65,6 +65,7 @@ import {
|
|
|
65
65
|
GetNuanzeWalletSummaryResponse,
|
|
66
66
|
GetNuanzeWalletTradesParams,
|
|
67
67
|
GetNuanzeWalletTradesResponse,
|
|
68
|
+
NuanzeMarketSelector,
|
|
68
69
|
} from './types/clientTypes';
|
|
69
70
|
import { NuanzeServerFailureError } from './types/NuanzeServerFailureError';
|
|
70
71
|
import { NuanzeServerMarketPositioningResponse } from './types/serverModelTypes';
|
|
@@ -161,23 +162,20 @@ export class NuanzeClient {
|
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
/**
|
|
164
|
-
* Resolves a market by
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
165
|
+
* Resolves a market by {@link NuanzeMarketSelector}. Supply at least `ticker` or `productId`;
|
|
166
|
+
* when both are given, `productId` is used for the path segment and `ticker` is ignored.
|
|
167
|
+
* Ticker lookup is case-insensitive and accepts canonical tickers or legacy source symbols.
|
|
168
|
+
* An explicit unavailable venue returns `MARKET_NOT_FOUND`. With no venue, `strictVenue=true`
|
|
169
|
+
* returns `AMBIGUOUS_MARKET` for multi-venue assets; otherwise the primary venue is used.
|
|
168
170
|
*
|
|
169
|
-
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET
|
|
170
|
-
*
|
|
171
|
+
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET` or `BAD_REQUEST` on invalid
|
|
172
|
+
* selectors, and `MARKET_NOT_FOUND` when the selector does not resolve.
|
|
171
173
|
*/
|
|
172
174
|
async getMarketByTicker(
|
|
173
175
|
params: GetNuanzeMarketByTickerParams,
|
|
174
176
|
): Promise<GetNuanzeMarketByTickerResponse> {
|
|
175
|
-
const { ticker, ...query } = params;
|
|
176
177
|
return mapNuanzeMarketByTickerResponse(
|
|
177
|
-
await this.
|
|
178
|
-
`/markets/${encodeURIComponent(ticker)}`,
|
|
179
|
-
query,
|
|
180
|
-
),
|
|
178
|
+
await this.getMarketJson<NuanzeServerMarketByTickerResponse>(params),
|
|
181
179
|
);
|
|
182
180
|
}
|
|
183
181
|
|
|
@@ -311,43 +309,45 @@ export class NuanzeClient {
|
|
|
311
309
|
}
|
|
312
310
|
|
|
313
311
|
/**
|
|
314
|
-
* Lists market trades: one taker-side row per match, sorted
|
|
315
|
-
*
|
|
316
|
-
* `
|
|
312
|
+
* Lists market trades for a {@link NuanzeMarketSelector}: one taker-side row per match, sorted
|
|
313
|
+
* by `matchedAt` then `id` descending. Supply at least `ticker` or `productId`; when both are
|
|
314
|
+
* given, `productId` is used for the path segment and `ticker` is ignored. The exclusive cursor
|
|
315
|
+
* is bound to operation and normalized filters. `from` is inclusive and `to` exclusive. Wallet
|
|
316
|
+
* identity is absent.
|
|
317
317
|
*
|
|
318
|
-
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `
|
|
319
|
-
* `
|
|
320
|
-
*
|
|
318
|
+
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `INVALID_CURSOR`,
|
|
319
|
+
* `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid input, and
|
|
320
|
+
* `MARKET_NOT_FOUND` when the selector does not resolve.
|
|
321
321
|
*/
|
|
322
322
|
async getMarketTrades(
|
|
323
323
|
params: GetNuanzeMarketTradesParams,
|
|
324
324
|
): Promise<GetNuanzeMarketTradesResponse> {
|
|
325
|
-
const { ticker, ...query } = params;
|
|
326
325
|
return mapNuanzeMarketTradesResponse(
|
|
327
|
-
await this.
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
await this.getMarketJson<NuanzeServerMarketTradesResponse>(
|
|
327
|
+
params,
|
|
328
|
+
'/trades',
|
|
330
329
|
),
|
|
331
330
|
);
|
|
332
331
|
}
|
|
333
332
|
|
|
334
333
|
/**
|
|
335
|
-
* Lists market candles
|
|
336
|
-
*
|
|
337
|
-
*
|
|
334
|
+
* Lists market candles for a {@link NuanzeMarketSelector}. Supply at least `ticker` or
|
|
335
|
+
* `productId`; when both are given, `productId` is used for the path segment and `ticker` is
|
|
336
|
+
* ignored. Source storage is 1h; 4h and 1d are UTC-aligned rollups and missing bars are not
|
|
337
|
+
* interpolated. The newest `limit` matching bars are selected and returned oldest-to-newest,
|
|
338
|
+
* at most 750, with no pagination. A current bucket has `complete=false`.
|
|
338
339
|
*
|
|
339
340
|
* @throws {NuanzeServerFailureError} With `UNSUPPORTED_INTERVAL`, `RANGE_TOO_LARGE`,
|
|
340
|
-
* `AMBIGUOUS_MARKET`,
|
|
341
|
-
*
|
|
341
|
+
* `AMBIGUOUS_MARKET`, or `BAD_REQUEST` on invalid input, and `MARKET_NOT_FOUND` when the
|
|
342
|
+
* selector does not resolve.
|
|
342
343
|
*/
|
|
343
344
|
async getMarketCandles(
|
|
344
345
|
params: GetNuanzeMarketCandlesParams,
|
|
345
346
|
): Promise<GetNuanzeMarketCandlesResponse> {
|
|
346
|
-
const { ticker, ...query } = params;
|
|
347
347
|
return mapNuanzeMarketCandlesResponse(
|
|
348
|
-
await this.
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
await this.getMarketJson<NuanzeServerMarketCandlesResponse>(
|
|
349
|
+
params,
|
|
350
|
+
'/candles',
|
|
351
351
|
),
|
|
352
352
|
);
|
|
353
353
|
}
|
|
@@ -463,46 +463,46 @@ export class NuanzeClient {
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
|
-
* Gets privacy-preserving aggregate positioning for an active perpetual
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
*
|
|
466
|
+
* Gets privacy-preserving aggregate positioning for an active perpetual identified by
|
|
467
|
+
* {@link NuanzeMarketSelector}. Supply at least `ticker` or `productId`; when both are given,
|
|
468
|
+
* `productId` is used for the path segment and `ticker` is ignored. Cross and isolated legs
|
|
469
|
+
* are summed within owner/subaccount/product before direction classification. Every cell
|
|
470
|
+
* requires at least 20 distinct contributing owners. No identity, individual position, entry
|
|
471
|
+
* price, PnL, margin, or leverage fields are returned.
|
|
470
472
|
*
|
|
471
|
-
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET
|
|
472
|
-
*
|
|
473
|
-
* perp.
|
|
473
|
+
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET` or `BAD_REQUEST` on invalid input,
|
|
474
|
+
* and `MARKET_NOT_FOUND` when the selector does not resolve to a perp.
|
|
474
475
|
*/
|
|
475
476
|
async getMarketPositioning(
|
|
476
477
|
params: GetNuanzeMarketPositioningParams,
|
|
477
478
|
): Promise<GetNuanzeMarketPositioningResponse> {
|
|
478
|
-
const { ticker, ...query } = params;
|
|
479
479
|
return mapNuanzeMarketPositioningResponse(
|
|
480
|
-
await this.
|
|
481
|
-
|
|
482
|
-
|
|
480
|
+
await this.getMarketJson<NuanzeServerMarketPositioningResponse>(
|
|
481
|
+
params,
|
|
482
|
+
'/positioning',
|
|
483
483
|
),
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
|
-
* Lists open perpetual position legs for
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
* are
|
|
488
|
+
* Lists open perpetual position legs for a market identified by {@link NuanzeMarketSelector}.
|
|
489
|
+
* Supply at least `ticker` or `productId`; when both are given, `productId` is used for the
|
|
490
|
+
* path segment and `ticker` is ignored. Results default to absolute notional descending and
|
|
491
|
+
* can be ordered by signed unrealized PnL or absolute base amount in either direction. Spot
|
|
492
|
+
* markets are not supported. Legs below $10 absolute notional are excluded. Wallet addresses,
|
|
493
|
+
* nullable synced usernames and display names, and signed exact base amounts are returned.
|
|
493
494
|
*
|
|
494
|
-
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `
|
|
495
|
-
* `
|
|
496
|
-
*
|
|
495
|
+
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `INVALID_CURSOR`,
|
|
496
|
+
* `CURSOR_FILTER_MISMATCH`, or `BAD_REQUEST` on invalid input, and `MARKET_NOT_FOUND` when the
|
|
497
|
+
* selector does not resolve to a perp.
|
|
497
498
|
*/
|
|
498
499
|
async getMarketPositions(
|
|
499
500
|
params: GetNuanzeMarketPositionsParams,
|
|
500
501
|
): Promise<GetNuanzeMarketPositionsResponse> {
|
|
501
|
-
const { ticker, ...query } = params;
|
|
502
502
|
return mapNuanzeMarketPositionsResponse(
|
|
503
|
-
await this.
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
await this.getMarketJson<NuanzeServerMarketPositionsResponse>(
|
|
504
|
+
params,
|
|
505
|
+
'/positions',
|
|
506
506
|
),
|
|
507
507
|
);
|
|
508
508
|
}
|
|
@@ -535,6 +535,21 @@ export class NuanzeClient {
|
|
|
535
535
|
return this.requestJson<T>(path, { params });
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
+
private async getMarketJson<T>(
|
|
539
|
+
params: NuanzeMarketSelector & object,
|
|
540
|
+
suffix = '',
|
|
541
|
+
): Promise<T> {
|
|
542
|
+
const { productId, ticker, ...query } = params;
|
|
543
|
+
const selector = productId ?? ticker;
|
|
544
|
+
if (selector === undefined) {
|
|
545
|
+
throw new Error('A market ticker or productId is required.');
|
|
546
|
+
}
|
|
547
|
+
return this.getJson<T>(
|
|
548
|
+
`/markets/${encodeURIComponent(selector.toString())}${suffix}`,
|
|
549
|
+
query,
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
|
|
538
553
|
private async requestJson<T>(
|
|
539
554
|
path: string,
|
|
540
555
|
config: { params?: object } = {},
|
package/src/types/clientTypes.ts
CHANGED
|
@@ -97,15 +97,35 @@ export interface GetNuanzeNewsResponse {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
* Selects a market for scoped GET operations under `/markets/{ticker}`. The `{ticker}` path
|
|
101
|
+
* segment accepts a canonical ticker, legacy source symbol, or numeric product ID. At least one
|
|
102
|
+
* of `ticker` or `productId` is required. When both are supplied, `productId` is encoded as the
|
|
103
|
+
* path segment and `ticker` is ignored (neither field is sent as a query parameter).
|
|
104
|
+
*/
|
|
105
|
+
export type NuanzeMarketSelector =
|
|
106
|
+
| {
|
|
107
|
+
/**
|
|
108
|
+
* Canonical ticker or legacy source symbol. Case-insensitive. Used as the path segment when
|
|
109
|
+
* `productId` is omitted; ignored when `productId` is supplied.
|
|
110
|
+
*/
|
|
111
|
+
ticker: string;
|
|
112
|
+
/**
|
|
113
|
+
* Public product ID. When supplied, used as the path segment and `ticker` is ignored.
|
|
114
|
+
*/
|
|
115
|
+
productId?: number;
|
|
116
|
+
}
|
|
117
|
+
| {
|
|
118
|
+
ticker?: string;
|
|
119
|
+
/** Public product ID used as the path segment. */
|
|
120
|
+
productId: number;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Params for `NuanzeClient.getMarketByTicker`. Requires {@link NuanzeMarketSelector}.
|
|
125
|
+
*/
|
|
126
|
+
export type GetNuanzeMarketByTickerParams = NuanzeMarketSelector & {
|
|
105
127
|
/** Restrict to one venue. Omit to use the asset's primary venue. */
|
|
106
128
|
venue?: NuanzeMarketVenue;
|
|
107
|
-
/** Pin an exact product; must match ticker and venue. */
|
|
108
|
-
productId?: number;
|
|
109
129
|
/**
|
|
110
130
|
* When true and `venue` is omitted, reject a multi-venue canonical ticker with
|
|
111
131
|
* `AMBIGUOUS_MARKET`. Default false.
|
|
@@ -113,7 +133,7 @@ export interface GetNuanzeMarketByTickerParams {
|
|
|
113
133
|
strictVenue?: boolean;
|
|
114
134
|
/** Max published stories to include, 1-30, default 12. */
|
|
115
135
|
newsLimit?: number;
|
|
116
|
-
}
|
|
136
|
+
};
|
|
117
137
|
|
|
118
138
|
/**
|
|
119
139
|
* Response of `NuanzeClient.getMarketByTicker`.
|
|
@@ -356,15 +376,11 @@ export interface GetNuanzeWalletPositionsResponse {
|
|
|
356
376
|
}
|
|
357
377
|
|
|
358
378
|
/**
|
|
359
|
-
* Params for `NuanzeClient.getMarketTrades`.
|
|
379
|
+
* Params for `NuanzeClient.getMarketTrades`. Requires {@link NuanzeMarketSelector}.
|
|
360
380
|
*/
|
|
361
|
-
export
|
|
362
|
-
/** Case-insensitive canonical ticker or accepted legacy source symbol. */
|
|
363
|
-
ticker: string;
|
|
381
|
+
export type GetNuanzeMarketTradesParams = NuanzeMarketSelector & {
|
|
364
382
|
/** Restrict to one venue. Omit to use the asset's primary venue. */
|
|
365
383
|
venue?: NuanzeMarketVenue;
|
|
366
|
-
/** Pin an exact product; must match ticker and venue. */
|
|
367
|
-
productId?: number;
|
|
368
384
|
/**
|
|
369
385
|
* When true and `venue` is omitted, reject a multi-venue canonical ticker with
|
|
370
386
|
* `AMBIGUOUS_MARKET`. Default false.
|
|
@@ -378,7 +394,7 @@ export interface GetNuanzeMarketTradesParams {
|
|
|
378
394
|
to?: string;
|
|
379
395
|
/** Opaque exclusive cursor bound to the normalized filters. */
|
|
380
396
|
cursor?: string;
|
|
381
|
-
}
|
|
397
|
+
};
|
|
382
398
|
|
|
383
399
|
/**
|
|
384
400
|
* Response of `NuanzeClient.getMarketTrades`.
|
|
@@ -401,15 +417,11 @@ export interface GetNuanzeMarketTradesResponse {
|
|
|
401
417
|
}
|
|
402
418
|
|
|
403
419
|
/**
|
|
404
|
-
* Params for `NuanzeClient.getMarketCandles`.
|
|
420
|
+
* Params for `NuanzeClient.getMarketCandles`. Requires {@link NuanzeMarketSelector}.
|
|
405
421
|
*/
|
|
406
|
-
export
|
|
407
|
-
/** Case-insensitive canonical ticker or accepted legacy source symbol. */
|
|
408
|
-
ticker: string;
|
|
422
|
+
export type GetNuanzeMarketCandlesParams = NuanzeMarketSelector & {
|
|
409
423
|
/** Restrict to one venue. Omit to use the asset's primary venue. */
|
|
410
424
|
venue?: NuanzeMarketVenue;
|
|
411
|
-
/** Pin an exact product; must match ticker and venue. */
|
|
412
|
-
productId?: number;
|
|
413
425
|
/**
|
|
414
426
|
* When true and `venue` is omitted, reject a multi-venue canonical ticker with
|
|
415
427
|
* `AMBIGUOUS_MARKET`. Default false.
|
|
@@ -423,7 +435,7 @@ export interface GetNuanzeMarketCandlesParams {
|
|
|
423
435
|
to?: string;
|
|
424
436
|
/** Newest matching bars to return, 1-750, default 200. Returned oldest-to-newest. */
|
|
425
437
|
limit?: number;
|
|
426
|
-
}
|
|
438
|
+
};
|
|
427
439
|
|
|
428
440
|
/**
|
|
429
441
|
* Response of `NuanzeClient.getMarketCandles`.
|
|
@@ -662,15 +674,12 @@ export interface GetNuanzeCollateralFlowSeriesResponse {
|
|
|
662
674
|
}
|
|
663
675
|
|
|
664
676
|
/**
|
|
665
|
-
* Params for `NuanzeClient.getMarketPositioning`.
|
|
677
|
+
* Params for `NuanzeClient.getMarketPositioning`. Requires {@link NuanzeMarketSelector}. Resolves
|
|
678
|
+
* only an active perpetual.
|
|
666
679
|
*/
|
|
667
|
-
export
|
|
668
|
-
/** Case-insensitive canonical ticker or accepted legacy source symbol. */
|
|
669
|
-
ticker: string;
|
|
680
|
+
export type GetNuanzeMarketPositioningParams = NuanzeMarketSelector & {
|
|
670
681
|
/** If supplied, only `perp` is valid. */
|
|
671
682
|
venue?: 'perp';
|
|
672
|
-
/** Pin an exact product; must match ticker and venue. */
|
|
673
|
-
productId?: number;
|
|
674
683
|
/**
|
|
675
684
|
* When true and `venue` is omitted, reject a multi-venue canonical ticker with
|
|
676
685
|
* `AMBIGUOUS_MARKET`. Default false.
|
|
@@ -680,7 +689,7 @@ export interface GetNuanzeMarketPositioningParams {
|
|
|
680
689
|
groupBy?: NuanzePositioningGroupBy;
|
|
681
690
|
/** Inclusion threshold as a USD string, default `'10'`. */
|
|
682
691
|
minPositionUsd?: NuanzeMinPositionUsd;
|
|
683
|
-
}
|
|
692
|
+
};
|
|
684
693
|
|
|
685
694
|
/**
|
|
686
695
|
* Response of `NuanzeClient.getMarketPositioning`. Discriminated by `groupBy`.
|
|
@@ -691,15 +700,12 @@ export type GetNuanzeMarketPositioningResponse =
|
|
|
691
700
|
| NuanzeMarketPositioningNotionalBucketResponse;
|
|
692
701
|
|
|
693
702
|
/**
|
|
694
|
-
* Params for `NuanzeClient.getMarketPositions`.
|
|
703
|
+
* Params for `NuanzeClient.getMarketPositions`. Requires {@link NuanzeMarketSelector}. Resolves
|
|
704
|
+
* only an active perpetual.
|
|
695
705
|
*/
|
|
696
|
-
export
|
|
697
|
-
/** Case-insensitive canonical ticker or accepted legacy source symbol. */
|
|
698
|
-
ticker: string;
|
|
706
|
+
export type GetNuanzeMarketPositionsParams = NuanzeMarketSelector & {
|
|
699
707
|
/** If supplied, only `perp` is valid. */
|
|
700
708
|
venue?: 'perp';
|
|
701
|
-
/** Pin an exact product; must match ticker and venue. */
|
|
702
|
-
productId?: number;
|
|
703
709
|
/** Page size, 1-200, default 50. */
|
|
704
710
|
limit?: number;
|
|
705
711
|
/**
|
|
@@ -711,7 +717,7 @@ export interface GetNuanzeMarketPositionsParams {
|
|
|
711
717
|
sortDirection?: NuanzeMarketPositionSortDirection;
|
|
712
718
|
/** Opaque exclusive cursor bound to the resolved product. */
|
|
713
719
|
cursor?: string;
|
|
714
|
-
}
|
|
720
|
+
};
|
|
715
721
|
|
|
716
722
|
/**
|
|
717
723
|
* Response of `NuanzeClient.getMarketPositions`.
|