@nadohq/nuanze-client 0.42.1 → 0.43.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/dist/{NuanzeClient-CEmOugzW.cjs → NuanzeClient-uL24b7LV.cjs} +8 -8
- package/dist/NuanzeClient-uL24b7LV.cjs.map +1 -0
- package/dist/NuanzeClient.cjs +1 -1
- package/dist/NuanzeClient.d.cts +8 -8
- package/dist/NuanzeClient.d.cts.map +1 -1
- package/dist/NuanzeClient.d.ts +8 -8
- package/dist/NuanzeClient.d.ts.map +1 -1
- package/dist/NuanzeClient.js +7 -7
- package/dist/NuanzeClient.js.map +1 -1
- package/dist/{NuanzeServerFailureError-CMeSnmPF.d.cts → NuanzeServerFailureError-BPgOv2fb.d.cts} +3 -3
- package/dist/{NuanzeServerFailureError-CMeSnmPF.d.cts.map → NuanzeServerFailureError-BPgOv2fb.d.cts.map} +1 -1
- package/dist/{NuanzeServerFailureError-C2iF5q-P.d.ts → NuanzeServerFailureError-DQ_Nf2c4.d.ts} +3 -3
- package/dist/{NuanzeServerFailureError-C2iF5q-P.d.ts.map → NuanzeServerFailureError-DQ_Nf2c4.d.ts.map} +1 -1
- package/dist/{clientModelTypes-DNPU1Q4B.d.ts → clientModelTypes-BypVSi04.d.ts} +6 -2
- package/dist/{clientModelTypes-DNPU1Q4B.d.ts.map → clientModelTypes-BypVSi04.d.ts.map} +1 -1
- package/dist/{clientModelTypes-YrD7pXq6.d.cts → clientModelTypes-QGu6fZtg.d.cts} +6 -2
- package/dist/{clientModelTypes-YrD7pXq6.d.cts.map → clientModelTypes-QGu6fZtg.d.cts.map} +1 -1
- package/dist/{clientTypes-t9TgQnqp.d.ts → clientTypes-BeCLgtYs.d.cts} +6 -6
- package/dist/{clientTypes-PhICTa52.d.cts.map → clientTypes-BeCLgtYs.d.cts.map} +1 -1
- package/dist/{clientTypes-PhICTa52.d.cts → clientTypes-DxWzvYkG.d.ts} +6 -6
- package/dist/{clientTypes-t9TgQnqp.d.ts.map → clientTypes-DxWzvYkG.d.ts.map} +1 -1
- package/dist/dataMappers.cjs +14 -4
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +5 -5
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +5 -5
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +13 -3
- package/dist/dataMappers.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/nuanzeErrorCodes-BJA7C7xg.d.cts +12 -0
- package/dist/nuanzeErrorCodes-BJA7C7xg.d.cts.map +1 -0
- package/dist/nuanzeErrorCodes-BXfbZV_p.d.ts +12 -0
- package/dist/nuanzeErrorCodes-BXfbZV_p.d.ts.map +1 -0
- package/dist/{serverModelTypes-BJzL4GkE.d.cts → serverModelTypes-6Yh2CDPU.d.ts} +5 -3
- package/dist/{serverModelTypes-Ch4IifDo.d.ts.map → serverModelTypes-6Yh2CDPU.d.ts.map} +1 -1
- package/dist/{serverModelTypes-Ch4IifDo.d.ts → serverModelTypes-Boq1Oei1.d.cts} +5 -3
- package/dist/{serverModelTypes-BJzL4GkE.d.cts.map → serverModelTypes-Boq1Oei1.d.cts.map} +1 -1
- package/dist/{serverQueryTypes-BDI5rETc.d.ts → serverQueryTypes-ExbYAkBm.d.ts} +4 -4
- package/dist/{serverQueryTypes-BDI5rETc.d.ts.map → serverQueryTypes-ExbYAkBm.d.ts.map} +1 -1
- package/dist/{serverQueryTypes-RBQQXK5Y.d.cts → serverQueryTypes-FSvlSr7y.d.cts} +4 -4
- package/dist/{serverQueryTypes-RBQQXK5Y.d.cts.map → serverQueryTypes-FSvlSr7y.d.cts.map} +1 -1
- package/dist/types/NuanzeServerFailureError.d.cts +1 -1
- package/dist/types/NuanzeServerFailureError.d.ts +1 -1
- package/dist/types/clientModelTypes.cjs.map +1 -1
- package/dist/types/clientModelTypes.d.cts +1 -1
- package/dist/types/clientModelTypes.d.ts +1 -1
- package/dist/types/clientModelTypes.js.map +1 -1
- package/dist/types/clientTypes.d.cts +1 -1
- package/dist/types/clientTypes.d.ts +1 -1
- package/dist/types/index.d.cts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/nuanzeErrorCodes.cjs +5 -8
- package/dist/types/nuanzeErrorCodes.cjs.map +1 -1
- package/dist/types/nuanzeErrorCodes.d.cts +1 -1
- package/dist/types/nuanzeErrorCodes.d.ts +1 -1
- package/dist/types/nuanzeErrorCodes.js +5 -8
- package/dist/types/nuanzeErrorCodes.js.map +1 -1
- package/dist/types/serverModelTypes.d.cts +1 -1
- package/dist/types/serverModelTypes.d.ts +1 -1
- package/dist/types/serverQueryTypes.d.cts +1 -1
- package/dist/types/serverQueryTypes.d.ts +1 -1
- package/package.json +3 -3
- package/src/NuanzeClient.ts +7 -7
- package/src/dataMappers.ts +18 -5
- package/src/types/clientModelTypes.ts +8 -1
- package/src/types/clientTypes.ts +4 -4
- package/src/types/nuanzeErrorCodes.ts +5 -8
- package/src/types/serverModelTypes.ts +6 -1
- package/dist/NuanzeClient-CEmOugzW.cjs.map +0 -1
- package/dist/nuanzeErrorCodes-DMoRcCHK.d.cts +0 -14
- package/dist/nuanzeErrorCodes-DMoRcCHK.d.cts.map +0 -1
- package/dist/nuanzeErrorCodes-DewKYqCe.d.ts +0 -14
- package/dist/nuanzeErrorCodes-DewKYqCe.d.ts.map +0 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/types/nuanzeErrorCodes.ts
|
|
3
3
|
/**
|
|
4
|
-
* Error codes
|
|
5
|
-
* of the published contract and additive only, so a client release can only ever lag behind on new
|
|
6
|
-
* ones - it never has to unlearn a code.
|
|
4
|
+
* Error codes in the current published Nuanze API contract, in service declaration order.
|
|
7
5
|
*/
|
|
8
6
|
const NUANZE_ERROR_CODES = [
|
|
9
7
|
"BAD_REQUEST",
|
|
@@ -15,16 +13,15 @@ const NUANZE_ERROR_CODES = [
|
|
|
15
13
|
"MARKET_SELECTOR_MISMATCH",
|
|
16
14
|
"MARKET_NOT_FOUND",
|
|
17
15
|
"WALLET_NOT_FOUND",
|
|
18
|
-
"USERNAME_NOT_FOUND",
|
|
19
16
|
"UNSUPPORTED_INTERVAL",
|
|
20
17
|
"UNSUPPORTED_BUCKET",
|
|
21
18
|
"RANGE_TOO_LARGE",
|
|
22
|
-
"NOT_FOUND",
|
|
23
|
-
"METHOD_NOT_ALLOWED",
|
|
24
19
|
"PAYLOAD_TOO_LARGE",
|
|
25
|
-
"
|
|
20
|
+
"METHOD_NOT_ALLOWED",
|
|
21
|
+
"RATE_LIMITED",
|
|
22
|
+
"GATEWAY_TIMEOUT",
|
|
26
23
|
"DEPENDENCY_UNAVAILABLE",
|
|
27
|
-
"
|
|
24
|
+
"INTERNAL_ERROR"
|
|
28
25
|
];
|
|
29
26
|
//#endregion
|
|
30
27
|
exports.NUANZE_ERROR_CODES = NUANZE_ERROR_CODES;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuanzeErrorCodes.cjs","names":[],"sources":["../../src/types/nuanzeErrorCodes.ts"],"sourcesContent":["/**\n * Error codes
|
|
1
|
+
{"version":3,"file":"nuanzeErrorCodes.cjs","names":[],"sources":["../../src/types/nuanzeErrorCodes.ts"],"sourcesContent":["/**\n * Error codes in the current published Nuanze API contract, in service declaration order.\n */\nexport const NUANZE_ERROR_CODES = [\n 'BAD_REQUEST',\n 'INVALID_CURSOR',\n 'CURSOR_FILTER_MISMATCH',\n 'INVALID_ADDRESS',\n 'INVALID_SUBACCOUNT',\n 'AMBIGUOUS_MARKET',\n 'MARKET_SELECTOR_MISMATCH',\n 'MARKET_NOT_FOUND',\n 'WALLET_NOT_FOUND',\n 'UNSUPPORTED_INTERVAL',\n 'UNSUPPORTED_BUCKET',\n 'RANGE_TOO_LARGE',\n 'PAYLOAD_TOO_LARGE',\n 'METHOD_NOT_ALLOWED',\n 'RATE_LIMITED',\n 'GATEWAY_TIMEOUT',\n 'DEPENDENCY_UNAVAILABLE',\n 'INTERNAL_ERROR',\n] as const;\n\n/**\n * Union of all known Nuanze API error codes.\n */\nexport type NuanzeErrorCode = (typeof NUANZE_ERROR_CODES)[number];\n"],"mappings":";;;;;AAGA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-
|
|
1
|
+
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-BJA7C7xg.cjs";
|
|
2
2
|
export { NUANZE_ERROR_CODES, NuanzeErrorCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-
|
|
1
|
+
import { n as NuanzeErrorCode, t as NUANZE_ERROR_CODES } from "../nuanzeErrorCodes-BXfbZV_p.js";
|
|
2
2
|
export { NUANZE_ERROR_CODES, NuanzeErrorCode };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
//#region src/types/nuanzeErrorCodes.ts
|
|
2
2
|
/**
|
|
3
|
-
* Error codes
|
|
4
|
-
* of the published contract and additive only, so a client release can only ever lag behind on new
|
|
5
|
-
* ones - it never has to unlearn a code.
|
|
3
|
+
* Error codes in the current published Nuanze API contract, in service declaration order.
|
|
6
4
|
*/
|
|
7
5
|
const NUANZE_ERROR_CODES = [
|
|
8
6
|
"BAD_REQUEST",
|
|
@@ -14,16 +12,15 @@ const NUANZE_ERROR_CODES = [
|
|
|
14
12
|
"MARKET_SELECTOR_MISMATCH",
|
|
15
13
|
"MARKET_NOT_FOUND",
|
|
16
14
|
"WALLET_NOT_FOUND",
|
|
17
|
-
"USERNAME_NOT_FOUND",
|
|
18
15
|
"UNSUPPORTED_INTERVAL",
|
|
19
16
|
"UNSUPPORTED_BUCKET",
|
|
20
17
|
"RANGE_TOO_LARGE",
|
|
21
|
-
"NOT_FOUND",
|
|
22
|
-
"METHOD_NOT_ALLOWED",
|
|
23
18
|
"PAYLOAD_TOO_LARGE",
|
|
24
|
-
"
|
|
19
|
+
"METHOD_NOT_ALLOWED",
|
|
20
|
+
"RATE_LIMITED",
|
|
21
|
+
"GATEWAY_TIMEOUT",
|
|
25
22
|
"DEPENDENCY_UNAVAILABLE",
|
|
26
|
-
"
|
|
23
|
+
"INTERNAL_ERROR"
|
|
27
24
|
];
|
|
28
25
|
//#endregion
|
|
29
26
|
export { NUANZE_ERROR_CODES };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuanzeErrorCodes.js","names":[],"sources":["../../src/types/nuanzeErrorCodes.ts"],"sourcesContent":["/**\n * Error codes
|
|
1
|
+
{"version":3,"file":"nuanzeErrorCodes.js","names":[],"sources":["../../src/types/nuanzeErrorCodes.ts"],"sourcesContent":["/**\n * Error codes in the current published Nuanze API contract, in service declaration order.\n */\nexport const NUANZE_ERROR_CODES = [\n 'BAD_REQUEST',\n 'INVALID_CURSOR',\n 'CURSOR_FILTER_MISMATCH',\n 'INVALID_ADDRESS',\n 'INVALID_SUBACCOUNT',\n 'AMBIGUOUS_MARKET',\n 'MARKET_SELECTOR_MISMATCH',\n 'MARKET_NOT_FOUND',\n 'WALLET_NOT_FOUND',\n 'UNSUPPORTED_INTERVAL',\n 'UNSUPPORTED_BUCKET',\n 'RANGE_TOO_LARGE',\n 'PAYLOAD_TOO_LARGE',\n 'METHOD_NOT_ALLOWED',\n 'RATE_LIMITED',\n 'GATEWAY_TIMEOUT',\n 'DEPENDENCY_UNAVAILABLE',\n 'INTERNAL_ERROR',\n] as const;\n\n/**\n * Union of all known Nuanze API error codes.\n */\nexport type NuanzeErrorCode = (typeof NUANZE_ERROR_CODES)[number];\n"],"mappings":";;;;AAGA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-Boq1Oei1.cjs";
|
|
2
2
|
export { NuanzeServerCandle, NuanzeServerCohortPositioningCell, NuanzeServerCollateralFlow, NuanzeServerCollateralFlowPoint, NuanzeServerFollowedLeaderboardItem, NuanzeServerFundamentalsKeyData, NuanzeServerFundamentalsPerformance, NuanzeServerFundamentalsSocial, NuanzeServerFundamentalsValuation, NuanzeServerFundingObservation, NuanzeServerFundingRate, NuanzeServerLatestTicker, NuanzeServerLeaderboardItem, NuanzeServerMarket, NuanzeServerMarketDetail, NuanzeServerMarketPosition, NuanzeServerMarketPositioningBase, NuanzeServerMarketPositioningCohortResponse, NuanzeServerMarketPositioningNotionalBucketResponse, NuanzeServerMarketPositioningResponse, NuanzeServerMarketPositioningSideResponse, NuanzeServerMarketTrade, NuanzeServerNotionalBucketPositioningCell, NuanzeServerOpenPosition, NuanzeServerPlatformDeltas, NuanzeServerPositioningCellBase, NuanzeServerPositioningTotals, NuanzeServerSeriesPoint, NuanzeServerSidePositioningCell, NuanzeServerStockFundamentals, NuanzeServerSubaccountLeaderboardItem, NuanzeServerWalletPosition, NuanzeServerWalletTrade };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-6Yh2CDPU.js";
|
|
2
2
|
export { NuanzeServerCandle, NuanzeServerCohortPositioningCell, NuanzeServerCollateralFlow, NuanzeServerCollateralFlowPoint, NuanzeServerFollowedLeaderboardItem, NuanzeServerFundamentalsKeyData, NuanzeServerFundamentalsPerformance, NuanzeServerFundamentalsSocial, NuanzeServerFundamentalsValuation, NuanzeServerFundingObservation, NuanzeServerFundingRate, NuanzeServerLatestTicker, NuanzeServerLeaderboardItem, NuanzeServerMarket, NuanzeServerMarketDetail, NuanzeServerMarketPosition, NuanzeServerMarketPositioningBase, NuanzeServerMarketPositioningCohortResponse, NuanzeServerMarketPositioningNotionalBucketResponse, NuanzeServerMarketPositioningResponse, NuanzeServerMarketPositioningSideResponse, NuanzeServerMarketTrade, NuanzeServerNotionalBucketPositioningCell, NuanzeServerOpenPosition, NuanzeServerPlatformDeltas, NuanzeServerPositioningCellBase, NuanzeServerPositioningTotals, NuanzeServerSeriesPoint, NuanzeServerSidePositioningCell, NuanzeServerStockFundamentals, NuanzeServerSubaccountLeaderboardItem, NuanzeServerWalletPosition, NuanzeServerWalletTrade };
|
|
@@ -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-FSvlSr7y.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-ExbYAkBm.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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/nuanze-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.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.43.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": "00c909b8d77577f5fdc801faafaa8f724a029dd7"
|
|
54
54
|
}
|
package/src/NuanzeClient.ts
CHANGED
|
@@ -251,13 +251,12 @@ export class NuanzeClient {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
|
-
* Gets a keyset-paginated leaderboard for every subaccount a
|
|
255
|
-
* by PnL descending with nulls last.
|
|
256
|
-
*
|
|
257
|
-
* unless `includePrivate=true`.
|
|
254
|
+
* Gets a keyset-paginated leaderboard for every subaccount a supplied bytes32 subaccount actively
|
|
255
|
+
* follows, sorted by PnL descending with nulls last. The follower does not need a claimed
|
|
256
|
+
* username. Subaccounts with no PnL in the window are included by default with null PnL/rank,
|
|
257
|
+
* zero counts, and no products. Private subaccounts are excluded unless `includePrivate=true`.
|
|
258
258
|
*
|
|
259
|
-
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid
|
|
260
|
-
* `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.
|
|
259
|
+
* @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid.
|
|
261
260
|
*/
|
|
262
261
|
async getFollowedLeaderboard(
|
|
263
262
|
params: GetNuanzeFollowedLeaderboardParams,
|
|
@@ -488,7 +487,8 @@ export class NuanzeClient {
|
|
|
488
487
|
* Lists open perpetual position legs for the resolved market. Results default to absolute
|
|
489
488
|
* notional descending and can be ordered by signed unrealized PnL or absolute base amount in
|
|
490
489
|
* either direction. Spot markets are not supported. Legs below $10 absolute notional are excluded.
|
|
491
|
-
* Wallet addresses and signed exact base amounts
|
|
490
|
+
* Wallet addresses, nullable synced usernames and display names, and signed exact base amounts
|
|
491
|
+
* are returned.
|
|
492
492
|
*
|
|
493
493
|
* @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,
|
|
494
494
|
* `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or `BAD_REQUEST` on invalid input, and
|
package/src/dataMappers.ts
CHANGED
|
@@ -866,11 +866,11 @@ export function mapNuanzeMarketPositioningResponse(
|
|
|
866
866
|
}
|
|
867
867
|
|
|
868
868
|
/**
|
|
869
|
-
* Maps
|
|
869
|
+
* Maps fields shared by per-market and globally ranked position legs.
|
|
870
870
|
*/
|
|
871
|
-
|
|
872
|
-
server: NuanzeServerMarketPosition,
|
|
873
|
-
): NuanzeMarketPosition {
|
|
871
|
+
function mapNuanzePositionBase(
|
|
872
|
+
server: Omit<NuanzeServerMarketPosition, 'username' | 'displayName'>,
|
|
873
|
+
): Omit<NuanzeMarketPosition, 'username' | 'displayName'> {
|
|
874
874
|
return {
|
|
875
875
|
subaccountOwner: server.subaccountOwner,
|
|
876
876
|
subaccountName: server.subaccountName,
|
|
@@ -885,6 +885,19 @@ export function mapNuanzeMarketPosition(
|
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Maps a server-side market position leg, including its synced identity.
|
|
890
|
+
*/
|
|
891
|
+
export function mapNuanzeMarketPosition(
|
|
892
|
+
server: NuanzeServerMarketPosition,
|
|
893
|
+
): NuanzeMarketPosition {
|
|
894
|
+
return {
|
|
895
|
+
...mapNuanzePositionBase(server),
|
|
896
|
+
username: server.username,
|
|
897
|
+
displayName: server.displayName,
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
|
|
888
901
|
/**
|
|
889
902
|
* Maps a server-side `GET /markets/{ticker}/positions` response.
|
|
890
903
|
*/
|
|
@@ -914,7 +927,7 @@ export function mapNuanzeOpenPosition(
|
|
|
914
927
|
ticker: server.ticker,
|
|
915
928
|
venue: server.venue,
|
|
916
929
|
snapshotAt: server.snapshotAt,
|
|
917
|
-
...
|
|
930
|
+
...mapNuanzePositionBase(server),
|
|
918
931
|
};
|
|
919
932
|
}
|
|
920
933
|
|
|
@@ -840,6 +840,10 @@ export interface NuanzeMarketPosition {
|
|
|
840
840
|
subaccountOwner: string;
|
|
841
841
|
/** Subaccount name. */
|
|
842
842
|
subaccountName: string;
|
|
843
|
+
/** Claimed username, or null when the subaccount has no synced identity or none claimed. */
|
|
844
|
+
username: string | null;
|
|
845
|
+
/** Display name, or null when the subaccount has no synced identity or none set. */
|
|
846
|
+
displayName: string | null;
|
|
843
847
|
/** Venue-native symbol. */
|
|
844
848
|
symbol: string;
|
|
845
849
|
/** Margin mode. Isolated margin is isolated equity and is null when non-positive. */
|
|
@@ -864,7 +868,10 @@ export interface NuanzeMarketPosition {
|
|
|
864
868
|
/**
|
|
865
869
|
* Current open perpetual position leg in the global signed-unrealized-PnL ranking.
|
|
866
870
|
*/
|
|
867
|
-
export interface NuanzeOpenPosition extends
|
|
871
|
+
export interface NuanzeOpenPosition extends Omit<
|
|
872
|
+
NuanzeMarketPosition,
|
|
873
|
+
'username' | 'displayName'
|
|
874
|
+
> {
|
|
868
875
|
/** Public product ID for this row's market. */
|
|
869
876
|
productId: number;
|
|
870
877
|
/** Canonical market ticker. */
|
package/src/types/clientTypes.ts
CHANGED
|
@@ -210,8 +210,8 @@ export interface GetNuanzeSubaccountLeaderboardResponse {
|
|
|
210
210
|
* every per-subaccount figure.
|
|
211
211
|
*/
|
|
212
212
|
export interface GetNuanzeFollowedLeaderboardParams {
|
|
213
|
-
/**
|
|
214
|
-
|
|
213
|
+
/** Lowercase or mixed-case bytes32 hex of the follower subaccount whose active graph is ranked. */
|
|
214
|
+
subaccountHex: string;
|
|
215
215
|
/** Ranking window for every per-subaccount figure. */
|
|
216
216
|
timeframe: NuanzeLeaderboardTimeframe;
|
|
217
217
|
/** Include followed subaccounts with no PnL in the requested window, default true. */
|
|
@@ -221,8 +221,8 @@ export interface GetNuanzeFollowedLeaderboardParams {
|
|
|
221
221
|
/** Page size, 1-200, default 100. */
|
|
222
222
|
limit?: number;
|
|
223
223
|
/**
|
|
224
|
-
* Opaque cursor from the previous page. It is bound to the
|
|
225
|
-
* must be returned unchanged.
|
|
224
|
+
* Opaque cursor from the previous page. It is bound to the follower subaccount and normalized
|
|
225
|
+
* filters and must be returned unchanged.
|
|
226
226
|
*/
|
|
227
227
|
cursor?: string;
|
|
228
228
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Error codes
|
|
3
|
-
* of the published contract and additive only, so a client release can only ever lag behind on new
|
|
4
|
-
* ones - it never has to unlearn a code.
|
|
2
|
+
* Error codes in the current published Nuanze API contract, in service declaration order.
|
|
5
3
|
*/
|
|
6
4
|
export const NUANZE_ERROR_CODES = [
|
|
7
5
|
'BAD_REQUEST',
|
|
@@ -13,16 +11,15 @@ export const NUANZE_ERROR_CODES = [
|
|
|
13
11
|
'MARKET_SELECTOR_MISMATCH',
|
|
14
12
|
'MARKET_NOT_FOUND',
|
|
15
13
|
'WALLET_NOT_FOUND',
|
|
16
|
-
'USERNAME_NOT_FOUND',
|
|
17
14
|
'UNSUPPORTED_INTERVAL',
|
|
18
15
|
'UNSUPPORTED_BUCKET',
|
|
19
16
|
'RANGE_TOO_LARGE',
|
|
20
|
-
'NOT_FOUND',
|
|
21
|
-
'METHOD_NOT_ALLOWED',
|
|
22
17
|
'PAYLOAD_TOO_LARGE',
|
|
23
|
-
'
|
|
24
|
-
'
|
|
18
|
+
'METHOD_NOT_ALLOWED',
|
|
19
|
+
'RATE_LIMITED',
|
|
25
20
|
'GATEWAY_TIMEOUT',
|
|
21
|
+
'DEPENDENCY_UNAVAILABLE',
|
|
22
|
+
'INTERNAL_ERROR',
|
|
26
23
|
] as const;
|
|
27
24
|
|
|
28
25
|
/**
|
|
@@ -250,6 +250,8 @@ export interface NuanzeServerMarketTrade {
|
|
|
250
250
|
export interface NuanzeServerMarketPosition {
|
|
251
251
|
subaccountOwner: string;
|
|
252
252
|
subaccountName: string;
|
|
253
|
+
username: string | null;
|
|
254
|
+
displayName: string | null;
|
|
253
255
|
symbol: string;
|
|
254
256
|
marginKind: NuanzeMarginKind;
|
|
255
257
|
side: NuanzePositionSide;
|
|
@@ -263,7 +265,10 @@ export interface NuanzeServerMarketPosition {
|
|
|
263
265
|
/**
|
|
264
266
|
* Globally ranked current open position leg as returned on the wire.
|
|
265
267
|
*/
|
|
266
|
-
export interface NuanzeServerOpenPosition extends
|
|
268
|
+
export interface NuanzeServerOpenPosition extends Omit<
|
|
269
|
+
NuanzeServerMarketPosition,
|
|
270
|
+
'username' | 'displayName'
|
|
271
|
+
> {
|
|
267
272
|
productId: number;
|
|
268
273
|
ticker: string;
|
|
269
274
|
venue: 'perp';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NuanzeClient-CEmOugzW.cjs","names":["mapNuanzeNewsResponse","mapNuanzeMarketsResponse","mapNuanzeMarketByTickerResponse","mapNuanzeFundingRatesResponse","mapNuanzeLeaderboardResponse","mapNuanzeSubaccountLeaderboardResponse","mapNuanzePlatformSummaryResponse","mapNuanzeFollowedLeaderboardResponse","mapNuanzeWalletSummaryResponse","mapNuanzeWalletPositionsResponse","mapNuanzeMarketTradesResponse","mapNuanzeMarketCandlesResponse","mapNuanzeWalletTradesResponse","mapNuanzeWalletPnlResponse","mapNuanzeWalletPnlSeriesResponse","mapNuanzeCollateralFlowsResponse","mapNuanzeCollateralFlowSummaryResponse","mapNuanzeCollateralFlowSeriesResponse","mapNuanzeMarketPositioningResponse","mapNuanzeMarketPositionsResponse","mapNuanzeOpenPositionsResponse","isNuanzeServerFailureResponse","NuanzeServerFailureError"],"sources":["../src/NuanzeClient.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport {\n mapNuanzeCollateralFlowSeriesResponse,\n mapNuanzeCollateralFlowSummaryResponse,\n mapNuanzeCollateralFlowsResponse,\n mapNuanzeFollowedLeaderboardResponse,\n mapNuanzeFundingRatesResponse,\n mapNuanzeLeaderboardResponse,\n mapNuanzeMarketByTickerResponse,\n mapNuanzeMarketCandlesResponse,\n mapNuanzeMarketPositioningResponse,\n mapNuanzeMarketPositionsResponse,\n mapNuanzeMarketTradesResponse,\n mapNuanzeMarketsResponse,\n mapNuanzeNewsResponse,\n mapNuanzeOpenPositionsResponse,\n mapNuanzePlatformSummaryResponse,\n mapNuanzeSubaccountLeaderboardResponse,\n mapNuanzeWalletPnlResponse,\n mapNuanzeWalletPnlSeriesResponse,\n mapNuanzeWalletPositionsResponse,\n mapNuanzeWalletSummaryResponse,\n mapNuanzeWalletTradesResponse,\n} from './dataMappers';\nimport {\n GetNuanzeCollateralFlowSeriesParams,\n GetNuanzeCollateralFlowSeriesResponse,\n GetNuanzeCollateralFlowSummaryParams,\n GetNuanzeCollateralFlowSummaryResponse,\n GetNuanzeCollateralFlowsParams,\n GetNuanzeCollateralFlowsResponse,\n GetNuanzeFollowedLeaderboardParams,\n GetNuanzeFollowedLeaderboardResponse,\n GetNuanzeFundingRatesParams,\n GetNuanzeFundingRatesResponse,\n GetNuanzeLeaderboardParams,\n GetNuanzeLeaderboardResponse,\n GetNuanzeMarketByTickerParams,\n GetNuanzeMarketByTickerResponse,\n GetNuanzeMarketCandlesParams,\n GetNuanzeMarketCandlesResponse,\n GetNuanzeMarketPositioningParams,\n GetNuanzeMarketPositioningResponse,\n GetNuanzeMarketPositionsParams,\n GetNuanzeMarketPositionsResponse,\n GetNuanzeMarketTradesParams,\n GetNuanzeMarketTradesResponse,\n GetNuanzeMarketsParams,\n GetNuanzeMarketsResponse,\n GetNuanzeNewsParams,\n GetNuanzeNewsResponse,\n GetNuanzeOpenPositionsParams,\n GetNuanzeOpenPositionsResponse,\n GetNuanzePlatformSummaryParams,\n GetNuanzePlatformSummaryResponse,\n GetNuanzeSubaccountLeaderboardParams,\n GetNuanzeSubaccountLeaderboardResponse,\n GetNuanzeWalletPnlParams,\n GetNuanzeWalletPnlResponse,\n GetNuanzeWalletPnlSeriesParams,\n GetNuanzeWalletPnlSeriesResponse,\n GetNuanzeWalletPositionsParams,\n GetNuanzeWalletPositionsResponse,\n GetNuanzeWalletSummaryParams,\n GetNuanzeWalletSummaryResponse,\n GetNuanzeWalletTradesParams,\n GetNuanzeWalletTradesResponse,\n} from './types/clientTypes';\nimport { NuanzeServerFailureError } from './types/NuanzeServerFailureError';\nimport { NuanzeServerMarketPositioningResponse } from './types/serverModelTypes';\nimport {\n NuanzeServerCollateralFlowSeriesResponse,\n NuanzeServerCollateralFlowSummaryResponse,\n NuanzeServerCollateralFlowsResponse,\n NuanzeServerFollowedLeaderboardResponse,\n NuanzeServerFundingRatesResponse,\n NuanzeServerLeaderboardResponse,\n NuanzeServerMarketByTickerResponse,\n NuanzeServerMarketCandlesResponse,\n NuanzeServerMarketPositionsResponse,\n NuanzeServerMarketTradesResponse,\n NuanzeServerMarketsResponse,\n NuanzeServerNewsResponse,\n NuanzeServerOpenPositionsResponse,\n NuanzeServerPlatformSummaryResponse,\n NuanzeServerSubaccountLeaderboardResponse,\n NuanzeServerWalletPnlResponse,\n NuanzeServerWalletPnlSeriesResponse,\n NuanzeServerWalletPositionsResponse,\n NuanzeServerWalletSummaryResponse,\n NuanzeServerWalletTradesResponse,\n isNuanzeServerFailureResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Options for constructing a {@link NuanzeClient}.\n */\nexport interface NuanzeClientOpts {\n /**\n * Base URL of the Nuanze API, including the version segment, e.g. {@link NUANZE_CLIENT_ENDPOINTS}.\n */\n url: string;\n}\n\n/**\n * Client for the Nuanze public analytics API: markets, wallets, trades, candles, collateral flows,\n * and positioning.\n *\n * Read-only and credential-free, so unlike the other service clients it takes no wallet client or\n * linked signer. It also sends no `x-nado-client-type` header: Nuanze is a public API that does not\n * attribute traffic per client, and its `Access-Control-Allow-Headers` does not list the header, so\n * sending it would fail CORS preflight in the browser. All operations are GET.\n */\nexport class NuanzeClient {\n readonly opts: NuanzeClientOpts;\n readonly axiosInstance: AxiosInstance;\n\n constructor(opts: NuanzeClientOpts) {\n this.opts = opts;\n this.axiosInstance = axios.create({\n // Nuanze is public and answers every origin with `Access-Control-Allow-Origin: *`, which\n // browsers reject for credentialed requests.\n withCredentials: false,\n // We have custom logic to validate response status and create an appropriate error\n validateStatus: () => true,\n // Repeatable `productId` must serialize as `productId=1&productId=2` (OpenAPI explode).\n paramsSerializer: { indexes: null },\n });\n }\n\n /**\n * Lists published editorial stories, sorted by `publishedAt` descending then `id` descending.\n * The opaque cursor is exclusive and bound to normalized filters. Raw article ingestion, scoring,\n * queue, and newsdesk fields are excluded.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getNews(\n params: GetNuanzeNewsParams = {},\n ): Promise<GetNuanzeNewsResponse> {\n return mapNuanzeNewsResponse(\n await this.getJson<NuanzeServerNewsResponse>('/news', params),\n );\n }\n\n /**\n * Gets the active market universe, ordered by `productId` ascending. Never truncated, so `count`\n * always equals the length of `markets`. Market metadata refreshes about every five minutes and\n * prices about every minute.\n *\n * @throws {NuanzeServerFailureError} With error code `BAD_REQUEST` if a filter value is not a\n * documented venue or tradability state.\n */\n async getMarkets(\n params: GetNuanzeMarketsParams = {},\n ): Promise<GetNuanzeMarketsResponse> {\n return mapNuanzeMarketsResponse(\n await this.getJson<NuanzeServerMarketsResponse>('/markets', params),\n );\n }\n\n /**\n * Resolves a market by ticker. Lookup is case-insensitive and accepts canonical tickers or\n * legacy source symbols. An explicit unavailable venue returns `MARKET_NOT_FOUND`. With no\n * venue, `strictVenue=true` returns `AMBIGUOUS_MARKET` for multi-venue assets; otherwise the\n * primary venue is used.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or\n * `BAD_REQUEST` on invalid selectors, and `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketByTicker(\n params: GetNuanzeMarketByTickerParams,\n ): Promise<GetNuanzeMarketByTickerResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketByTickerResponse(\n await this.getJson<NuanzeServerMarketByTickerResponse>(\n `/markets/${encodeURIComponent(ticker)}`,\n query,\n ),\n );\n }\n\n /**\n * Lists the latest funding observation per active perpetual market, refreshed about every five\n * minutes.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getFundingRates(\n params: GetNuanzeFundingRatesParams = {},\n ): Promise<GetNuanzeFundingRatesResponse> {\n return mapNuanzeFundingRatesResponse(\n await this.getJson<NuanzeServerFundingRatesResponse>(\n '/funding/rates',\n params,\n ),\n );\n }\n\n /**\n * Gets the account PnL leaderboard. Equity-basis account PnL includes realized and unrealized\n * movement plus funding and is not realized PnL.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getLeaderboard(\n params: GetNuanzeLeaderboardParams = {},\n ): Promise<GetNuanzeLeaderboardResponse> {\n return mapNuanzeLeaderboardResponse(\n await this.getJson<NuanzeServerLeaderboardResponse>(\n '/leaderboard',\n params,\n ),\n );\n }\n\n /**\n * Gets the global public leaderboard of username-claimed subaccounts. Results are sorted by\n * equity-basis account PnL descending with nulls last. `globalRank` is independent of the active\n * privacy and trading filters. Pagination uses a filter-bound opaque cursor.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getSubaccountLeaderboard(\n params: GetNuanzeSubaccountLeaderboardParams = {},\n ): Promise<GetNuanzeSubaccountLeaderboardResponse> {\n return mapNuanzeSubaccountLeaderboardResponse(\n await this.getJson<NuanzeServerSubaccountLeaderboardResponse>(\n '/leaderboard/subaccounts',\n params,\n ),\n );\n }\n\n /**\n * Gets platform activity summary from five-minute aggregates.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if the window is not a documented value.\n */\n async getPlatformSummary(\n params: GetNuanzePlatformSummaryParams = {},\n ): Promise<GetNuanzePlatformSummaryResponse> {\n return mapNuanzePlatformSummaryResponse(\n await this.getJson<NuanzeServerPlatformSummaryResponse>(\n '/platform/summary',\n params,\n ),\n );\n }\n\n /**\n * Gets a keyset-paginated leaderboard for every subaccount a username actively follows, sorted\n * by PnL descending with nulls last. Subaccounts with no PnL in the window are included by\n * default with null PnL/rank, zero counts, and no products. Private subaccounts are excluded\n * unless `includePrivate=true`.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` when params are invalid, or\n * `USERNAME_NOT_FOUND` when the supplied username has no claimed identity.\n */\n async getFollowedLeaderboard(\n params: GetNuanzeFollowedLeaderboardParams,\n ): Promise<GetNuanzeFollowedLeaderboardResponse> {\n return mapNuanzeFollowedLeaderboardResponse(\n await this.getJson<NuanzeServerFollowedLeaderboardResponse>(\n '/wallets/leaderboard',\n params,\n ),\n );\n }\n\n /**\n * Gets replica-backed wallet analytics. Without `subaccountName`, latest cumulative values are\n * selected per known subaccount and then summed. The response is a snapshot and does not claim\n * live health, withdrawable collateral, open-order, or signer state.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletSummary(\n params: GetNuanzeWalletSummaryParams,\n ): Promise<GetNuanzeWalletSummaryResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletSummaryResponse(\n await this.getJson<NuanzeServerWalletSummaryResponse>(\n `/wallets/${encodeURIComponent(address)}`,\n query,\n ),\n );\n }\n\n /**\n * Lists at most 500 current replica position rows across all known subaccounts by default. Rows\n * remain per subaccount. Spot rows are excluded unless `includeSpot=true`. This is not an\n * execution-grade live feed.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPositions(\n params: GetNuanzeWalletPositionsParams,\n ): Promise<GetNuanzeWalletPositionsResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPositionsResponse(\n await this.getJson<NuanzeServerWalletPositionsResponse>(\n `/wallets/${encodeURIComponent(address)}/positions`,\n query,\n ),\n );\n }\n\n /**\n * Lists market trades: one taker-side row per match, sorted by `matchedAt` then `id` descending.\n * The exclusive cursor is bound to operation and normalized filters. `from` is inclusive and\n * `to` exclusive. Wallet identity is absent.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,\n * `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid\n * input, and `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketTrades(\n params: GetNuanzeMarketTradesParams,\n ): Promise<GetNuanzeMarketTradesResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketTradesResponse(\n await this.getJson<NuanzeServerMarketTradesResponse>(\n `/markets/${encodeURIComponent(ticker)}/trades`,\n query,\n ),\n );\n }\n\n /**\n * Lists market candles. Source storage is 1h; 4h and 1d are UTC-aligned rollups and missing bars\n * are not interpolated. The newest `limit` matching bars are selected and returned\n * oldest-to-newest, at most 750, with no pagination. A current bucket has `complete=false`.\n *\n * @throws {NuanzeServerFailureError} With `UNSUPPORTED_INTERVAL`, `RANGE_TOO_LARGE`,\n * `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or `BAD_REQUEST` on invalid input, and\n * `MARKET_NOT_FOUND` when the ticker does not resolve.\n */\n async getMarketCandles(\n params: GetNuanzeMarketCandlesParams,\n ): Promise<GetNuanzeMarketCandlesResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketCandlesResponse(\n await this.getJson<NuanzeServerMarketCandlesResponse>(\n `/markets/${encodeURIComponent(ticker)}/candles`,\n query,\n ),\n );\n }\n\n /**\n * Lists wallet-owned maker and taker execution rows, sorted by `matchedAt` then `id` descending.\n * The cursor is exclusive and filter-bound. `from` is inclusive and `to` exclusive.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS`, `INVALID_CURSOR`,\n * `CURSOR_FILTER_MISMATCH`, `RANGE_TOO_LARGE`, or `BAD_REQUEST` on invalid input, and\n * `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletTrades(\n params: GetNuanzeWalletTradesParams,\n ): Promise<GetNuanzeWalletTradesResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletTradesResponse(\n await this.getJson<NuanzeServerWalletTradesResponse>(\n `/wallets/${encodeURIComponent(address)}/trades`,\n query,\n ),\n );\n }\n\n /**\n * Gets wallet account PnL. 24h is rolling and uses hourly snapshots with a daily fallback\n * baseline. Longer windows use daily snapshots; `all` starts at earliest coverage. PnL includes\n * realized and unrealized movement plus funding.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPnl(\n params: GetNuanzeWalletPnlParams,\n ): Promise<GetNuanzeWalletPnlResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPnlResponse(\n await this.getJson<NuanzeServerWalletPnlResponse>(\n `/wallets/${encodeURIComponent(address)}/pnl`,\n query,\n ),\n );\n }\n\n /**\n * Gets a wallet account series of at most 1,000 deterministically sampled points ordered by\n * timestamp. Series contain a boundary anchor and a carried-forward request-time tip; synthetic\n * points are identified. Latest buckets may be provisional.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_ADDRESS` or `BAD_REQUEST` on invalid input,\n * and `WALLET_NOT_FOUND` when the address has no wallet data.\n */\n async getWalletPnlSeries(\n params: GetNuanzeWalletPnlSeriesParams,\n ): Promise<GetNuanzeWalletPnlSeriesResponse> {\n const { address, ...query } = params;\n return mapNuanzeWalletPnlSeriesResponse(\n await this.getJson<NuanzeServerWalletPnlSeriesResponse>(\n `/wallets/${encodeURIComponent(address)}/pnl/series`,\n query,\n ),\n );\n }\n\n /**\n * Lists public collateral events, sorted by timestamp then `id` descending. Repeated `productId`\n * uses OR semantics. `minUsd` excludes unvalued events; without it unvalued events remain.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST`, `INVALID_CURSOR`, or\n * `CURSOR_FILTER_MISMATCH` when filters or the cursor are invalid.\n */\n async getCollateralFlows(\n params: GetNuanzeCollateralFlowsParams = {},\n ): Promise<GetNuanzeCollateralFlowsResponse> {\n return mapNuanzeCollateralFlowsResponse(\n await this.getJson<NuanzeServerCollateralFlowsResponse>('/flows', params),\n );\n }\n\n /**\n * Gets collateral flow aggregates: deposited, withdrawn, net, and gross, with valuation coverage\n * and a prior equal-window comparison. `all` has no prior window.\n *\n * @throws {NuanzeServerFailureError} With `BAD_REQUEST` if a filter value is invalid.\n */\n async getCollateralFlowSummary(\n params: GetNuanzeCollateralFlowSummaryParams = {},\n ): Promise<GetNuanzeCollateralFlowSummaryResponse> {\n return mapNuanzeCollateralFlowSummaryResponse(\n await this.getJson<NuanzeServerCollateralFlowSummaryResponse>(\n '/flows/summary',\n params,\n ),\n );\n }\n\n /**\n * Gets collateral flow series of at most 1,000 UTC buckets. Allowed timeframe/bucket pairs are\n * 24h/hour, 7d/hour or day (default hour), 30d/day, and all/day.\n *\n * @throws {NuanzeServerFailureError} With `UNSUPPORTED_BUCKET` or `BAD_REQUEST` when the pair or\n * filters are invalid.\n */\n async getCollateralFlowSeries(\n params: GetNuanzeCollateralFlowSeriesParams = {},\n ): Promise<GetNuanzeCollateralFlowSeriesResponse> {\n return mapNuanzeCollateralFlowSeriesResponse(\n await this.getJson<NuanzeServerCollateralFlowSeriesResponse>(\n '/flows/series',\n params,\n ),\n );\n }\n\n /**\n * Gets privacy-preserving aggregate positioning for an active perpetual. Cross and isolated legs\n * are summed within owner/subaccount/product before direction classification. Every cell requires\n * at least 20 distinct contributing owners. No identity, individual position, entry price, PnL,\n * margin, or leverage fields are returned.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`, or\n * `BAD_REQUEST` on invalid input, and `MARKET_NOT_FOUND` when the ticker does not resolve to a\n * perp.\n */\n async getMarketPositioning(\n params: GetNuanzeMarketPositioningParams,\n ): Promise<GetNuanzeMarketPositioningResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketPositioningResponse(\n await this.getJson<NuanzeServerMarketPositioningResponse>(\n `/markets/${encodeURIComponent(ticker)}/positioning`,\n query,\n ),\n );\n }\n\n /**\n * Lists open perpetual position legs for the resolved market. Results default to absolute\n * notional descending and can be ordered by signed unrealized PnL or absolute base amount in\n * either direction. Spot markets are not supported. Legs below $10 absolute notional are excluded.\n * Wallet addresses and signed exact base amounts are returned.\n *\n * @throws {NuanzeServerFailureError} With `AMBIGUOUS_MARKET`, `MARKET_SELECTOR_MISMATCH`,\n * `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or `BAD_REQUEST` on invalid input, and\n * `MARKET_NOT_FOUND` when the ticker does not resolve to a perp.\n */\n async getMarketPositions(\n params: GetNuanzeMarketPositionsParams,\n ): Promise<GetNuanzeMarketPositionsResponse> {\n const { ticker, ...query } = params;\n return mapNuanzeMarketPositionsResponse(\n await this.getJson<NuanzeServerMarketPositionsResponse>(\n `/markets/${encodeURIComponent(ticker)}/positions`,\n query,\n ),\n );\n }\n\n /**\n * Lists current open perpetual position legs across every market by signed unrealized PnL.\n * Descending returns the largest gainers and ascending returns the largest losers. This is a\n * latest indexed snapshot with no timeframe. Legs below $10 absolute notional are excluded.\n * Private subaccounts are excluded unless `includePrivate=true`. Each row includes market\n * identity and its source snapshot timestamp.\n *\n * @throws {NuanzeServerFailureError} With `INVALID_CURSOR`, `CURSOR_FILTER_MISMATCH`, or\n * `BAD_REQUEST` when the query or cursor is invalid.\n */\n async getOpenPositions(\n params: GetNuanzeOpenPositionsParams = {},\n ): Promise<GetNuanzeOpenPositionsResponse> {\n return mapNuanzeOpenPositionsResponse(\n await this.getJson<NuanzeServerOpenPositionsResponse>(\n '/positions',\n params,\n ),\n );\n }\n\n /**\n * Performs a GET against `{baseUrl}{path}` and classifies the status before returning the body.\n */\n private async getJson<T>(path: string, params?: object): Promise<T> {\n return this.requestJson<T>(path, { params });\n }\n\n private async requestJson<T>(\n path: string,\n config: { params?: object } = {},\n ): Promise<T> {\n const response = await this.axiosInstance.request<T>({\n method: 'GET',\n url: `${this.opts.url}${path}`,\n ...config,\n });\n this.checkResponseStatus(response);\n return response.data;\n }\n\n /**\n * Validates the HTTP status before interpreting the body. Nuanze maps every domain failure onto a\n * non-2xx status carrying a failure envelope, so anything else is a transport-level error.\n */\n private checkResponseStatus(response: AxiosResponse<unknown>) {\n if (response.status >= 200 && response.status < 300) {\n return;\n }\n if (isNuanzeServerFailureResponse(response.data)) {\n throw new NuanzeServerFailureError(response.data, response.status);\n }\n throw new Error(\n `Unexpected response from Nuanze: ${response.status} ${response.statusText}. Data: ${JSON.stringify(response.data)}`,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA,IAAa,eAAb,MAA0B;CAIxB,YAAY,MAAwB;EAClC,KAAK,OAAO;EACZ,KAAK,gBAAgB,MAAA,QAAM,OAAO;GAGhC,iBAAiB;GAEjB,sBAAsB;GAEtB,kBAAkB,EAAE,SAAS,KAAK;EACpC,CAAC;CACH;;;;;;;;;CAUA,MAAM,QACJ,SAA8B,CAAC,GACC;EAChC,OAAOA,oBAAAA,sBACL,MAAM,KAAK,QAAkC,SAAS,MAAM,CAC9D;CACF;;;;;;;;;CAUA,MAAM,WACJ,SAAiC,CAAC,GACC;EACnC,OAAOC,oBAAAA,yBACL,MAAM,KAAK,QAAqC,YAAY,MAAM,CACpE;CACF;;;;;;;;;;CAWA,MAAM,kBACJ,QAC0C;EAC1C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAOC,oBAAAA,gCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,KACrC,KACF,CACF;CACF;;;;;;;CAQA,MAAM,gBACJ,SAAsC,CAAC,GACC;EACxC,OAAOC,oBAAAA,8BACL,MAAM,KAAK,QACT,kBACA,MACF,CACF;CACF;;;;;;;CAQA,MAAM,eACJ,SAAqC,CAAC,GACC;EACvC,OAAOC,oBAAAA,6BACL,MAAM,KAAK,QACT,gBACA,MACF,CACF;CACF;;;;;;;;;CAUA,MAAM,yBACJ,SAA+C,CAAC,GACC;EACjD,OAAOC,oBAAAA,uCACL,MAAM,KAAK,QACT,4BACA,MACF,CACF;CACF;;;;;;CAOA,MAAM,mBACJ,SAAyC,CAAC,GACC;EAC3C,OAAOC,oBAAAA,iCACL,MAAM,KAAK,QACT,qBACA,MACF,CACF;CACF;;;;;;;;;;CAWA,MAAM,uBACJ,QAC+C;EAC/C,OAAOC,oBAAAA,qCACL,MAAM,KAAK,QACT,wBACA,MACF,CACF;CACF;;;;;;;;;CAUA,MAAM,iBACJ,QACyC;EACzC,MAAM,EAAE,SAAS,GAAG,UAAU;EAC9B,OAAOC,oBAAAA,+BACL,MAAM,KAAK,QACT,YAAY,mBAAmB,OAAO,KACtC,KACF,CACF;CACF;;;;;;;;;CAUA,MAAM,mBACJ,QAC2C;EAC3C,MAAM,EAAE,SAAS,GAAG,UAAU;EAC9B,OAAOC,oBAAAA,iCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,OAAO,EAAE,aACxC,KACF,CACF;CACF;;;;;;;;;;CAWA,MAAM,gBACJ,QACwC;EACxC,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAOC,oBAAAA,8BACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,UACvC,KACF,CACF;CACF;;;;;;;;;;CAWA,MAAM,iBACJ,QACyC;EACzC,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAOC,oBAAAA,+BACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,WACvC,KACF,CACF;CACF;;;;;;;;;CAUA,MAAM,gBACJ,QACwC;EACxC,MAAM,EAAE,SAAS,GAAG,UAAU;EAC9B,OAAOC,oBAAAA,8BACL,MAAM,KAAK,QACT,YAAY,mBAAmB,OAAO,EAAE,UACxC,KACF,CACF;CACF;;;;;;;;;CAUA,MAAM,aACJ,QACqC;EACrC,MAAM,EAAE,SAAS,GAAG,UAAU;EAC9B,OAAOC,oBAAAA,2BACL,MAAM,KAAK,QACT,YAAY,mBAAmB,OAAO,EAAE,OACxC,KACF,CACF;CACF;;;;;;;;;CAUA,MAAM,mBACJ,QAC2C;EAC3C,MAAM,EAAE,SAAS,GAAG,UAAU;EAC9B,OAAOC,oBAAAA,iCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,OAAO,EAAE,cACxC,KACF,CACF;CACF;;;;;;;;CASA,MAAM,mBACJ,SAAyC,CAAC,GACC;EAC3C,OAAOC,oBAAAA,iCACL,MAAM,KAAK,QAA6C,UAAU,MAAM,CAC1E;CACF;;;;;;;CAQA,MAAM,yBACJ,SAA+C,CAAC,GACC;EACjD,OAAOC,oBAAAA,uCACL,MAAM,KAAK,QACT,kBACA,MACF,CACF;CACF;;;;;;;;CASA,MAAM,wBACJ,SAA8C,CAAC,GACC;EAChD,OAAOC,oBAAAA,sCACL,MAAM,KAAK,QACT,iBACA,MACF,CACF;CACF;;;;;;;;;;;CAYA,MAAM,qBACJ,QAC6C;EAC7C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAOC,oBAAAA,mCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,eACvC,KACF,CACF;CACF;;;;;;;;;;;CAYA,MAAM,mBACJ,QAC2C;EAC3C,MAAM,EAAE,QAAQ,GAAG,UAAU;EAC7B,OAAOC,oBAAAA,iCACL,MAAM,KAAK,QACT,YAAY,mBAAmB,MAAM,EAAE,aACvC,KACF,CACF;CACF;;;;;;;;;;;CAYA,MAAM,iBACJ,SAAuC,CAAC,GACC;EACzC,OAAOC,oBAAAA,+BACL,MAAM,KAAK,QACT,cACA,MACF,CACF;CACF;;;;CAKA,MAAc,QAAW,MAAc,QAA6B;EAClE,OAAO,KAAK,YAAe,MAAM,EAAE,OAAO,CAAC;CAC7C;CAEA,MAAc,YACZ,MACA,SAA8B,CAAC,GACnB;EACZ,MAAM,WAAW,MAAM,KAAK,cAAc,QAAW;GACnD,QAAQ;GACR,KAAK,GAAG,KAAK,KAAK,MAAM;GACxB,GAAG;EACL,CAAC;EACD,KAAK,oBAAoB,QAAQ;EACjC,OAAO,SAAS;CAClB;;;;;CAMA,oBAA4B,UAAkC;EAC5D,IAAI,SAAS,UAAU,OAAO,SAAS,SAAS,KAC9C;EAEF,IAAIC,+BAAAA,8BAA8B,SAAS,IAAI,GAC7C,MAAM,IAAIC,uCAAAA,yBAAyB,SAAS,MAAM,SAAS,MAAM;EAEnE,MAAM,IAAI,MACR,oCAAoC,SAAS,OAAO,GAAG,SAAS,WAAW,UAAU,KAAK,UAAU,SAAS,IAAI,GACnH;CACF;AACF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/types/nuanzeErrorCodes.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Error codes returned by the Nuanze API, in the order the service declares them. The codes are part
|
|
4
|
-
* of the published contract and additive only, so a client release can only ever lag behind on new
|
|
5
|
-
* ones - it never has to unlearn a code.
|
|
6
|
-
*/
|
|
7
|
-
declare const NUANZE_ERROR_CODES: readonly ["BAD_REQUEST", "INVALID_CURSOR", "CURSOR_FILTER_MISMATCH", "INVALID_ADDRESS", "INVALID_SUBACCOUNT", "AMBIGUOUS_MARKET", "MARKET_SELECTOR_MISMATCH", "MARKET_NOT_FOUND", "WALLET_NOT_FOUND", "USERNAME_NOT_FOUND", "UNSUPPORTED_INTERVAL", "UNSUPPORTED_BUCKET", "RANGE_TOO_LARGE", "NOT_FOUND", "METHOD_NOT_ALLOWED", "PAYLOAD_TOO_LARGE", "INTERNAL_ERROR", "DEPENDENCY_UNAVAILABLE", "GATEWAY_TIMEOUT"];
|
|
8
|
-
/**
|
|
9
|
-
* Union of all known Nuanze API error codes.
|
|
10
|
-
*/
|
|
11
|
-
type NuanzeErrorCode = (typeof NUANZE_ERROR_CODES)[number];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { NuanzeErrorCode as n, NUANZE_ERROR_CODES as t };
|
|
14
|
-
//# sourceMappingURL=nuanzeErrorCodes-DMoRcCHK.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nuanzeErrorCodes-DMoRcCHK.d.cts","names":[],"sources":["../src/types/src/types/nuanzeErrorCodes.ts"],"mappings":";;AAKA;;;;cAAa,kBAAA;AAyBb;;;AAAA,KAAY,eAAA,WAA0B,kBAAkB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/types/nuanzeErrorCodes.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Error codes returned by the Nuanze API, in the order the service declares them. The codes are part
|
|
4
|
-
* of the published contract and additive only, so a client release can only ever lag behind on new
|
|
5
|
-
* ones - it never has to unlearn a code.
|
|
6
|
-
*/
|
|
7
|
-
declare const NUANZE_ERROR_CODES: readonly ["BAD_REQUEST", "INVALID_CURSOR", "CURSOR_FILTER_MISMATCH", "INVALID_ADDRESS", "INVALID_SUBACCOUNT", "AMBIGUOUS_MARKET", "MARKET_SELECTOR_MISMATCH", "MARKET_NOT_FOUND", "WALLET_NOT_FOUND", "USERNAME_NOT_FOUND", "UNSUPPORTED_INTERVAL", "UNSUPPORTED_BUCKET", "RANGE_TOO_LARGE", "NOT_FOUND", "METHOD_NOT_ALLOWED", "PAYLOAD_TOO_LARGE", "INTERNAL_ERROR", "DEPENDENCY_UNAVAILABLE", "GATEWAY_TIMEOUT"];
|
|
8
|
-
/**
|
|
9
|
-
* Union of all known Nuanze API error codes.
|
|
10
|
-
*/
|
|
11
|
-
type NuanzeErrorCode = (typeof NUANZE_ERROR_CODES)[number];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { NuanzeErrorCode as n, NUANZE_ERROR_CODES as t };
|
|
14
|
-
//# sourceMappingURL=nuanzeErrorCodes-DewKYqCe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nuanzeErrorCodes-DewKYqCe.d.ts","names":[],"sources":["../src/types/src/types/nuanzeErrorCodes.ts"],"mappings":";;AAKA;;;;cAAa,kBAAA;AAyBb;;;AAAA,KAAY,eAAA,WAA0B,kBAAkB"}
|