@nadohq/indexer-client 0.28.0 → 0.30.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.
Files changed (77) hide show
  1. package/dist/{IndexerBaseClient-BesuTUAd.cjs → IndexerBaseClient-B7cApziU.cjs} +11 -1
  2. package/dist/IndexerBaseClient-B7cApziU.cjs.map +1 -0
  3. package/dist/IndexerBaseClient.cjs +1 -1
  4. package/dist/IndexerBaseClient.d.cts +10 -2
  5. package/dist/IndexerBaseClient.d.cts.map +1 -1
  6. package/dist/IndexerBaseClient.d.ts +10 -2
  7. package/dist/IndexerBaseClient.d.ts.map +1 -1
  8. package/dist/IndexerBaseClient.js +11 -1
  9. package/dist/IndexerBaseClient.js.map +1 -1
  10. package/dist/IndexerClient.cjs +1 -1
  11. package/dist/IndexerClient.d.cts +1 -1
  12. package/dist/IndexerClient.d.ts +1 -1
  13. package/dist/{IndexerServerFailureError-Cp-nQ6BQ.d.ts → IndexerServerFailureError-BDumqvxn.d.cts} +7 -13
  14. package/dist/IndexerServerFailureError-BDumqvxn.d.cts.map +1 -0
  15. package/dist/{IndexerServerFailureError-qVBOC6Ru.d.cts → IndexerServerFailureError-CNfg1fnY.d.ts} +7 -13
  16. package/dist/IndexerServerFailureError-CNfg1fnY.d.ts.map +1 -0
  17. package/dist/{clientTypes-Cke-KLUR.d.ts → clientTypes-B9CLpWyr.d.ts} +28 -3
  18. package/dist/clientTypes-B9CLpWyr.d.ts.map +1 -0
  19. package/dist/{clientTypes-C6gfQzsU.d.cts → clientTypes-pI3pxxup.d.cts} +28 -3
  20. package/dist/clientTypes-pI3pxxup.d.cts.map +1 -0
  21. package/dist/dataMappers.cjs +15 -1
  22. package/dist/dataMappers.cjs.map +1 -1
  23. package/dist/dataMappers.d.cts +4 -3
  24. package/dist/dataMappers.d.cts.map +1 -1
  25. package/dist/dataMappers.d.ts +4 -3
  26. package/dist/dataMappers.d.ts.map +1 -1
  27. package/dist/dataMappers.js +14 -1
  28. package/dist/dataMappers.js.map +1 -1
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.d.cts +6 -6
  31. package/dist/index.d.ts +6 -6
  32. package/dist/{indexerBalanceValue-BBUGThDY.d.cts → indexerBalanceValue-DyBxYbS1.d.cts} +2 -2
  33. package/dist/{indexerBalanceValue-BBUGThDY.d.cts.map → indexerBalanceValue-DyBxYbS1.d.cts.map} +1 -1
  34. package/dist/{indexerBalanceValue-dX29Cr7g.d.ts → indexerBalanceValue-Dz405nR_.d.ts} +2 -2
  35. package/dist/{indexerBalanceValue-dX29Cr7g.d.ts.map → indexerBalanceValue-Dz405nR_.d.ts.map} +1 -1
  36. package/dist/{paginatedEventsTypes-BOUjVtm0.d.ts → paginatedEventsTypes-BJXTuQTz.d.ts} +2 -2
  37. package/dist/{paginatedEventsTypes-BOUjVtm0.d.ts.map → paginatedEventsTypes-BJXTuQTz.d.ts.map} +1 -1
  38. package/dist/{paginatedEventsTypes-BeMZ3Cac.d.cts → paginatedEventsTypes-CrzCU35F.d.cts} +2 -2
  39. package/dist/{paginatedEventsTypes-BeMZ3Cac.d.cts.map → paginatedEventsTypes-CrzCU35F.d.cts.map} +1 -1
  40. package/dist/{serverTypes-E311idZv.d.cts → serverTypes-BNCw3_T1.d.cts} +15 -2
  41. package/dist/serverTypes-BNCw3_T1.d.cts.map +1 -0
  42. package/dist/{serverTypes-l4ceojIp.d.ts → serverTypes-DkRgWlZV.d.ts} +15 -2
  43. package/dist/serverTypes-DkRgWlZV.d.ts.map +1 -0
  44. package/dist/types/IndexerServerFailureError.cjs +6 -8
  45. package/dist/types/IndexerServerFailureError.cjs.map +1 -1
  46. package/dist/types/IndexerServerFailureError.d.cts +1 -1
  47. package/dist/types/IndexerServerFailureError.d.ts +1 -1
  48. package/dist/types/IndexerServerFailureError.js +5 -8
  49. package/dist/types/IndexerServerFailureError.js.map +1 -1
  50. package/dist/types/clientTypes.d.cts +2 -2
  51. package/dist/types/clientTypes.d.ts +2 -2
  52. package/dist/types/index.d.cts +5 -5
  53. package/dist/types/index.d.ts +5 -5
  54. package/dist/types/indexerErrorCodes.cjs +1 -1
  55. package/dist/types/paginatedEventsTypes.d.cts +1 -1
  56. package/dist/types/paginatedEventsTypes.d.ts +1 -1
  57. package/dist/types/serverTypes.cjs.map +1 -1
  58. package/dist/types/serverTypes.d.cts +2 -2
  59. package/dist/types/serverTypes.d.ts +2 -2
  60. package/dist/types/serverTypes.js.map +1 -1
  61. package/dist/utils/index.d.cts +1 -1
  62. package/dist/utils/index.d.ts +1 -1
  63. package/dist/utils/indexerBalanceValue.d.cts +1 -1
  64. package/dist/utils/indexerBalanceValue.d.ts +1 -1
  65. package/package.json +4 -4
  66. package/src/IndexerBaseClient.ts +20 -0
  67. package/src/dataMappers.ts +31 -0
  68. package/src/types/IndexerServerFailureError.ts +9 -19
  69. package/src/types/clientTypes.ts +45 -0
  70. package/src/types/serverTypes.ts +30 -0
  71. package/dist/IndexerBaseClient-BesuTUAd.cjs.map +0 -1
  72. package/dist/IndexerServerFailureError-Cp-nQ6BQ.d.ts.map +0 -1
  73. package/dist/IndexerServerFailureError-qVBOC6Ru.d.cts.map +0 -1
  74. package/dist/clientTypes-C6gfQzsU.d.cts.map +0 -1
  75. package/dist/clientTypes-Cke-KLUR.d.ts.map +0 -1
  76. package/dist/serverTypes-E311idZv.d.cts.map +0 -1
  77. package/dist/serverTypes-l4ceojIp.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n mapEngineServerPerpProduct,\n mapEngineServerSpotProduct,\n} from '@nadohq/engine-client';\nimport {\n getRecvTimeFromOrderNonce,\n mapValues,\n Market,\n PerpMarket,\n ProductEngineType,\n removeDecimals,\n SpotMarket,\n subaccountFromHex,\n toBigNumber,\n toIntegerString,\n unpackOrderAppendix,\n} from '@nadohq/shared';\nimport {\n Candlestick,\n IndexerEvent,\n IndexerEventWithTx,\n IndexerFundingRate,\n IndexerFundingRateHistoryEntry,\n IndexerLeaderboardContest,\n IndexerLeaderboardParticipant,\n IndexerLeaderboardRegistration,\n IndexerMaker,\n IndexerMarketSnapshot,\n IndexerMatchEventBalances,\n IndexerNlpSnapshot,\n IndexerOrder,\n IndexerPerpBalance,\n IndexerPerpPrices,\n IndexerProductPayment,\n IndexerServerBalance,\n IndexerServerCandlestick,\n IndexerServerEvent,\n IndexerServerFundingRate,\n IndexerServerFundingRateHistoryEntry,\n IndexerServerLeaderboardContest,\n IndexerServerLeaderboardPosition,\n IndexerServerLeaderboardRegistration,\n IndexerServerMaker,\n IndexerServerMarketSnapshot,\n IndexerServerMatchEventBalances,\n IndexerServerNlpSnapshot,\n IndexerServerOrder,\n IndexerServerPerpPrices,\n IndexerServerProduct,\n IndexerServerProductPayment,\n IndexerServerSnapshotsInterval,\n IndexerServerTx,\n IndexerServerV2MarketHours,\n IndexerServerV2Symbol,\n IndexerServerV2TickerResponse,\n IndexerSnapshotsIntervalParams,\n IndexerSpotBalance,\n IndexerV2MarketHours,\n IndexerV2Symbol,\n IndexerV2TickerResponse,\n IndexerV2TradingStatus,\n} from './types';\n\nexport function mapSnapshotsIntervalToServerParams(\n params: IndexerSnapshotsIntervalParams,\n): IndexerServerSnapshotsInterval {\n return {\n count: params.limit,\n max_time: params.maxTimeInclusive\n ? toIntegerString(params.maxTimeInclusive)\n : undefined,\n granularity: params.granularity,\n };\n}\n\nexport function mapIndexerServerProduct(product: IndexerServerProduct): Market {\n if ('spot' in product) {\n return mapEngineServerSpotProduct(product.spot);\n }\n return mapEngineServerPerpProduct(product.perp);\n}\n\nexport function mapIndexerServerBalance(\n balance: IndexerServerBalance,\n): IndexerSpotBalance | IndexerPerpBalance {\n if ('spot' in balance) {\n return {\n amount: toBigNumber(balance.spot.balance.amount),\n productId: balance.spot.product_id,\n type: ProductEngineType.SPOT,\n };\n }\n return {\n amount: toBigNumber(balance.perp.balance.amount),\n productId: balance.perp.product_id,\n type: ProductEngineType.PERP,\n vQuoteBalance: toBigNumber(balance.perp.balance.v_quote_balance),\n };\n}\n\nexport function mapIndexerOrder(order: IndexerServerOrder): IndexerOrder {\n const appendix = unpackOrderAppendix(order.appendix);\n return {\n amount: toBigNumber(order.amount),\n digest: order.digest,\n expiration: Number(order.expiration),\n appendix,\n nonce: toBigNumber(order.nonce),\n isolated: order.isolated,\n recvTimeSeconds: getRecvTimeFromOrderNonce(order.nonce) / 1000,\n price: removeDecimals(order.price_x18),\n productId: order.product_id,\n subaccount: order.subaccount,\n submissionIndex: order.submission_idx,\n lastFillSubmissionIndex: order.last_fill_submission_idx,\n baseFilled: toBigNumber(order.base_filled),\n quoteFilled: toBigNumber(order.quote_filled),\n totalFee: toBigNumber(order.fee),\n builderFee: toBigNumber(order.builder_fee),\n realizedPnl: toBigNumber(order.realized_pnl),\n closedAmount: toBigNumber(order.closed_amount),\n closedNetEntry: toBigNumber(order.closed_net_entry),\n preCloseMargin: order.closed_margin\n ? toBigNumber(order.closed_margin)\n : null,\n firstFillTimestamp: toBigNumber(order.first_fill_timestamp),\n lastFillTimestamp: toBigNumber(order.last_fill_timestamp),\n preBalances: mapIndexerMatchEventBalances(order.pre_balance),\n postBalances: mapIndexerMatchEventBalances(order.post_balance),\n };\n}\n\nexport function mapIndexerEvent(event: IndexerServerEvent): IndexerEvent {\n const eventState: IndexerEvent['state'] = (() => {\n // Assume backend data is consistent\n if ('spot' in event.pre_balance) {\n return {\n type: ProductEngineType.SPOT,\n market: mapIndexerServerProduct(event.product) as SpotMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerSpotBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerSpotBalance,\n };\n }\n return {\n type: ProductEngineType.PERP,\n market: mapIndexerServerProduct(event.product) as PerpMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerPerpBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerPerpBalance,\n };\n })();\n\n return {\n eventType: event.event_type,\n productId: event.product_id,\n isolated: event.isolated,\n isolatedProductId: event.isolated_product_id,\n state: eventState,\n subaccount: event.subaccount,\n submissionIndex: event.submission_idx,\n trackedVars: {\n netEntryCumulative: toBigNumber(event.net_entry_cumulative),\n netEntryUnrealized: toBigNumber(event.net_entry_unrealized),\n netFundingCumulative: toBigNumber(event.net_funding_cumulative),\n netFundingUnrealized: toBigNumber(event.net_funding_unrealized),\n netInterestCumulative: toBigNumber(event.net_interest_cumulative),\n netInterestUnrealized: toBigNumber(event.net_interest_unrealized),\n quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),\n },\n };\n}\n\nexport function mapIndexerEventWithTx(\n event: IndexerServerEvent,\n tx: IndexerServerTx,\n): IndexerEventWithTx {\n return {\n timestamp: toBigNumber(tx.timestamp),\n tx: tx.tx,\n ...mapIndexerEvent(event),\n };\n}\n\nexport function mapIndexerMatchEventBalances(\n eventBalances: IndexerServerMatchEventBalances,\n): IndexerMatchEventBalances {\n return {\n base: mapIndexerServerBalance(eventBalances.base),\n quote: eventBalances.quote\n ? (mapIndexerServerBalance(eventBalances.quote) as IndexerSpotBalance)\n : undefined,\n };\n}\n\nexport function mapIndexerProductPayment(\n payment: IndexerServerProductPayment,\n): IndexerProductPayment {\n return {\n submissionIndex: payment.idx,\n timestamp: toBigNumber(payment.timestamp),\n paymentAmount: toBigNumber(payment.amount),\n balanceAmount: toBigNumber(payment.balance_amount),\n annualPaymentRate: removeDecimals(payment.rate_x18),\n oraclePrice: removeDecimals(payment.oracle_price_x18),\n isolated: payment.isolated,\n productId: payment.product_id,\n isolatedProductId: payment.isolated_product_id,\n };\n}\n\nexport function mapIndexerPerpPrices(\n perpPrices: IndexerServerPerpPrices,\n): IndexerPerpPrices {\n return {\n indexPrice: removeDecimals(perpPrices.index_price_x18),\n markPrice: removeDecimals(perpPrices.mark_price_x18),\n updateTime: toBigNumber(perpPrices.update_time),\n productId: perpPrices.product_id,\n };\n}\n\nexport function mapIndexerFundingRate(\n fundingRate: IndexerServerFundingRate,\n): IndexerFundingRate {\n return {\n fundingRate: removeDecimals(fundingRate.funding_rate_x18),\n updateTime: toBigNumber(fundingRate.update_time),\n productId: fundingRate.product_id,\n };\n}\n\nexport function mapIndexerFundingRateHistory(\n entry: IndexerServerFundingRateHistoryEntry,\n): IndexerFundingRateHistoryEntry {\n return {\n productId: entry.product_id,\n timestamp: toBigNumber(entry.timestamp),\n fundingRateFrac: removeDecimals(entry.funding_rate_x18),\n };\n}\n\nexport function mapIndexerMakerStatistics(\n maker: IndexerServerMaker,\n): IndexerMaker {\n return {\n address: maker.address,\n snapshots: maker.data.map((makerData) => {\n return {\n timestamp: toBigNumber(makerData.timestamp),\n makerFee: toBigNumber(makerData.maker_fee),\n uptime: toBigNumber(makerData.uptime),\n sumQMin: toBigNumber(makerData.sum_q_min),\n qScore: toBigNumber(makerData.q_score),\n makerShare: toBigNumber(makerData.maker_share),\n expectedMakerReward: toBigNumber(makerData.expected_maker_reward),\n };\n }),\n };\n}\n\nexport function mapIndexerLeaderboardPosition(\n position: IndexerServerLeaderboardPosition,\n): IndexerLeaderboardParticipant {\n const tracks = mapValues(position.tracks, (trackData) => ({\n value: toBigNumber(trackData.value),\n rank: toBigNumber(trackData.rank),\n qualificationStatus: trackData.qualification_status,\n }));\n\n return {\n subaccount: subaccountFromHex(position.subaccount),\n contestId: position.contest_id,\n accountValue: toBigNumber(position.account_value),\n updateTime: toBigNumber(position.update_time),\n tracks,\n socialAccounts: position.social_accounts.map((account) => ({\n provider: account.provider,\n username: account.username,\n displayName: account.display_name,\n profileImageUrl: account.profile_image_url,\n })),\n };\n}\n\nexport function mapIndexerLeaderboardRegistration(\n registration: IndexerServerLeaderboardRegistration,\n): IndexerLeaderboardRegistration {\n return {\n subaccount: subaccountFromHex(registration.subaccount),\n contestId: registration.contest_id,\n updateTime: toBigNumber(registration.update_time),\n };\n}\n\nexport function mapIndexerLeaderboardContest(\n contest: IndexerServerLeaderboardContest,\n): IndexerLeaderboardContest {\n const startTime = toBigNumber(contest.start_time);\n const endTime = toBigNumber(contest.end_time);\n\n return {\n contestId: contest.contest_id,\n startTime,\n endTime,\n totalParticipants: toBigNumber(contest.count),\n requiredProductIds: contest.product_ids,\n active: contest.active,\n lastUpdated: toBigNumber(contest.last_updated),\n title: contest.title,\n description: contest.description,\n tracks: contest.tracks.map((track) => ({\n trackId: track.track_id,\n rankType: track.rank_type,\n sortOrder: track.sort_order,\n accountValueThreshold: toBigNumber(track.threshold),\n volumeThreshold: toBigNumber(track.volume_threshold),\n })),\n };\n}\n\nexport function mapIndexerCandlesticks(\n candlestick: IndexerServerCandlestick,\n): Candlestick {\n return {\n close: removeDecimals(candlestick.close_x18),\n high: removeDecimals(candlestick.high_x18),\n low: removeDecimals(candlestick.low_x18),\n open: removeDecimals(candlestick.open_x18),\n time: toBigNumber(candlestick.timestamp),\n volume: toBigNumber(candlestick.volume),\n };\n}\n\nexport function mapIndexerMarketSnapshot(\n snapshot: IndexerServerMarketSnapshot,\n): IndexerMarketSnapshot {\n return {\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeUsers: toBigNumber(snapshot.cumulative_users),\n dailyActiveUsers: toBigNumber(snapshot.daily_active_users),\n tvl: toBigNumber(snapshot.tvl),\n borrowRates: mapValues(snapshot.borrow_rates, (value) =>\n removeDecimals(value),\n ),\n cumulativeLiquidationAmounts: mapValues(\n snapshot.cumulative_liquidation_amounts,\n toBigNumber,\n ),\n cumulativeMakerFees: mapValues(snapshot.cumulative_maker_fees, toBigNumber),\n cumulativeSequencerFees: mapValues(\n snapshot.cumulative_sequencer_fees,\n toBigNumber,\n ),\n cumulativeTakerFees: mapValues(snapshot.cumulative_taker_fees, toBigNumber),\n cumulativeTrades: mapValues(snapshot.cumulative_trades, toBigNumber),\n cumulativeVolumes: mapValues(snapshot.cumulative_volumes, toBigNumber),\n depositRates: mapValues(snapshot.deposit_rates, (value) =>\n removeDecimals(value),\n ),\n fundingRates: mapValues(snapshot.funding_rates, (value) =>\n removeDecimals(value),\n ),\n openInterestsQuote: mapValues(snapshot.open_interests, toBigNumber),\n totalBorrows: mapValues(snapshot.total_borrows, toBigNumber),\n totalDeposits: mapValues(snapshot.total_deposits, toBigNumber),\n cumulativeTradeSizes: mapValues(\n snapshot.cumulative_trade_sizes,\n toBigNumber,\n ),\n cumulativeInflows: mapValues(snapshot.cumulative_inflows, toBigNumber),\n cumulativeOutflows: mapValues(snapshot.cumulative_outflows, toBigNumber),\n oraclePrices: mapValues(snapshot.oracle_prices, (value) =>\n removeDecimals(value),\n ),\n };\n}\n\nexport function mapIndexerNlpSnapshot(\n snapshot: IndexerServerNlpSnapshot,\n): IndexerNlpSnapshot {\n return {\n submissionIndex: snapshot.submission_idx,\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeBurnAmountQuote: toBigNumber(snapshot.cumulative_burn_quote),\n cumulativeMintAmountQuote: toBigNumber(snapshot.cumulative_mint_quote),\n cumulativePnl: toBigNumber(snapshot.cumulative_pnl),\n cumulativeTrades: toBigNumber(snapshot.cumulative_trades),\n cumulativeVolume: toBigNumber(snapshot.cumulative_volume),\n depositors: toBigNumber(snapshot.depositors),\n oraclePrice: removeDecimals(snapshot.oracle_price_x18),\n tvl: toBigNumber(snapshot.tvl),\n };\n}\n\nexport function mapIndexerV2Ticker(\n ticker: IndexerServerV2TickerResponse,\n): IndexerV2TickerResponse {\n return {\n productId: ticker.product_id,\n tickerId: ticker.ticker_id,\n baseCurrency: ticker.base_currency,\n quoteCurrency: ticker.quote_currency,\n lastPrice: ticker.last_price,\n baseVolume: ticker.base_volume,\n quoteVolume: ticker.quote_volume,\n priceChangePercent24h: ticker.price_change_percent_24h,\n };\n}\n\nexport function mapIndexerV2MarketHours(\n hours: IndexerServerV2MarketHours,\n): IndexerV2MarketHours {\n return {\n isOpen: hours.is_open,\n reason: hours.reason,\n nextClose: hours.next_close,\n nextOpen: hours.next_open,\n };\n}\n\nexport function mapIndexerV2Symbols(\n symbol: IndexerServerV2Symbol,\n): IndexerV2Symbol {\n return {\n type: symbol.type,\n productId: symbol.product_id,\n symbol: symbol.symbol,\n priceIncrement: removeDecimals(symbol.price_increment_x18),\n sizeIncrement: symbol.size_increment,\n minSize: symbol.min_size,\n makerFeeRate: removeDecimals(symbol.maker_fee_rate_x18),\n takerFeeRate: removeDecimals(symbol.taker_fee_rate_x18),\n longWeightInitial: removeDecimals(symbol.long_weight_initial_x18),\n longWeightMaintenance: removeDecimals(symbol.long_weight_maintenance_x18),\n maxOpenInterest: symbol.max_open_interest_x18\n ? removeDecimals(symbol.max_open_interest_x18)\n : null,\n exchangeRate: symbol.exchange_rate_x18\n ? removeDecimals(symbol.exchange_rate_x18)\n : null,\n tradingStatus: symbol.trading_status as IndexerV2TradingStatus,\n isolatedOnly: symbol.isolated_only,\n marketHours: symbol.market_hours\n ? mapIndexerV2MarketHours(symbol.market_hours)\n : null,\n boostType: symbol.boost_type ?? null,\n takerMultiplier: symbol.taker_multiplier ?? null,\n makerMultiplier: symbol.maker_multiplier ?? null,\n };\n}\n"],"mappings":";;;AA+DA,SAAgB,mCACd,QACgC;CAChC,OAAO;EACL,OAAO,OAAO;EACd,UAAU,OAAO,mBACb,gBAAgB,OAAO,gBAAgB,IACvC,KAAA;EACJ,aAAa,OAAO;CACtB;AACF;AAEA,SAAgB,wBAAwB,SAAuC;CAC7E,IAAI,UAAU,SACZ,OAAO,2BAA2B,QAAQ,IAAI;CAEhD,OAAO,2BAA2B,QAAQ,IAAI;AAChD;AAEA,SAAgB,wBACd,SACyC;CACzC,IAAI,UAAU,SACZ,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;CAC1B;CAEF,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;EACxB,eAAe,YAAY,QAAQ,KAAK,QAAQ,eAAe;CACjE;AACF;A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EACJ,WAAW,OAAO,cAAc;EAChC,iBAAiB,OAAO,oBAAoB;EAC5C,iBAAiB,OAAO,oBAAoB;CAC9C;AACF"}
1
+ {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n mapEngineServerPerpProduct,\n mapEngineServerSpotProduct,\n} from '@nadohq/engine-client';\nimport {\n getRecvTimeFromOrderNonce,\n mapValues,\n Market,\n PerpMarket,\n ProductEngineType,\n removeDecimals,\n SpotMarket,\n subaccountFromHex,\n toBigNumber,\n toIntegerString,\n unpackOrderAppendix,\n} from '@nadohq/shared';\nimport {\n Candlestick,\n GetIndexerPortfolioResponse,\n IndexerEvent,\n IndexerEventWithTx,\n IndexerFundingRate,\n IndexerFundingRateHistoryEntry,\n IndexerLeaderboardContest,\n IndexerLeaderboardParticipant,\n IndexerLeaderboardRegistration,\n IndexerMaker,\n IndexerMarketSnapshot,\n IndexerMatchEventBalances,\n IndexerNlpSnapshot,\n IndexerOrder,\n IndexerPerpBalance,\n IndexerPerpPrices,\n IndexerPortfolioPoint,\n IndexerProductPayment,\n IndexerServerBalance,\n IndexerServerCandlestick,\n IndexerServerEvent,\n IndexerServerFundingRate,\n IndexerServerFundingRateHistoryEntry,\n IndexerServerLeaderboardContest,\n IndexerServerLeaderboardPosition,\n IndexerServerLeaderboardRegistration,\n IndexerServerMaker,\n IndexerServerMarketSnapshot,\n IndexerServerMatchEventBalances,\n IndexerServerNlpSnapshot,\n IndexerServerOrder,\n IndexerServerPerpPrices,\n IndexerServerPortfolioPoint,\n IndexerServerPortfolioResponse,\n IndexerServerProduct,\n IndexerServerProductPayment,\n IndexerServerSnapshotsInterval,\n IndexerServerTx,\n IndexerServerV2MarketHours,\n IndexerServerV2Symbol,\n IndexerServerV2TickerResponse,\n IndexerSnapshotsIntervalParams,\n IndexerSpotBalance,\n IndexerV2MarketHours,\n IndexerV2Symbol,\n IndexerV2TickerResponse,\n IndexerV2TradingStatus,\n} from './types';\n\nexport function mapSnapshotsIntervalToServerParams(\n params: IndexerSnapshotsIntervalParams,\n): IndexerServerSnapshotsInterval {\n return {\n count: params.limit,\n max_time: params.maxTimeInclusive\n ? toIntegerString(params.maxTimeInclusive)\n : undefined,\n granularity: params.granularity,\n };\n}\n\nexport function mapIndexerServerProduct(product: IndexerServerProduct): Market {\n if ('spot' in product) {\n return mapEngineServerSpotProduct(product.spot);\n }\n return mapEngineServerPerpProduct(product.perp);\n}\n\nexport function mapIndexerServerBalance(\n balance: IndexerServerBalance,\n): IndexerSpotBalance | IndexerPerpBalance {\n if ('spot' in balance) {\n return {\n amount: toBigNumber(balance.spot.balance.amount),\n productId: balance.spot.product_id,\n type: ProductEngineType.SPOT,\n };\n }\n return {\n amount: toBigNumber(balance.perp.balance.amount),\n productId: balance.perp.product_id,\n type: ProductEngineType.PERP,\n vQuoteBalance: toBigNumber(balance.perp.balance.v_quote_balance),\n };\n}\n\nexport function mapIndexerOrder(order: IndexerServerOrder): IndexerOrder {\n const appendix = unpackOrderAppendix(order.appendix);\n return {\n amount: toBigNumber(order.amount),\n digest: order.digest,\n expiration: Number(order.expiration),\n appendix,\n nonce: toBigNumber(order.nonce),\n isolated: order.isolated,\n recvTimeSeconds: getRecvTimeFromOrderNonce(order.nonce) / 1000,\n price: removeDecimals(order.price_x18),\n productId: order.product_id,\n subaccount: order.subaccount,\n submissionIndex: order.submission_idx,\n lastFillSubmissionIndex: order.last_fill_submission_idx,\n baseFilled: toBigNumber(order.base_filled),\n quoteFilled: toBigNumber(order.quote_filled),\n totalFee: toBigNumber(order.fee),\n builderFee: toBigNumber(order.builder_fee),\n realizedPnl: toBigNumber(order.realized_pnl),\n closedAmount: toBigNumber(order.closed_amount),\n closedNetEntry: toBigNumber(order.closed_net_entry),\n preCloseMargin: order.closed_margin\n ? toBigNumber(order.closed_margin)\n : null,\n firstFillTimestamp: toBigNumber(order.first_fill_timestamp),\n lastFillTimestamp: toBigNumber(order.last_fill_timestamp),\n preBalances: mapIndexerMatchEventBalances(order.pre_balance),\n postBalances: mapIndexerMatchEventBalances(order.post_balance),\n };\n}\n\nexport function mapIndexerEvent(event: IndexerServerEvent): IndexerEvent {\n const eventState: IndexerEvent['state'] = (() => {\n // Assume backend data is consistent\n if ('spot' in event.pre_balance) {\n return {\n type: ProductEngineType.SPOT,\n market: mapIndexerServerProduct(event.product) as SpotMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerSpotBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerSpotBalance,\n };\n }\n return {\n type: ProductEngineType.PERP,\n market: mapIndexerServerProduct(event.product) as PerpMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerPerpBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerPerpBalance,\n };\n })();\n\n return {\n eventType: event.event_type,\n productId: event.product_id,\n isolated: event.isolated,\n isolatedProductId: event.isolated_product_id,\n state: eventState,\n subaccount: event.subaccount,\n submissionIndex: event.submission_idx,\n trackedVars: {\n netEntryCumulative: toBigNumber(event.net_entry_cumulative),\n netEntryUnrealized: toBigNumber(event.net_entry_unrealized),\n netFundingCumulative: toBigNumber(event.net_funding_cumulative),\n netFundingUnrealized: toBigNumber(event.net_funding_unrealized),\n netInterestCumulative: toBigNumber(event.net_interest_cumulative),\n netInterestUnrealized: toBigNumber(event.net_interest_unrealized),\n quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),\n },\n };\n}\n\nexport function mapIndexerEventWithTx(\n event: IndexerServerEvent,\n tx: IndexerServerTx,\n): IndexerEventWithTx {\n return {\n timestamp: toBigNumber(tx.timestamp),\n tx: tx.tx,\n ...mapIndexerEvent(event),\n };\n}\n\nexport function mapIndexerMatchEventBalances(\n eventBalances: IndexerServerMatchEventBalances,\n): IndexerMatchEventBalances {\n return {\n base: mapIndexerServerBalance(eventBalances.base),\n quote: eventBalances.quote\n ? (mapIndexerServerBalance(eventBalances.quote) as IndexerSpotBalance)\n : undefined,\n };\n}\n\nexport function mapIndexerProductPayment(\n payment: IndexerServerProductPayment,\n): IndexerProductPayment {\n return {\n submissionIndex: payment.idx,\n timestamp: toBigNumber(payment.timestamp),\n paymentAmount: toBigNumber(payment.amount),\n balanceAmount: toBigNumber(payment.balance_amount),\n annualPaymentRate: removeDecimals(payment.rate_x18),\n oraclePrice: removeDecimals(payment.oracle_price_x18),\n isolated: payment.isolated,\n productId: payment.product_id,\n isolatedProductId: payment.isolated_product_id,\n };\n}\n\nexport function mapIndexerPerpPrices(\n perpPrices: IndexerServerPerpPrices,\n): IndexerPerpPrices {\n return {\n indexPrice: removeDecimals(perpPrices.index_price_x18),\n markPrice: removeDecimals(perpPrices.mark_price_x18),\n updateTime: toBigNumber(perpPrices.update_time),\n productId: perpPrices.product_id,\n };\n}\n\nexport function mapIndexerFundingRate(\n fundingRate: IndexerServerFundingRate,\n): IndexerFundingRate {\n return {\n fundingRate: removeDecimals(fundingRate.funding_rate_x18),\n updateTime: toBigNumber(fundingRate.update_time),\n productId: fundingRate.product_id,\n };\n}\n\nexport function mapIndexerFundingRateHistory(\n entry: IndexerServerFundingRateHistoryEntry,\n): IndexerFundingRateHistoryEntry {\n return {\n productId: entry.product_id,\n timestamp: toBigNumber(entry.timestamp),\n fundingRateFrac: removeDecimals(entry.funding_rate_x18),\n };\n}\n\nfunction mapIndexerPortfolioPoint([\n timestamp,\n value,\n]: IndexerServerPortfolioPoint): IndexerPortfolioPoint {\n return {\n timestamp: toBigNumber(timestamp),\n value: toBigNumber(value),\n };\n}\n\nexport function mapIndexerPortfolio(\n response: IndexerServerPortfolioResponse,\n): GetIndexerPortfolioResponse {\n return Object.fromEntries(\n response.map(([period, history]) => [\n period,\n {\n accountValueHistory: history.accountValueHistory.map(\n mapIndexerPortfolioPoint,\n ),\n pnlHistory: history.pnlHistory.map(mapIndexerPortfolioPoint),\n volume: toBigNumber(history.vlm),\n },\n ]),\n ) as GetIndexerPortfolioResponse;\n}\n\nexport function mapIndexerMakerStatistics(\n maker: IndexerServerMaker,\n): IndexerMaker {\n return {\n address: maker.address,\n snapshots: maker.data.map((makerData) => {\n return {\n timestamp: toBigNumber(makerData.timestamp),\n makerFee: toBigNumber(makerData.maker_fee),\n uptime: toBigNumber(makerData.uptime),\n sumQMin: toBigNumber(makerData.sum_q_min),\n qScore: toBigNumber(makerData.q_score),\n makerShare: toBigNumber(makerData.maker_share),\n expectedMakerReward: toBigNumber(makerData.expected_maker_reward),\n };\n }),\n };\n}\n\nexport function mapIndexerLeaderboardPosition(\n position: IndexerServerLeaderboardPosition,\n): IndexerLeaderboardParticipant {\n const tracks = mapValues(position.tracks, (trackData) => ({\n value: toBigNumber(trackData.value),\n rank: toBigNumber(trackData.rank),\n qualificationStatus: trackData.qualification_status,\n }));\n\n return {\n subaccount: subaccountFromHex(position.subaccount),\n contestId: position.contest_id,\n accountValue: toBigNumber(position.account_value),\n updateTime: toBigNumber(position.update_time),\n tracks,\n socialAccounts: position.social_accounts.map((account) => ({\n provider: account.provider,\n username: account.username,\n displayName: account.display_name,\n profileImageUrl: account.profile_image_url,\n })),\n };\n}\n\nexport function mapIndexerLeaderboardRegistration(\n registration: IndexerServerLeaderboardRegistration,\n): IndexerLeaderboardRegistration {\n return {\n subaccount: subaccountFromHex(registration.subaccount),\n contestId: registration.contest_id,\n updateTime: toBigNumber(registration.update_time),\n };\n}\n\nexport function mapIndexerLeaderboardContest(\n contest: IndexerServerLeaderboardContest,\n): IndexerLeaderboardContest {\n const startTime = toBigNumber(contest.start_time);\n const endTime = toBigNumber(contest.end_time);\n\n return {\n contestId: contest.contest_id,\n startTime,\n endTime,\n totalParticipants: toBigNumber(contest.count),\n requiredProductIds: contest.product_ids,\n active: contest.active,\n lastUpdated: toBigNumber(contest.last_updated),\n title: contest.title,\n description: contest.description,\n tracks: contest.tracks.map((track) => ({\n trackId: track.track_id,\n rankType: track.rank_type,\n sortOrder: track.sort_order,\n accountValueThreshold: toBigNumber(track.threshold),\n volumeThreshold: toBigNumber(track.volume_threshold),\n })),\n };\n}\n\nexport function mapIndexerCandlesticks(\n candlestick: IndexerServerCandlestick,\n): Candlestick {\n return {\n close: removeDecimals(candlestick.close_x18),\n high: removeDecimals(candlestick.high_x18),\n low: removeDecimals(candlestick.low_x18),\n open: removeDecimals(candlestick.open_x18),\n time: toBigNumber(candlestick.timestamp),\n volume: toBigNumber(candlestick.volume),\n };\n}\n\nexport function mapIndexerMarketSnapshot(\n snapshot: IndexerServerMarketSnapshot,\n): IndexerMarketSnapshot {\n return {\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeUsers: toBigNumber(snapshot.cumulative_users),\n dailyActiveUsers: toBigNumber(snapshot.daily_active_users),\n tvl: toBigNumber(snapshot.tvl),\n borrowRates: mapValues(snapshot.borrow_rates, (value) =>\n removeDecimals(value),\n ),\n cumulativeLiquidationAmounts: mapValues(\n snapshot.cumulative_liquidation_amounts,\n toBigNumber,\n ),\n cumulativeMakerFees: mapValues(snapshot.cumulative_maker_fees, toBigNumber),\n cumulativeSequencerFees: mapValues(\n snapshot.cumulative_sequencer_fees,\n toBigNumber,\n ),\n cumulativeTakerFees: mapValues(snapshot.cumulative_taker_fees, toBigNumber),\n cumulativeTrades: mapValues(snapshot.cumulative_trades, toBigNumber),\n cumulativeVolumes: mapValues(snapshot.cumulative_volumes, toBigNumber),\n depositRates: mapValues(snapshot.deposit_rates, (value) =>\n removeDecimals(value),\n ),\n fundingRates: mapValues(snapshot.funding_rates, (value) =>\n removeDecimals(value),\n ),\n openInterestsQuote: mapValues(snapshot.open_interests, toBigNumber),\n totalBorrows: mapValues(snapshot.total_borrows, toBigNumber),\n totalDeposits: mapValues(snapshot.total_deposits, toBigNumber),\n cumulativeTradeSizes: mapValues(\n snapshot.cumulative_trade_sizes,\n toBigNumber,\n ),\n cumulativeInflows: mapValues(snapshot.cumulative_inflows, toBigNumber),\n cumulativeOutflows: mapValues(snapshot.cumulative_outflows, toBigNumber),\n oraclePrices: mapValues(snapshot.oracle_prices, (value) =>\n removeDecimals(value),\n ),\n };\n}\n\nexport function mapIndexerNlpSnapshot(\n snapshot: IndexerServerNlpSnapshot,\n): IndexerNlpSnapshot {\n return {\n submissionIndex: snapshot.submission_idx,\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeBurnAmountQuote: toBigNumber(snapshot.cumulative_burn_quote),\n cumulativeMintAmountQuote: toBigNumber(snapshot.cumulative_mint_quote),\n cumulativePnl: toBigNumber(snapshot.cumulative_pnl),\n cumulativeTrades: toBigNumber(snapshot.cumulative_trades),\n cumulativeVolume: toBigNumber(snapshot.cumulative_volume),\n depositors: toBigNumber(snapshot.depositors),\n oraclePrice: removeDecimals(snapshot.oracle_price_x18),\n tvl: toBigNumber(snapshot.tvl),\n };\n}\n\nexport function mapIndexerV2Ticker(\n ticker: IndexerServerV2TickerResponse,\n): IndexerV2TickerResponse {\n return {\n productId: ticker.product_id,\n tickerId: ticker.ticker_id,\n baseCurrency: ticker.base_currency,\n quoteCurrency: ticker.quote_currency,\n lastPrice: ticker.last_price,\n baseVolume: ticker.base_volume,\n quoteVolume: ticker.quote_volume,\n priceChangePercent24h: ticker.price_change_percent_24h,\n };\n}\n\nexport function mapIndexerV2MarketHours(\n hours: IndexerServerV2MarketHours,\n): IndexerV2MarketHours {\n return {\n isOpen: hours.is_open,\n reason: hours.reason,\n nextClose: hours.next_close,\n nextOpen: hours.next_open,\n };\n}\n\nexport function mapIndexerV2Symbols(\n symbol: IndexerServerV2Symbol,\n): IndexerV2Symbol {\n return {\n type: symbol.type,\n productId: symbol.product_id,\n symbol: symbol.symbol,\n priceIncrement: removeDecimals(symbol.price_increment_x18),\n sizeIncrement: symbol.size_increment,\n minSize: symbol.min_size,\n makerFeeRate: removeDecimals(symbol.maker_fee_rate_x18),\n takerFeeRate: removeDecimals(symbol.taker_fee_rate_x18),\n longWeightInitial: removeDecimals(symbol.long_weight_initial_x18),\n longWeightMaintenance: removeDecimals(symbol.long_weight_maintenance_x18),\n maxOpenInterest: symbol.max_open_interest_x18\n ? removeDecimals(symbol.max_open_interest_x18)\n : null,\n exchangeRate: symbol.exchange_rate_x18\n ? removeDecimals(symbol.exchange_rate_x18)\n : null,\n tradingStatus: symbol.trading_status as IndexerV2TradingStatus,\n isolatedOnly: symbol.isolated_only,\n marketHours: symbol.market_hours\n ? mapIndexerV2MarketHours(symbol.market_hours)\n : null,\n boostType: symbol.boost_type ?? null,\n takerMultiplier: symbol.taker_multiplier ?? null,\n makerMultiplier: symbol.maker_multiplier ?? null,\n };\n}\n"],"mappings":";;;AAmEA,SAAgB,mCACd,QACgC;CAChC,OAAO;EACL,OAAO,OAAO;EACd,UAAU,OAAO,mBACb,gBAAgB,OAAO,gBAAgB,IACvC,KAAA;EACJ,aAAa,OAAO;CACtB;AACF;AAEA,SAAgB,wBAAwB,SAAuC;CAC7E,IAAI,UAAU,SACZ,OAAO,2BAA2B,QAAQ,IAAI;CAEhD,OAAO,2BAA2B,QAAQ,IAAI;AAChD;AAEA,SAAgB,wBACd,SACyC;CACzC,IAAI,UAAU,SACZ,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;CAC1B;CAEF,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;EACxB,eAAe,YAAY,QAAQ,KAAK,QAAQ,eAAe;CACjE;AACF;AAEA,SAAgB,gBAAgB,OAAyC;CACvE,MAAM,WAAW,oBAAoB,MAAM,QAAQ;CACnD,OAAO;EACL,QAAQ,YAAY,MAAM,MAAM;EAChC,QAAQ,MAAM;EACd,YAAY,OAAO,MAAM,UAAU;EACnC;EACA,OAAO,YAAY,MAAM,KAAK;EAC9B,UAAU,MAAM;EAChB,iBAAiB,0BAA0B,MAAM,KAAK,IAAI;EAC1D,OAAO,eAAe,MAAM,SAAS;EACrC,WAAW,MAAM;EACjB,YAAY,MAAM;EAClB,iBAA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AAY,IAC3C;EACJ,WAAW,OAAO,cAAc;EAChC,iBAAiB,OAAO,oBAAoB;EAC5C,iBAAiB,OAAO,oBAAoB;CAC9C;AACF"}
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_IndexerBaseClient = require("./IndexerBaseClient-BesuTUAd.cjs");
2
+ const require_IndexerBaseClient = require("./IndexerBaseClient-B7cApziU.cjs");
3
3
  const require_types_CandlestickPeriod = require("./types/CandlestickPeriod.cjs");
4
4
  const require_types_indexerErrorCodes = require("./types/indexerErrorCodes.cjs");
5
5
  const require_types_IndexerServerFailureError = require("./types/IndexerServerFailureError.cjs");
package/dist/index.d.cts CHANGED
@@ -3,14 +3,14 @@ import { t as IndexerEventType } from "./IndexerEventType-9GB2zRoN.cjs";
3
3
  import { t as IndexerLeaderboardRankType } from "./IndexerLeaderboardType-Ck12QVWR.cjs";
4
4
  import { a as NadoTransferQuoteTx, c as NadoWithdrawCollateralV2Tx, i as NadoMatchOrdersTx, n as NadoLiquidateSubaccountTx, o as NadoTx, r as NadoMatchOrdersRfqTx, s as NadoWithdrawCollateralTx, t as NadoDepositCollateralTx } from "./NadoTx-C3_f0YvI.cjs";
5
5
  import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-sQOL10Bi.cjs";
6
- import { $ as IndexerServerMatchEventsResponse, A as IndexerServerFundingRatesResponse, At as IndexerServerSocialAccountsResponse, B as IndexerServerLeaderboardRegistrationsParams, Bt as IndexerServerXPointsEpoch, C as IndexerServerFundingRate, Ct as IndexerServerQueryRequestType, D as IndexerServerFundingRateParams, Dt as IndexerServerReferralCodeResponse, E as IndexerServerFundingRateHistoryResponse, Et as IndexerServerReferralCodeParams, F as IndexerServerLeaderboardParams, Ft as IndexerServerV2Symbol, G as IndexerServerListSocialAccountsParams, H as IndexerServerLeaderboardResponse, Ht as IndexerServerXPointsQuest, I as IndexerServerLeaderboardRankParams, It as IndexerServerV2SymbolsResponse, J as IndexerServerMakerStatisticsParams, K as IndexerServerListSubaccountsParams, L as IndexerServerLeaderboardRankResponse, Lt as IndexerServerV2TickerResponse, M as IndexerServerInterestFundingResponse, Mt as IndexerServerSocialConnectResponse, N as IndexerServerLeaderboardContestsParams, Nt as IndexerServerTriggerTypeFilter, O as IndexerServerFundingRateResponse, Ot as IndexerServerRequestType, P as IndexerServerLeaderboardContestsResponse, Pt as IndexerServerV2MarketHours, Q as IndexerServerMatchEventsParams, R as IndexerServerLeaderboardRegisterParams, Rt as IndexerServerV2TickersResponse, S as IndexerServerFastWithdrawalSignatureResponse, St as IndexerServerQueryRequestByType, T as IndexerServerFundingRateHistoryParams, Tt as IndexerServerQuotePriceResponse, U as IndexerServerLinkedSignerParams, Ut as IndexerServerXPointsResponse, V as IndexerServerLeaderboardRegistrationsResponse, Vt as IndexerServerXPointsParams, W as IndexerServerLinkedSignerResponse, Wt as isIndexerServerFailureResponse, X as IndexerServerMarketSnapshotsParams, Y as IndexerServerMakerStatisticsResponse, Z as IndexerServerMarketSnapshotsResponse, _ as IndexerServerDDAResponse, _t as IndexerServerPriceResponse, a as IndexerServerAllTimePoints, at as IndexerServerNlpSnapshotsResponse, b as IndexerServerFailureResponse, bt as IndexerServerProductsParams, c as IndexerServerCandlesticksResponse, ct as IndexerServerOrdersParams, d as IndexerServerCashIncentivesEventPlatform, dt as IndexerServerPerpPricesParams, et as IndexerServerMultiProductsParams, f as IndexerServerCashIncentivesEventWallet, ft as IndexerServerPerpPricesResponse, g as IndexerServerDDAQueryParams, gt as IndexerServerPriceParams, h as IndexerServerCashIncentivesWalletSummary, ht as IndexerServerPointsResponse, i as IndexerEdgeServerMarketSnapshotsResponse, it as IndexerServerNlpSnapshotsParams, j as IndexerServerInterestFundingParams, jt as IndexerServerSocialConnectParams, k as IndexerServerFundingRatesParams, kt as IndexerServerRevokeSocialAccountParams, l as IndexerServerCashIncentivesEvent, lt as IndexerServerOrdersResponse, m as IndexerServerCashIncentivesResponse, mt as IndexerServerPointsParams, n as IndexerEdgeServerCandlesticksResponse, nt as IndexerServerMultiSubaccountSnapshotsParams, o as IndexerServerBacklogResponse, ot as IndexerServerOraclePricesParams, p as IndexerServerCashIncentivesParams, pt as IndexerServerPointsEpoch, q as IndexerServerListSubaccountsResponse, r as IndexerEdgeServerMarketSnapshotsParams, rt as IndexerServerMultiSubaccountSnapshotsResponse, s as IndexerServerCandlesticksParams, st as IndexerServerOraclePricesResponse, t as IndexerEdgeServerCandlesticksParams, tt as IndexerServerMultiProductsResponse, u as IndexerServerCashIncentivesEventMetadata, ut as IndexerServerPerpPrices, v as IndexerServerEventsParams, vt as IndexerServerPrivateAlphaChoiceParams, w as IndexerServerFundingRateHistoryEntry, wt as IndexerServerQueryResponseByType, x as IndexerServerFastWithdrawalSignatureParams, xt as IndexerServerProductsResponse, y as IndexerServerEventsResponse, yt as IndexerServerPrivateAlphaChoiceResponse, z as IndexerServerLeaderboardRegisterResponse, zt as IndexerServerXPointsAllTime } from "./serverTypes-E311idZv.cjs";
7
- import { $ as GetIndexerOrdersResponse, $t as IndexerSocialAccountInfo, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerEventWithTx, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerMarketSnapshot, C as GetIndexerInterestFundingPaymentsResponse, Ct as IndexerCashIncentivesEventPlatform, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerEventBalanceStateSnapshot, E as GetIndexerLeaderboardParams, Et as IndexerEvent, F as GetIndexerMakerStatisticsResponse, Ft as IndexerLeaderboardParticipant, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerOrder, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerMatchEventBalances, I as GetIndexerMarketSnapshotsParams, It as IndexerLeaderboardRegistration, J as GetIndexerNlpSnapshotsParams, Jt as IndexerPointsEpoch, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerPerpBalance, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerLeaderboardTrackPosition, M as GetIndexerLinkedSignerParams, Mt as IndexerFundingRateHistoryEntry, N as GetIndexerLinkedSignerResponse, Nt as IndexerLeaderboardContest, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerEventPerpStateSnapshot, P as GetIndexerMakerStatisticsParams, Pt as IndexerLeaderboardContestTrack, Q as GetIndexerOrdersParams, Qt as IndexerSnapshotsIntervalParams, R as GetIndexerMatchEventsParams, Rt as IndexerMaker, S as GetIndexerInterestFundingPaymentsParams, St as IndexerCashIncentivesEventMetadata, T as GetIndexerLeaderboardContestsResponse, Tt as IndexerCashIncentivesWalletSummary, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerNlpSnapshot, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerMatchEvent, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerOraclePrice, X as GetIndexerOraclePricesParams, Xt as IndexerProductSnapshot, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerProductPayment, Z as GetIndexerOraclePricesResponse, Zt as IndexerSnapshotBalance, _ as GetIndexerFastWithdrawalSignatureResponse, _n as TickerMarketType, _t as GetIndexerXPointsParams, a as GetIndexerCandlesticksParams, an as IndexerV2TradingStatus, at as GetIndexerPrivateAlphaChoiceResponse, b as GetIndexerFundingRateParams, bt as IndexerBalanceTrackedVars, c as GetIndexerCashIncentivesResponse, cn as IndexerXPointsQuest, ct as GetIndexerQuotePriceResponse, d as GetIndexerEdgeMarketSnapshotResponse, dn as ListIndexerSubaccountsParams, dt as GetIndexerSubaccountDDAParams, en as IndexerSpotBalance, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as ListIndexerSubaccountsResponse, ft as GetIndexerSubaccountDDAResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as RevokeSocialAccountResponse, gt as GetIndexerV2TickersResponse, h as GetIndexerEventsResponse, hn as RevokeSocialAccountParams, ht as GetIndexerV2TickersParams, i as GetIndexerBacklogResponse, in as IndexerV2TickerResponse, it as GetIndexerPrivateAlphaChoiceParams, j as GetIndexerLeaderboardResponse, jt as IndexerFundingRate, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerEventSpotStateSnapshot, l as GetIndexerEdgeCandlesticksParams, ln as ListIndexerSocialAccountsParams, lt as GetIndexerReferralCodeParams, m as GetIndexerEventsParams, mn as RegisterLeaderboardResponse, mt as GetIndexerV2SymbolsResponse, n as ConnectSocialAccountParams, nn as IndexerV2MarketHours, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerXPointsAllTime, ot as GetIndexerProductSnapshotsParams, p as GetIndexerEventsLimitType, pn as RegisterLeaderboardParams, pt as GetIndexerV2SymbolsParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerPerpPrices, r as ConnectSocialAccountResponse, rn as IndexerV2Symbol, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerXPointsEpoch, st as GetIndexerProductSnapshotsResponse, t as Candlestick, tn as IndexerSubaccountSnapshot, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as ListIndexerSocialAccountsResponse, ut as GetIndexerReferralCodeResponse, v as GetIndexerFundingRateHistoryParams, vt as GetIndexerXPointsResponse, w as GetIndexerLeaderboardContestsParams, wt as IndexerCashIncentivesEventWallet, x as GetIndexerFundingRateResponse, xt as IndexerCashIncentivesEvent, y as GetIndexerFundingRateHistoryResponse, yt as IndexerAllTimePoints, z as GetIndexerMatchEventsResponse, zt as IndexerMakerSnapshot } from "./clientTypes-C6gfQzsU.cjs";
6
+ import { $ as IndexerServerMatchEventsResponse, A as IndexerServerFundingRatesResponse, At as IndexerServerQuotePriceResponse, B as IndexerServerLeaderboardRegistrationsParams, Bt as IndexerServerV2Symbol, C as IndexerServerFundingRate, Ct as IndexerServerPrivateAlphaChoiceParams, D as IndexerServerFundingRateParams, Dt as IndexerServerQueryRequestByType, E as IndexerServerFundingRateHistoryResponse, Et as IndexerServerProductsResponse, F as IndexerServerLeaderboardParams, Ft as IndexerServerSocialAccountsResponse, G as IndexerServerListSocialAccountsParams, Gt as IndexerServerXPointsEpoch, H as IndexerServerLeaderboardResponse, Ht as IndexerServerV2TickerResponse, I as IndexerServerLeaderboardRankParams, It as IndexerServerSocialConnectParams, J as IndexerServerMakerStatisticsParams, Jt as IndexerServerXPointsResponse, K as IndexerServerListSubaccountsParams, Kt as IndexerServerXPointsParams, L as IndexerServerLeaderboardRankResponse, Lt as IndexerServerSocialConnectResponse, M as IndexerServerInterestFundingResponse, Mt as IndexerServerReferralCodeResponse, N as IndexerServerLeaderboardContestsParams, Nt as IndexerServerRequestType, O as IndexerServerFundingRateResponse, Ot as IndexerServerQueryRequestType, P as IndexerServerLeaderboardContestsResponse, Pt as IndexerServerRevokeSocialAccountParams, Q as IndexerServerMatchEventsParams, R as IndexerServerLeaderboardRegisterParams, Rt as IndexerServerTriggerTypeFilter, S as IndexerServerFastWithdrawalSignatureResponse, St as IndexerServerPriceResponse, T as IndexerServerFundingRateHistoryParams, Tt as IndexerServerProductsParams, U as IndexerServerLinkedSignerParams, Ut as IndexerServerV2TickersResponse, V as IndexerServerLeaderboardRegistrationsResponse, Vt as IndexerServerV2SymbolsResponse, W as IndexerServerLinkedSignerResponse, Wt as IndexerServerXPointsAllTime, X as IndexerServerMarketSnapshotsParams, Y as IndexerServerMakerStatisticsResponse, Yt as isIndexerServerFailureResponse, Z as IndexerServerMarketSnapshotsResponse, _ as IndexerServerDDAResponse, _t as IndexerServerPortfolioParams, a as IndexerServerAllTimePoints, at as IndexerServerNlpSnapshotsResponse, b as IndexerServerFailureResponse, bt as IndexerServerPortfolioResponse, c as IndexerServerCandlesticksResponse, ct as IndexerServerOrdersParams, d as IndexerServerCashIncentivesEventPlatform, dt as IndexerServerPerpPricesParams, et as IndexerServerMultiProductsParams, f as IndexerServerCashIncentivesEventWallet, ft as IndexerServerPerpPricesResponse, g as IndexerServerDDAQueryParams, gt as IndexerServerPortfolioHistory, h as IndexerServerCashIncentivesWalletSummary, ht as IndexerServerPointsResponse, i as IndexerEdgeServerMarketSnapshotsResponse, it as IndexerServerNlpSnapshotsParams, j as IndexerServerInterestFundingParams, jt as IndexerServerReferralCodeParams, k as IndexerServerFundingRatesParams, kt as IndexerServerQueryResponseByType, l as IndexerServerCashIncentivesEvent, lt as IndexerServerOrdersResponse, m as IndexerServerCashIncentivesResponse, mt as IndexerServerPointsParams, n as IndexerEdgeServerCandlesticksResponse, nt as IndexerServerMultiSubaccountSnapshotsParams, o as IndexerServerBacklogResponse, ot as IndexerServerOraclePricesParams, p as IndexerServerCashIncentivesParams, pt as IndexerServerPointsEpoch, q as IndexerServerListSubaccountsResponse, qt as IndexerServerXPointsQuest, r as IndexerEdgeServerMarketSnapshotsParams, rt as IndexerServerMultiSubaccountSnapshotsResponse, s as IndexerServerCandlesticksParams, st as IndexerServerOraclePricesResponse, t as IndexerEdgeServerCandlesticksParams, tt as IndexerServerMultiProductsResponse, u as IndexerServerCashIncentivesEventMetadata, ut as IndexerServerPerpPrices, v as IndexerServerEventsParams, vt as IndexerServerPortfolioPeriod, w as IndexerServerFundingRateHistoryEntry, wt as IndexerServerPrivateAlphaChoiceResponse, x as IndexerServerFastWithdrawalSignatureParams, xt as IndexerServerPriceParams, y as IndexerServerEventsResponse, yt as IndexerServerPortfolioPoint, z as IndexerServerLeaderboardRegisterResponse, zt as IndexerServerV2MarketHours } from "./serverTypes-BNCw3_T1.cjs";
7
+ import { $ as GetIndexerOrdersResponse, $t as IndexerPortfolioPoint, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerEventPerpStateSnapshot, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerMaker, C as GetIndexerInterestFundingPaymentsResponse, Ct as IndexerCashIncentivesEvent, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerCashIncentivesWalletSummary, E as GetIndexerLeaderboardParams, Et as IndexerCashIncentivesEventWallet, F as GetIndexerMakerStatisticsResponse, Ft as IndexerLeaderboardContest, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerNlpSnapshot, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerMarketSnapshot, I as GetIndexerMarketSnapshotsParams, It as IndexerLeaderboardContestTrack, J as GetIndexerNlpSnapshotsParams, Jt as IndexerPerpBalance, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerOraclePrice, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerLeaderboardParticipant, M as GetIndexerLinkedSignerParams, Mt as IndexerEventWithTx, N as GetIndexerLinkedSignerResponse, Nt as IndexerFundingRate, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerEvent, P as GetIndexerMakerStatisticsParams, Pt as IndexerFundingRateHistoryEntry, Q as GetIndexerOrdersParams, Qt as IndexerPortfolioPeriod, R as GetIndexerMatchEventsParams, Rt as IndexerLeaderboardRegistration, S as GetIndexerInterestFundingPaymentsParams, Sn as TickerMarketType, St as IndexerBalanceTrackedVars, T as GetIndexerLeaderboardContestsResponse, Tt as IndexerCashIncentivesEventPlatform, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerMatchEvent, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerMakerSnapshot, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerMatchEventBalances, X as GetIndexerOraclePricesParams, Xt as IndexerPointsEpoch, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerPerpPrices, Z as GetIndexerOraclePricesResponse, Zt as IndexerPortfolioHistory, _ as GetIndexerFastWithdrawalSignatureResponse, _n as ListIndexerSubaccountsResponse, _t as GetIndexerV2TickersParams, a as GetIndexerCandlesticksParams, an as IndexerSpotBalance, at as GetIndexerPortfolioResponse, b as GetIndexerFundingRateParams, bn as RevokeSocialAccountParams, bt as GetIndexerXPointsResponse, c as GetIndexerCashIncentivesResponse, cn as IndexerV2Symbol, ct as GetIndexerProductSnapshotsParams, d as GetIndexerEdgeMarketSnapshotResponse, dn as IndexerXPointsAllTime, dt as GetIndexerReferralCodeParams, en as IndexerProductPayment, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as IndexerXPointsEpoch, ft as GetIndexerReferralCodeResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as ListIndexerSubaccountsParams, gt as GetIndexerV2SymbolsResponse, h as GetIndexerEventsResponse, hn as ListIndexerSocialAccountsResponse, ht as GetIndexerV2SymbolsParams, i as GetIndexerBacklogResponse, in as IndexerSocialAccountInfo, it as GetIndexerPortfolioParams, j as GetIndexerLeaderboardResponse, jt as IndexerEventSpotStateSnapshot, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerEventBalanceStateSnapshot, l as GetIndexerEdgeCandlesticksParams, ln as IndexerV2TickerResponse, lt as GetIndexerProductSnapshotsResponse, m as GetIndexerEventsParams, mn as ListIndexerSocialAccountsParams, mt as GetIndexerSubaccountDDAResponse, n as ConnectSocialAccountParams, nn as IndexerSnapshotBalance, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerSubaccountSnapshot, ot as GetIndexerPrivateAlphaChoiceParams, p as GetIndexerEventsLimitType, pn as IndexerXPointsQuest, pt as GetIndexerSubaccountDDAParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerOrder, r as ConnectSocialAccountResponse, rn as IndexerSnapshotsIntervalParams, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerV2MarketHours, st as GetIndexerPrivateAlphaChoiceResponse, t as Candlestick, tn as IndexerProductSnapshot, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as IndexerV2TradingStatus, ut as GetIndexerQuotePriceResponse, v as GetIndexerFundingRateHistoryParams, vn as RegisterLeaderboardParams, vt as GetIndexerV2TickersResponse, w as GetIndexerLeaderboardContestsParams, wt as IndexerCashIncentivesEventMetadata, x as GetIndexerFundingRateResponse, xn as RevokeSocialAccountResponse, xt as IndexerAllTimePoints, y as GetIndexerFundingRateHistoryResponse, yn as RegisterLeaderboardResponse, yt as GetIndexerXPointsParams, z as GetIndexerMatchEventsResponse, zt as IndexerLeaderboardTrackPosition } from "./clientTypes-pI3pxxup.cjs";
8
8
  import { t as CollateralEventType } from "./collateralEventType-CNrryEno.cjs";
9
9
  import { n as IndexerErrorCode, t as INDEXER_ERROR_CODES } from "./indexerErrorCodes-BK__sFOc.cjs";
10
- import { t as IndexerServerFailureError } from "./IndexerServerFailureError-qVBOC6Ru.cjs";
11
- import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-BeMZ3Cac.cjs";
10
+ import { t as IndexerServerFailureError } from "./IndexerServerFailureError-BDumqvxn.cjs";
11
+ import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-CrzCU35F.cjs";
12
12
  import { IndexerBaseClient, IndexerClientOpts } from "./IndexerBaseClient.cjs";
13
13
  import { IndexerClient } from "./IndexerClient.cjs";
14
14
  import { INDEXER_CLIENT_ENDPOINTS } from "./endpoints.cjs";
15
- import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-BBUGThDY.cjs";
16
- export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
15
+ import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-DyBxYbS1.cjs";
16
+ export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPortfolioParams, GetIndexerPortfolioResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerPortfolioHistory, IndexerPortfolioPeriod, IndexerPortfolioPoint, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPortfolioHistory, IndexerServerPortfolioParams, IndexerServerPortfolioPeriod, IndexerServerPortfolioPoint, IndexerServerPortfolioResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
package/dist/index.d.ts CHANGED
@@ -3,14 +3,14 @@ import { t as IndexerEventType } from "./IndexerEventType-Brm9aX8w.js";
3
3
  import { t as IndexerLeaderboardRankType } from "./IndexerLeaderboardType-DAKw2tfI.js";
4
4
  import { a as NadoTransferQuoteTx, c as NadoWithdrawCollateralV2Tx, i as NadoMatchOrdersTx, n as NadoLiquidateSubaccountTx, o as NadoTx, r as NadoMatchOrdersRfqTx, s as NadoWithdrawCollateralTx, t as NadoDepositCollateralTx } from "./NadoTx-Bd4U-zDu.js";
5
5
  import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-BwLIAkc1.js";
6
- import { $ as IndexerServerMatchEventsResponse, A as IndexerServerFundingRatesResponse, At as IndexerServerSocialAccountsResponse, B as IndexerServerLeaderboardRegistrationsParams, Bt as IndexerServerXPointsEpoch, C as IndexerServerFundingRate, Ct as IndexerServerQueryRequestType, D as IndexerServerFundingRateParams, Dt as IndexerServerReferralCodeResponse, E as IndexerServerFundingRateHistoryResponse, Et as IndexerServerReferralCodeParams, F as IndexerServerLeaderboardParams, Ft as IndexerServerV2Symbol, G as IndexerServerListSocialAccountsParams, H as IndexerServerLeaderboardResponse, Ht as IndexerServerXPointsQuest, I as IndexerServerLeaderboardRankParams, It as IndexerServerV2SymbolsResponse, J as IndexerServerMakerStatisticsParams, K as IndexerServerListSubaccountsParams, L as IndexerServerLeaderboardRankResponse, Lt as IndexerServerV2TickerResponse, M as IndexerServerInterestFundingResponse, Mt as IndexerServerSocialConnectResponse, N as IndexerServerLeaderboardContestsParams, Nt as IndexerServerTriggerTypeFilter, O as IndexerServerFundingRateResponse, Ot as IndexerServerRequestType, P as IndexerServerLeaderboardContestsResponse, Pt as IndexerServerV2MarketHours, Q as IndexerServerMatchEventsParams, R as IndexerServerLeaderboardRegisterParams, Rt as IndexerServerV2TickersResponse, S as IndexerServerFastWithdrawalSignatureResponse, St as IndexerServerQueryRequestByType, T as IndexerServerFundingRateHistoryParams, Tt as IndexerServerQuotePriceResponse, U as IndexerServerLinkedSignerParams, Ut as IndexerServerXPointsResponse, V as IndexerServerLeaderboardRegistrationsResponse, Vt as IndexerServerXPointsParams, W as IndexerServerLinkedSignerResponse, Wt as isIndexerServerFailureResponse, X as IndexerServerMarketSnapshotsParams, Y as IndexerServerMakerStatisticsResponse, Z as IndexerServerMarketSnapshotsResponse, _ as IndexerServerDDAResponse, _t as IndexerServerPriceResponse, a as IndexerServerAllTimePoints, at as IndexerServerNlpSnapshotsResponse, b as IndexerServerFailureResponse, bt as IndexerServerProductsParams, c as IndexerServerCandlesticksResponse, ct as IndexerServerOrdersParams, d as IndexerServerCashIncentivesEventPlatform, dt as IndexerServerPerpPricesParams, et as IndexerServerMultiProductsParams, f as IndexerServerCashIncentivesEventWallet, ft as IndexerServerPerpPricesResponse, g as IndexerServerDDAQueryParams, gt as IndexerServerPriceParams, h as IndexerServerCashIncentivesWalletSummary, ht as IndexerServerPointsResponse, i as IndexerEdgeServerMarketSnapshotsResponse, it as IndexerServerNlpSnapshotsParams, j as IndexerServerInterestFundingParams, jt as IndexerServerSocialConnectParams, k as IndexerServerFundingRatesParams, kt as IndexerServerRevokeSocialAccountParams, l as IndexerServerCashIncentivesEvent, lt as IndexerServerOrdersResponse, m as IndexerServerCashIncentivesResponse, mt as IndexerServerPointsParams, n as IndexerEdgeServerCandlesticksResponse, nt as IndexerServerMultiSubaccountSnapshotsParams, o as IndexerServerBacklogResponse, ot as IndexerServerOraclePricesParams, p as IndexerServerCashIncentivesParams, pt as IndexerServerPointsEpoch, q as IndexerServerListSubaccountsResponse, r as IndexerEdgeServerMarketSnapshotsParams, rt as IndexerServerMultiSubaccountSnapshotsResponse, s as IndexerServerCandlesticksParams, st as IndexerServerOraclePricesResponse, t as IndexerEdgeServerCandlesticksParams, tt as IndexerServerMultiProductsResponse, u as IndexerServerCashIncentivesEventMetadata, ut as IndexerServerPerpPrices, v as IndexerServerEventsParams, vt as IndexerServerPrivateAlphaChoiceParams, w as IndexerServerFundingRateHistoryEntry, wt as IndexerServerQueryResponseByType, x as IndexerServerFastWithdrawalSignatureParams, xt as IndexerServerProductsResponse, y as IndexerServerEventsResponse, yt as IndexerServerPrivateAlphaChoiceResponse, z as IndexerServerLeaderboardRegisterResponse, zt as IndexerServerXPointsAllTime } from "./serverTypes-l4ceojIp.js";
7
- import { $ as GetIndexerOrdersResponse, $t as IndexerSocialAccountInfo, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerEventWithTx, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerMarketSnapshot, C as GetIndexerInterestFundingPaymentsResponse, Ct as IndexerCashIncentivesEventPlatform, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerEventBalanceStateSnapshot, E as GetIndexerLeaderboardParams, Et as IndexerEvent, F as GetIndexerMakerStatisticsResponse, Ft as IndexerLeaderboardParticipant, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerOrder, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerMatchEventBalances, I as GetIndexerMarketSnapshotsParams, It as IndexerLeaderboardRegistration, J as GetIndexerNlpSnapshotsParams, Jt as IndexerPointsEpoch, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerPerpBalance, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerLeaderboardTrackPosition, M as GetIndexerLinkedSignerParams, Mt as IndexerFundingRateHistoryEntry, N as GetIndexerLinkedSignerResponse, Nt as IndexerLeaderboardContest, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerEventPerpStateSnapshot, P as GetIndexerMakerStatisticsParams, Pt as IndexerLeaderboardContestTrack, Q as GetIndexerOrdersParams, Qt as IndexerSnapshotsIntervalParams, R as GetIndexerMatchEventsParams, Rt as IndexerMaker, S as GetIndexerInterestFundingPaymentsParams, St as IndexerCashIncentivesEventMetadata, T as GetIndexerLeaderboardContestsResponse, Tt as IndexerCashIncentivesWalletSummary, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerNlpSnapshot, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerMatchEvent, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerOraclePrice, X as GetIndexerOraclePricesParams, Xt as IndexerProductSnapshot, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerProductPayment, Z as GetIndexerOraclePricesResponse, Zt as IndexerSnapshotBalance, _ as GetIndexerFastWithdrawalSignatureResponse, _n as TickerMarketType, _t as GetIndexerXPointsParams, a as GetIndexerCandlesticksParams, an as IndexerV2TradingStatus, at as GetIndexerPrivateAlphaChoiceResponse, b as GetIndexerFundingRateParams, bt as IndexerBalanceTrackedVars, c as GetIndexerCashIncentivesResponse, cn as IndexerXPointsQuest, ct as GetIndexerQuotePriceResponse, d as GetIndexerEdgeMarketSnapshotResponse, dn as ListIndexerSubaccountsParams, dt as GetIndexerSubaccountDDAParams, en as IndexerSpotBalance, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as ListIndexerSubaccountsResponse, ft as GetIndexerSubaccountDDAResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as RevokeSocialAccountResponse, gt as GetIndexerV2TickersResponse, h as GetIndexerEventsResponse, hn as RevokeSocialAccountParams, ht as GetIndexerV2TickersParams, i as GetIndexerBacklogResponse, in as IndexerV2TickerResponse, it as GetIndexerPrivateAlphaChoiceParams, j as GetIndexerLeaderboardResponse, jt as IndexerFundingRate, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerEventSpotStateSnapshot, l as GetIndexerEdgeCandlesticksParams, ln as ListIndexerSocialAccountsParams, lt as GetIndexerReferralCodeParams, m as GetIndexerEventsParams, mn as RegisterLeaderboardResponse, mt as GetIndexerV2SymbolsResponse, n as ConnectSocialAccountParams, nn as IndexerV2MarketHours, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerXPointsAllTime, ot as GetIndexerProductSnapshotsParams, p as GetIndexerEventsLimitType, pn as RegisterLeaderboardParams, pt as GetIndexerV2SymbolsParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerPerpPrices, r as ConnectSocialAccountResponse, rn as IndexerV2Symbol, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerXPointsEpoch, st as GetIndexerProductSnapshotsResponse, t as Candlestick, tn as IndexerSubaccountSnapshot, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as ListIndexerSocialAccountsResponse, ut as GetIndexerReferralCodeResponse, v as GetIndexerFundingRateHistoryParams, vt as GetIndexerXPointsResponse, w as GetIndexerLeaderboardContestsParams, wt as IndexerCashIncentivesEventWallet, x as GetIndexerFundingRateResponse, xt as IndexerCashIncentivesEvent, y as GetIndexerFundingRateHistoryResponse, yt as IndexerAllTimePoints, z as GetIndexerMatchEventsResponse, zt as IndexerMakerSnapshot } from "./clientTypes-Cke-KLUR.js";
6
+ import { $ as IndexerServerMatchEventsResponse, A as IndexerServerFundingRatesResponse, At as IndexerServerQuotePriceResponse, B as IndexerServerLeaderboardRegistrationsParams, Bt as IndexerServerV2Symbol, C as IndexerServerFundingRate, Ct as IndexerServerPrivateAlphaChoiceParams, D as IndexerServerFundingRateParams, Dt as IndexerServerQueryRequestByType, E as IndexerServerFundingRateHistoryResponse, Et as IndexerServerProductsResponse, F as IndexerServerLeaderboardParams, Ft as IndexerServerSocialAccountsResponse, G as IndexerServerListSocialAccountsParams, Gt as IndexerServerXPointsEpoch, H as IndexerServerLeaderboardResponse, Ht as IndexerServerV2TickerResponse, I as IndexerServerLeaderboardRankParams, It as IndexerServerSocialConnectParams, J as IndexerServerMakerStatisticsParams, Jt as IndexerServerXPointsResponse, K as IndexerServerListSubaccountsParams, Kt as IndexerServerXPointsParams, L as IndexerServerLeaderboardRankResponse, Lt as IndexerServerSocialConnectResponse, M as IndexerServerInterestFundingResponse, Mt as IndexerServerReferralCodeResponse, N as IndexerServerLeaderboardContestsParams, Nt as IndexerServerRequestType, O as IndexerServerFundingRateResponse, Ot as IndexerServerQueryRequestType, P as IndexerServerLeaderboardContestsResponse, Pt as IndexerServerRevokeSocialAccountParams, Q as IndexerServerMatchEventsParams, R as IndexerServerLeaderboardRegisterParams, Rt as IndexerServerTriggerTypeFilter, S as IndexerServerFastWithdrawalSignatureResponse, St as IndexerServerPriceResponse, T as IndexerServerFundingRateHistoryParams, Tt as IndexerServerProductsParams, U as IndexerServerLinkedSignerParams, Ut as IndexerServerV2TickersResponse, V as IndexerServerLeaderboardRegistrationsResponse, Vt as IndexerServerV2SymbolsResponse, W as IndexerServerLinkedSignerResponse, Wt as IndexerServerXPointsAllTime, X as IndexerServerMarketSnapshotsParams, Y as IndexerServerMakerStatisticsResponse, Yt as isIndexerServerFailureResponse, Z as IndexerServerMarketSnapshotsResponse, _ as IndexerServerDDAResponse, _t as IndexerServerPortfolioParams, a as IndexerServerAllTimePoints, at as IndexerServerNlpSnapshotsResponse, b as IndexerServerFailureResponse, bt as IndexerServerPortfolioResponse, c as IndexerServerCandlesticksResponse, ct as IndexerServerOrdersParams, d as IndexerServerCashIncentivesEventPlatform, dt as IndexerServerPerpPricesParams, et as IndexerServerMultiProductsParams, f as IndexerServerCashIncentivesEventWallet, ft as IndexerServerPerpPricesResponse, g as IndexerServerDDAQueryParams, gt as IndexerServerPortfolioHistory, h as IndexerServerCashIncentivesWalletSummary, ht as IndexerServerPointsResponse, i as IndexerEdgeServerMarketSnapshotsResponse, it as IndexerServerNlpSnapshotsParams, j as IndexerServerInterestFundingParams, jt as IndexerServerReferralCodeParams, k as IndexerServerFundingRatesParams, kt as IndexerServerQueryResponseByType, l as IndexerServerCashIncentivesEvent, lt as IndexerServerOrdersResponse, m as IndexerServerCashIncentivesResponse, mt as IndexerServerPointsParams, n as IndexerEdgeServerCandlesticksResponse, nt as IndexerServerMultiSubaccountSnapshotsParams, o as IndexerServerBacklogResponse, ot as IndexerServerOraclePricesParams, p as IndexerServerCashIncentivesParams, pt as IndexerServerPointsEpoch, q as IndexerServerListSubaccountsResponse, qt as IndexerServerXPointsQuest, r as IndexerEdgeServerMarketSnapshotsParams, rt as IndexerServerMultiSubaccountSnapshotsResponse, s as IndexerServerCandlesticksParams, st as IndexerServerOraclePricesResponse, t as IndexerEdgeServerCandlesticksParams, tt as IndexerServerMultiProductsResponse, u as IndexerServerCashIncentivesEventMetadata, ut as IndexerServerPerpPrices, v as IndexerServerEventsParams, vt as IndexerServerPortfolioPeriod, w as IndexerServerFundingRateHistoryEntry, wt as IndexerServerPrivateAlphaChoiceResponse, x as IndexerServerFastWithdrawalSignatureParams, xt as IndexerServerPriceParams, y as IndexerServerEventsResponse, yt as IndexerServerPortfolioPoint, z as IndexerServerLeaderboardRegisterResponse, zt as IndexerServerV2MarketHours } from "./serverTypes-DkRgWlZV.js";
7
+ import { $ as GetIndexerOrdersResponse, $t as IndexerPortfolioPoint, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerEventPerpStateSnapshot, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerMaker, C as GetIndexerInterestFundingPaymentsResponse, Ct as IndexerCashIncentivesEvent, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerCashIncentivesWalletSummary, E as GetIndexerLeaderboardParams, Et as IndexerCashIncentivesEventWallet, F as GetIndexerMakerStatisticsResponse, Ft as IndexerLeaderboardContest, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerNlpSnapshot, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerMarketSnapshot, I as GetIndexerMarketSnapshotsParams, It as IndexerLeaderboardContestTrack, J as GetIndexerNlpSnapshotsParams, Jt as IndexerPerpBalance, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerOraclePrice, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerLeaderboardParticipant, M as GetIndexerLinkedSignerParams, Mt as IndexerEventWithTx, N as GetIndexerLinkedSignerResponse, Nt as IndexerFundingRate, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerEvent, P as GetIndexerMakerStatisticsParams, Pt as IndexerFundingRateHistoryEntry, Q as GetIndexerOrdersParams, Qt as IndexerPortfolioPeriod, R as GetIndexerMatchEventsParams, Rt as IndexerLeaderboardRegistration, S as GetIndexerInterestFundingPaymentsParams, Sn as TickerMarketType, St as IndexerBalanceTrackedVars, T as GetIndexerLeaderboardContestsResponse, Tt as IndexerCashIncentivesEventPlatform, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerMatchEvent, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerMakerSnapshot, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerMatchEventBalances, X as GetIndexerOraclePricesParams, Xt as IndexerPointsEpoch, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerPerpPrices, Z as GetIndexerOraclePricesResponse, Zt as IndexerPortfolioHistory, _ as GetIndexerFastWithdrawalSignatureResponse, _n as ListIndexerSubaccountsResponse, _t as GetIndexerV2TickersParams, a as GetIndexerCandlesticksParams, an as IndexerSpotBalance, at as GetIndexerPortfolioResponse, b as GetIndexerFundingRateParams, bn as RevokeSocialAccountParams, bt as GetIndexerXPointsResponse, c as GetIndexerCashIncentivesResponse, cn as IndexerV2Symbol, ct as GetIndexerProductSnapshotsParams, d as GetIndexerEdgeMarketSnapshotResponse, dn as IndexerXPointsAllTime, dt as GetIndexerReferralCodeParams, en as IndexerProductPayment, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as IndexerXPointsEpoch, ft as GetIndexerReferralCodeResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as ListIndexerSubaccountsParams, gt as GetIndexerV2SymbolsResponse, h as GetIndexerEventsResponse, hn as ListIndexerSocialAccountsResponse, ht as GetIndexerV2SymbolsParams, i as GetIndexerBacklogResponse, in as IndexerSocialAccountInfo, it as GetIndexerPortfolioParams, j as GetIndexerLeaderboardResponse, jt as IndexerEventSpotStateSnapshot, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerEventBalanceStateSnapshot, l as GetIndexerEdgeCandlesticksParams, ln as IndexerV2TickerResponse, lt as GetIndexerProductSnapshotsResponse, m as GetIndexerEventsParams, mn as ListIndexerSocialAccountsParams, mt as GetIndexerSubaccountDDAResponse, n as ConnectSocialAccountParams, nn as IndexerSnapshotBalance, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerSubaccountSnapshot, ot as GetIndexerPrivateAlphaChoiceParams, p as GetIndexerEventsLimitType, pn as IndexerXPointsQuest, pt as GetIndexerSubaccountDDAParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerOrder, r as ConnectSocialAccountResponse, rn as IndexerSnapshotsIntervalParams, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerV2MarketHours, st as GetIndexerPrivateAlphaChoiceResponse, t as Candlestick, tn as IndexerProductSnapshot, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as IndexerV2TradingStatus, ut as GetIndexerQuotePriceResponse, v as GetIndexerFundingRateHistoryParams, vn as RegisterLeaderboardParams, vt as GetIndexerV2TickersResponse, w as GetIndexerLeaderboardContestsParams, wt as IndexerCashIncentivesEventMetadata, x as GetIndexerFundingRateResponse, xn as RevokeSocialAccountResponse, xt as IndexerAllTimePoints, y as GetIndexerFundingRateHistoryResponse, yn as RegisterLeaderboardResponse, yt as GetIndexerXPointsParams, z as GetIndexerMatchEventsResponse, zt as IndexerLeaderboardTrackPosition } from "./clientTypes-B9CLpWyr.js";
8
8
  import { t as CollateralEventType } from "./collateralEventType-s-WbBniE.js";
9
9
  import { n as IndexerErrorCode, t as INDEXER_ERROR_CODES } from "./indexerErrorCodes-DNHtJXxm.js";
10
- import { t as IndexerServerFailureError } from "./IndexerServerFailureError-Cp-nQ6BQ.js";
11
- import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-BOUjVtm0.js";
10
+ import { t as IndexerServerFailureError } from "./IndexerServerFailureError-CNfg1fnY.js";
11
+ import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-BJXTuQTz.js";
12
12
  import { IndexerBaseClient, IndexerClientOpts } from "./IndexerBaseClient.js";
13
13
  import { IndexerClient } from "./IndexerClient.js";
14
14
  import { INDEXER_CLIENT_ENDPOINTS } from "./endpoints.js";
15
- import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-dX29Cr7g.js";
16
- export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
15
+ import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-Dz405nR_.js";
16
+ export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPortfolioParams, GetIndexerPortfolioResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerPortfolioHistory, IndexerPortfolioPeriod, IndexerPortfolioPoint, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPortfolioHistory, IndexerServerPortfolioParams, IndexerServerPortfolioPeriod, IndexerServerPortfolioPoint, IndexerServerPortfolioResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
@@ -1,4 +1,4 @@
1
- import { Kt as IndexerPerpBalance, en as IndexerSpotBalance } from "./clientTypes-C6gfQzsU.cjs";
1
+ import { Jt as IndexerPerpBalance, an as IndexerSpotBalance } from "./clientTypes-pI3pxxup.cjs";
2
2
  import BigNumber from "bignumber.js";
3
3
 
4
4
  //#region src/utils/indexerBalanceValue.d.ts
@@ -29,4 +29,4 @@ declare function calcIndexerPerpBalanceNotionalValue(balance: IndexerPerpBalance
29
29
  declare function calcIndexerPerpBalanceValue(balance: IndexerPerpBalance, oraclePrice: BigNumber): BigNumber;
30
30
  //#endregion
31
31
  export { calcIndexerPerpBalanceValue as n, calcIndexerSpotBalanceValue as r, calcIndexerPerpBalanceNotionalValue as t };
32
- //# sourceMappingURL=indexerBalanceValue-BBUGThDY.d.cts.map
32
+ //# sourceMappingURL=indexerBalanceValue-DyBxYbS1.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexerBalanceValue-BBUGThDY.d.cts","names":[],"sources":["../src/utils/src/utils/indexerBalanceValue.ts"],"mappings":";;;;;;;AAcA;;;;;;;iBAAgB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;;;;;;;iBAUa,mCAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;AAHH;;;;;;AAAA,iBAagB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA"}
1
+ {"version":3,"file":"indexerBalanceValue-DyBxYbS1.d.cts","names":[],"sources":["../src/utils/src/utils/indexerBalanceValue.ts"],"mappings":";;;;;;;AAcA;;;;;;;iBAAgB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;;;;;;;iBAUa,mCAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;AAHH;;;;;;AAAA,iBAagB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA"}
@@ -1,4 +1,4 @@
1
- import { Kt as IndexerPerpBalance, en as IndexerSpotBalance } from "./clientTypes-Cke-KLUR.js";
1
+ import { Jt as IndexerPerpBalance, an as IndexerSpotBalance } from "./clientTypes-B9CLpWyr.js";
2
2
  import BigNumber from "bignumber.js";
3
3
 
4
4
  //#region src/utils/indexerBalanceValue.d.ts
@@ -29,4 +29,4 @@ declare function calcIndexerPerpBalanceNotionalValue(balance: IndexerPerpBalance
29
29
  declare function calcIndexerPerpBalanceValue(balance: IndexerPerpBalance, oraclePrice: BigNumber): BigNumber;
30
30
  //#endregion
31
31
  export { calcIndexerPerpBalanceValue as n, calcIndexerSpotBalanceValue as r, calcIndexerPerpBalanceNotionalValue as t };
32
- //# sourceMappingURL=indexerBalanceValue-dX29Cr7g.d.ts.map
32
+ //# sourceMappingURL=indexerBalanceValue-Dz405nR_.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexerBalanceValue-dX29Cr7g.d.ts","names":[],"sources":["../src/utils/src/utils/indexerBalanceValue.ts"],"mappings":";;;;;;;AAcA;;;;;;;iBAAgB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;;;;;;;iBAUa,mCAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;AAHH;;;;;;AAAA,iBAagB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA"}
1
+ {"version":3,"file":"indexerBalanceValue-Dz405nR_.d.ts","names":[],"sources":["../src/utils/src/utils/indexerBalanceValue.ts"],"mappings":";;;;;;;AAcA;;;;;;;iBAAgB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;;;;;;;iBAUa,mCAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;AAHH;;;;;;AAAA,iBAagB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA"}
@@ -1,5 +1,5 @@
1
1
  import { o as NadoTx } from "./NadoTx-Bd4U-zDu.js";
2
- import { At as IndexerEventWithTx, C as GetIndexerInterestFundingPaymentsResponse, Dt as IndexerEventBalanceStateSnapshot, E as GetIndexerLeaderboardParams, Gt as IndexerOrder, Ot as IndexerEventPerpStateSnapshot, Q as GetIndexerOrdersParams, R as GetIndexerMatchEventsParams, S as GetIndexerInterestFundingPaymentsParams, Vt as IndexerMatchEvent, j as GetIndexerLeaderboardResponse, kt as IndexerEventSpotStateSnapshot } from "./clientTypes-Cke-KLUR.js";
2
+ import { At as IndexerEventPerpStateSnapshot, C as GetIndexerInterestFundingPaymentsResponse, E as GetIndexerLeaderboardParams, Mt as IndexerEventWithTx, Q as GetIndexerOrdersParams, R as GetIndexerMatchEventsParams, S as GetIndexerInterestFundingPaymentsParams, Ut as IndexerMatchEvent, j as GetIndexerLeaderboardResponse, jt as IndexerEventSpotStateSnapshot, kt as IndexerEventBalanceStateSnapshot, qt as IndexerOrder } from "./clientTypes-B9CLpWyr.js";
3
3
  import { t as CollateralEventType } from "./collateralEventType-s-WbBniE.js";
4
4
  import { Subaccount } from "@nadohq/shared";
5
5
  import BigNumber from "bignumber.js";
@@ -107,4 +107,4 @@ type GetIndexerPaginatedLeaderboardParams = IndexerPaginationParams & Pick<GetIn
107
107
  type GetIndexerPaginatedLeaderboardResponse = WithPaginationMeta & GetIndexerLeaderboardResponse;
108
108
  //#endregion
109
109
  export { IndexerSettlementEvent as C, IndexerPaginationParams as S, WithPaginationMeta as T, GetIndexerSubaccountSettlementEventsResponse as _, GetIndexerPaginatedOrdersParams as a, IndexerNlpEvent as b, GetIndexerSubaccountCollateralEventsResponse as c, GetIndexerSubaccountLiquidationEventsResponse as d, GetIndexerSubaccountMatchEventParams as f, GetIndexerSubaccountSettlementEventsParams as g, GetIndexerSubaccountNlpEventsResponse as h, GetIndexerPaginatedLeaderboardResponse as i, GetIndexerSubaccountInterestFundingPaymentsParams as l, GetIndexerSubaccountNlpEventsParams as m, GetIndexerPaginatedInterestFundingPaymentsResponse as n, GetIndexerPaginatedOrdersResponse as o, GetIndexerSubaccountMatchEventsResponse as p, GetIndexerPaginatedLeaderboardParams as r, GetIndexerSubaccountCollateralEventsParams as s, BaseIndexerPaginatedEvent as t, GetIndexerSubaccountLiquidationEventsParams as u, IndexerCollateralEvent as v, PaginatedIndexerEventsResponse as w, IndexerPaginationMeta as x, IndexerLiquidationEvent as y };
110
- //# sourceMappingURL=paginatedEventsTypes-BOUjVtm0.d.ts.map
110
+ //# sourceMappingURL=paginatedEventsTypes-BJXTuQTz.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paginatedEventsTypes-BOUjVtm0.d.ts","names":[],"sources":["../src/types/src/types/paginatedEventsTypes.ts"],"mappings":";;;;;;;UAmBiB,uBAAA;EACf,KAAA;EAEA,WAAW;AAAA;AAAA,UAGI,qBAAA;EACf,OAAA;EACA,UAAU;AAAA;AAAA,KAGA,kBAAA;EAAuB,IAAA,EAAM,qBAAqB;AAAA;AAAA,KAEzD,8BAAA,GAAiC,UAAA,GACpC,uBAAuB;EAHb;;;;EAQR,qBAAA;AAAA;AAAA,UAGa,yBAAA,SAAkC,UAAA;EACjD,SAAA,EAAW,SAAA;EACX,eAAA;EACA,EAAA,EAAI,MAAA;AAAA;AAAA,UAGW,8BAAA,WACL,yBAAA,UACF,kBAAA;EACR,MAAA,EAAQ,CAAA;AAAA;AATV;;;AAAA,UAgBiB,0CAAA,SAAmD,8BAA8B;EAChG,UAAA,GAAa,mBAAA;EAEb,QAAA;AAAA;AAAA,UAGe,sBAAA,SAA+B,yBAAA;EAC9C,SAAA,EAAW,mBAAA;EAEX,MAAA,EAAQ,SAAA;EAER,SAAA,EAAW,SAAA;EACX,QAAA,EAAU,6BAAA;AAAA;AAAA,KAGA,4CAAA,GACV,8BAA8B,CAAC,sBAAA;;AA7BrB;AAGZ;KA+BY,mCAAA,GACV,8BAA8B;AAAA,UAEf,eAAA,SAAwB,yBAAA;EACvC,QAAA,EAAU,SAAA;EACV,iBAAA,EAAmB,SAAA;AAAA;AAAA,KAGT,qCAAA,GACV,8BAA8B,CAAC,eAAA;;;;KAMrB,oCAAA,GACV,8BAAA,GACE,IAAA,CAAK,2BAAA;AAAA,KAEG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;EAAA,GAEpB,6BAAA;EAEF,IAAA,GAAO,gBAAA;IAIH,gBAAA,EAAkB,SAAA;EAAA,GAEpB,6BAAA;EAIF,KAAA,EAAO,gBAAA;IAEH,YAAA,EAAc,SAAA;EAAA,GAEhB,6BAAA;AAAA;AAAA,KAIQ,6CAAA,GACV,8BAA8B,CAAC,uBAAA;;;;KAMrB,0CAAA,GACV,8BAA8B;AAAA,UAEf,sBAAA,SAA+B,yBAAA;EAE9C,UAAA,EAAY,SAAA;EACZ,QAAA,EAAU,6BAAA;EACV,QAAA;AAAA;AAAA,KAGU,4CAAA,GACV,8BAA8B,CAAC,sBAAA;;AApGsB;AAKvD;KAqGY,iDAAA,GACV,8BAAA,GACE,IAAA,CAAK,uCAAA;AAAA,UAEQ,kDAAA,SAA2D,yCAAyC;EACnH,IAAA,EAAM,qBAAA;AAAA;AAAA,KAGI,oCAAA,GAAuC,uBAAA,GACjD,IAAA,CAAK,2BAAA;AAAA,KAEK,sCAAA,GAAyC,kBAAA,GACnD,6BAA6B"}
@@ -1,5 +1,5 @@
1
1
  import { o as NadoTx } from "./NadoTx-C3_f0YvI.cjs";
2
- import { At as IndexerEventWithTx, C as GetIndexerInterestFundingPaymentsResponse, Dt as IndexerEventBalanceStateSnapshot, E as GetIndexerLeaderboardParams, Gt as IndexerOrder, Ot as IndexerEventPerpStateSnapshot, Q as GetIndexerOrdersParams, R as GetIndexerMatchEventsParams, S as GetIndexerInterestFundingPaymentsParams, Vt as IndexerMatchEvent, j as GetIndexerLeaderboardResponse, kt as IndexerEventSpotStateSnapshot } from "./clientTypes-C6gfQzsU.cjs";
2
+ import { At as IndexerEventPerpStateSnapshot, C as GetIndexerInterestFundingPaymentsResponse, E as GetIndexerLeaderboardParams, Mt as IndexerEventWithTx, Q as GetIndexerOrdersParams, R as GetIndexerMatchEventsParams, S as GetIndexerInterestFundingPaymentsParams, Ut as IndexerMatchEvent, j as GetIndexerLeaderboardResponse, jt as IndexerEventSpotStateSnapshot, kt as IndexerEventBalanceStateSnapshot, qt as IndexerOrder } from "./clientTypes-pI3pxxup.cjs";
3
3
  import { t as CollateralEventType } from "./collateralEventType-CNrryEno.cjs";
4
4
  import { Subaccount } from "@nadohq/shared";
5
5
  import BigNumber from "bignumber.js";
@@ -107,4 +107,4 @@ type GetIndexerPaginatedLeaderboardParams = IndexerPaginationParams & Pick<GetIn
107
107
  type GetIndexerPaginatedLeaderboardResponse = WithPaginationMeta & GetIndexerLeaderboardResponse;
108
108
  //#endregion
109
109
  export { IndexerSettlementEvent as C, IndexerPaginationParams as S, WithPaginationMeta as T, GetIndexerSubaccountSettlementEventsResponse as _, GetIndexerPaginatedOrdersParams as a, IndexerNlpEvent as b, GetIndexerSubaccountCollateralEventsResponse as c, GetIndexerSubaccountLiquidationEventsResponse as d, GetIndexerSubaccountMatchEventParams as f, GetIndexerSubaccountSettlementEventsParams as g, GetIndexerSubaccountNlpEventsResponse as h, GetIndexerPaginatedLeaderboardResponse as i, GetIndexerSubaccountInterestFundingPaymentsParams as l, GetIndexerSubaccountNlpEventsParams as m, GetIndexerPaginatedInterestFundingPaymentsResponse as n, GetIndexerPaginatedOrdersResponse as o, GetIndexerSubaccountMatchEventsResponse as p, GetIndexerPaginatedLeaderboardParams as r, GetIndexerSubaccountCollateralEventsParams as s, BaseIndexerPaginatedEvent as t, GetIndexerSubaccountLiquidationEventsParams as u, IndexerCollateralEvent as v, PaginatedIndexerEventsResponse as w, IndexerPaginationMeta as x, IndexerLiquidationEvent as y };
110
- //# sourceMappingURL=paginatedEventsTypes-BeMZ3Cac.d.cts.map
110
+ //# sourceMappingURL=paginatedEventsTypes-CrzCU35F.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paginatedEventsTypes-BeMZ3Cac.d.cts","names":[],"sources":["../src/types/src/types/paginatedEventsTypes.ts"],"mappings":";;;;;;;UAmBiB,uBAAA;EACf,KAAA;EAEA,WAAW;AAAA;AAAA,UAGI,qBAAA;EACf,OAAA;EACA,UAAU;AAAA;AAAA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GACV,8BAAA,GACE,IAAA,CAAK,uCAAA;AAAA,UAEQ,kDAAA,SAA2D,yCAAyC;EACnH,IAAA,EAAM,qBAAA;AAAA;AAAA,KAGI,oCAAA,GAAuC,uBAAA,GACjD,IAAA,CAAK,2BAAA;AAAA,KAEK,sCAAA,GAAyC,kBAAA,GACnD,6BAA6B"}
@@ -39,6 +39,9 @@ interface IndexerServerPriceParams {
39
39
  interface IndexerServerPerpPricesParams {
40
40
  product_ids: number[];
41
41
  }
42
+ interface IndexerServerPortfolioParams {
43
+ subaccount: string;
44
+ }
42
45
  interface IndexerServerOraclePricesParams {
43
46
  product_ids: number[];
44
47
  }
@@ -193,6 +196,7 @@ interface IndexerServerQueryRequestByType {
193
196
  oracle_price: IndexerServerOraclePricesParams;
194
197
  orders: IndexerServerOrdersParams;
195
198
  perp_prices: IndexerServerPerpPricesParams;
199
+ portfolio: IndexerServerPortfolioParams;
196
200
  price: IndexerServerPriceParams;
197
201
  product_snapshots: IndexerServerMultiProductsParams;
198
202
  products: IndexerServerProductsParams;
@@ -241,6 +245,14 @@ interface IndexerServerFundingRateHistoryEntry {
241
245
  interface IndexerServerFundingRateHistoryResponse {
242
246
  funding_rates: IndexerServerFundingRateHistoryEntry[];
243
247
  }
248
+ type IndexerServerPortfolioPeriod = 'day' | 'week' | 'month' | 'allTime' | 'perpDay' | 'perpWeek' | 'perpMonth' | 'perpAllTime';
249
+ type IndexerServerPortfolioPoint = [string, string];
250
+ interface IndexerServerPortfolioHistory {
251
+ accountValueHistory: IndexerServerPortfolioPoint[];
252
+ pnlHistory: IndexerServerPortfolioPoint[];
253
+ vlm: string;
254
+ }
255
+ type IndexerServerPortfolioResponse = [IndexerServerPortfolioPeriod, IndexerServerPortfolioHistory][];
244
256
  interface IndexerServerPerpPrices {
245
257
  product_id: number;
246
258
  index_price_x18: string;
@@ -437,6 +449,7 @@ interface IndexerServerQueryResponseByType {
437
449
  oracle_price: IndexerServerOraclePricesResponse;
438
450
  orders: IndexerServerOrdersResponse;
439
451
  perp_prices: IndexerServerPerpPricesResponse;
452
+ portfolio: IndexerServerPortfolioResponse;
440
453
  price: IndexerServerPriceResponse;
441
454
  product_snapshots: IndexerServerMultiProductsResponse;
442
455
  products: IndexerServerProductsResponse;
@@ -553,5 +566,5 @@ interface IndexerServerFailureResponse {
553
566
  */
554
567
  declare function isIndexerServerFailureResponse(data: unknown): data is IndexerServerFailureResponse;
555
568
  //#endregion
556
- export { IndexerServerMatchEventsResponse as $, IndexerServerFundingRatesResponse as A, IndexerServerSocialAccountsResponse as At, IndexerServerLeaderboardRegistrationsParams as B, IndexerServerXPointsEpoch as Bt, IndexerServerFundingRate as C, IndexerServerQueryRequestType as Ct, IndexerServerFundingRateParams as D, IndexerServerReferralCodeResponse as Dt, IndexerServerFundingRateHistoryResponse as E, IndexerServerReferralCodeParams as Et, IndexerServerLeaderboardParams as F, IndexerServerV2Symbol as Ft, IndexerServerListSocialAccountsParams as G, IndexerServerLeaderboardResponse as H, IndexerServerXPointsQuest as Ht, IndexerServerLeaderboardRankParams as I, IndexerServerV2SymbolsResponse as It, IndexerServerMakerStatisticsParams as J, IndexerServerListSubaccountsParams as K, IndexerServerLeaderboardRankResponse as L, IndexerServerV2TickerResponse as Lt, IndexerServerInterestFundingResponse as M, IndexerServerSocialConnectResponse as Mt, IndexerServerLeaderboardContestsParams as N, IndexerServerTriggerTypeFilter as Nt, IndexerServerFundingRateResponse as O, IndexerServerRequestType as Ot, IndexerServerLeaderboardContestsResponse as P, IndexerServerV2MarketHours as Pt, IndexerServerMatchEventsParams as Q, IndexerServerLeaderboardRegisterParams as R, IndexerServerV2TickersResponse as Rt, IndexerServerFastWithdrawalSignatureResponse as S, IndexerServerQueryRequestByType as St, IndexerServerFundingRateHistoryParams as T, IndexerServerQuotePriceResponse as Tt, IndexerServerLinkedSignerParams as U, IndexerServerXPointsResponse as Ut, IndexerServerLeaderboardRegistrationsResponse as V, IndexerServerXPointsParams as Vt, IndexerServerLinkedSignerResponse as W, isIndexerServerFailureResponse as Wt, IndexerServerMarketSnapshotsParams as X, IndexerServerMakerStatisticsResponse as Y, IndexerServerMarketSnapshotsResponse as Z, IndexerServerDDAResponse as _, IndexerServerPriceResponse as _t, IndexerServerAllTimePoints as a, IndexerServerNlpSnapshotsResponse as at, IndexerServerFailureResponse as b, IndexerServerProductsParams as bt, IndexerServerCandlesticksResponse as c, IndexerServerOrdersParams as ct, IndexerServerCashIncentivesEventPlatform as d, IndexerServerPerpPricesParams as dt, IndexerServerMultiProductsParams as et, IndexerServerCashIncentivesEventWallet as f, IndexerServerPerpPricesResponse as ft, IndexerServerDDAQueryParams as g, IndexerServerPriceParams as gt, IndexerServerCashIncentivesWalletSummary as h, IndexerServerPointsResponse as ht, IndexerEdgeServerMarketSnapshotsResponse as i, IndexerServerNlpSnapshotsParams as it, IndexerServerInterestFundingParams as j, IndexerServerSocialConnectParams as jt, IndexerServerFundingRatesParams as k, IndexerServerRevokeSocialAccountParams as kt, IndexerServerCashIncentivesEvent as l, IndexerServerOrdersResponse as lt, IndexerServerCashIncentivesResponse as m, IndexerServerPointsParams as mt, IndexerEdgeServerCandlesticksResponse as n, IndexerServerMultiSubaccountSnapshotsParams as nt, IndexerServerBacklogResponse as o, IndexerServerOraclePricesParams as ot, IndexerServerCashIncentivesParams as p, IndexerServerPointsEpoch as pt, IndexerServerListSubaccountsResponse as q, IndexerEdgeServerMarketSnapshotsParams as r, IndexerServerMultiSubaccountSnapshotsResponse as rt, IndexerServerCandlesticksParams as s, IndexerServerOraclePricesResponse as st, IndexerEdgeServerCandlesticksParams as t, IndexerServerMultiProductsResponse as tt, IndexerServerCashIncentivesEventMetadata as u, IndexerServerPerpPrices as ut, IndexerServerEventsParams as v, IndexerServerPrivateAlphaChoiceParams as vt, IndexerServerFundingRateHistoryEntry as w, IndexerServerQueryResponseByType as wt, IndexerServerFastWithdrawalSignatureParams as x, IndexerServerProductsResponse as xt, IndexerServerEventsResponse as y, IndexerServerPrivateAlphaChoiceResponse as yt, IndexerServerLeaderboardRegisterResponse as z, IndexerServerXPointsAllTime as zt };
557
- //# sourceMappingURL=serverTypes-E311idZv.d.cts.map
569
+ export { IndexerServerMatchEventsResponse as $, IndexerServerFundingRatesResponse as A, IndexerServerQuotePriceResponse as At, IndexerServerLeaderboardRegistrationsParams as B, IndexerServerV2Symbol as Bt, IndexerServerFundingRate as C, IndexerServerPrivateAlphaChoiceParams as Ct, IndexerServerFundingRateParams as D, IndexerServerQueryRequestByType as Dt, IndexerServerFundingRateHistoryResponse as E, IndexerServerProductsResponse as Et, IndexerServerLeaderboardParams as F, IndexerServerSocialAccountsResponse as Ft, IndexerServerListSocialAccountsParams as G, IndexerServerXPointsEpoch as Gt, IndexerServerLeaderboardResponse as H, IndexerServerV2TickerResponse as Ht, IndexerServerLeaderboardRankParams as I, IndexerServerSocialConnectParams as It, IndexerServerMakerStatisticsParams as J, IndexerServerXPointsResponse as Jt, IndexerServerListSubaccountsParams as K, IndexerServerXPointsParams as Kt, IndexerServerLeaderboardRankResponse as L, IndexerServerSocialConnectResponse as Lt, IndexerServerInterestFundingResponse as M, IndexerServerReferralCodeResponse as Mt, IndexerServerLeaderboardContestsParams as N, IndexerServerRequestType as Nt, IndexerServerFundingRateResponse as O, IndexerServerQueryRequestType as Ot, IndexerServerLeaderboardContestsResponse as P, IndexerServerRevokeSocialAccountParams as Pt, IndexerServerMatchEventsParams as Q, IndexerServerLeaderboardRegisterParams as R, IndexerServerTriggerTypeFilter as Rt, IndexerServerFastWithdrawalSignatureResponse as S, IndexerServerPriceResponse as St, IndexerServerFundingRateHistoryParams as T, IndexerServerProductsParams as Tt, IndexerServerLinkedSignerParams as U, IndexerServerV2TickersResponse as Ut, IndexerServerLeaderboardRegistrationsResponse as V, IndexerServerV2SymbolsResponse as Vt, IndexerServerLinkedSignerResponse as W, IndexerServerXPointsAllTime as Wt, IndexerServerMarketSnapshotsParams as X, IndexerServerMakerStatisticsResponse as Y, isIndexerServerFailureResponse as Yt, IndexerServerMarketSnapshotsResponse as Z, IndexerServerDDAResponse as _, IndexerServerPortfolioParams as _t, IndexerServerAllTimePoints as a, IndexerServerNlpSnapshotsResponse as at, IndexerServerFailureResponse as b, IndexerServerPortfolioResponse as bt, IndexerServerCandlesticksResponse as c, IndexerServerOrdersParams as ct, IndexerServerCashIncentivesEventPlatform as d, IndexerServerPerpPricesParams as dt, IndexerServerMultiProductsParams as et, IndexerServerCashIncentivesEventWallet as f, IndexerServerPerpPricesResponse as ft, IndexerServerDDAQueryParams as g, IndexerServerPortfolioHistory as gt, IndexerServerCashIncentivesWalletSummary as h, IndexerServerPointsResponse as ht, IndexerEdgeServerMarketSnapshotsResponse as i, IndexerServerNlpSnapshotsParams as it, IndexerServerInterestFundingParams as j, IndexerServerReferralCodeParams as jt, IndexerServerFundingRatesParams as k, IndexerServerQueryResponseByType as kt, IndexerServerCashIncentivesEvent as l, IndexerServerOrdersResponse as lt, IndexerServerCashIncentivesResponse as m, IndexerServerPointsParams as mt, IndexerEdgeServerCandlesticksResponse as n, IndexerServerMultiSubaccountSnapshotsParams as nt, IndexerServerBacklogResponse as o, IndexerServerOraclePricesParams as ot, IndexerServerCashIncentivesParams as p, IndexerServerPointsEpoch as pt, IndexerServerListSubaccountsResponse as q, IndexerServerXPointsQuest as qt, IndexerEdgeServerMarketSnapshotsParams as r, IndexerServerMultiSubaccountSnapshotsResponse as rt, IndexerServerCandlesticksParams as s, IndexerServerOraclePricesResponse as st, IndexerEdgeServerCandlesticksParams as t, IndexerServerMultiProductsResponse as tt, IndexerServerCashIncentivesEventMetadata as u, IndexerServerPerpPrices as ut, IndexerServerEventsParams as v, IndexerServerPortfolioPeriod as vt, IndexerServerFundingRateHistoryEntry as w, IndexerServerPrivateAlphaChoiceResponse as wt, IndexerServerFastWithdrawalSignatureParams as x, IndexerServerPriceParams as xt, IndexerServerEventsResponse as y, IndexerServerPortfolioPoint as yt, IndexerServerLeaderboardRegisterResponse as z, IndexerServerV2MarketHours as zt };
570
+ //# sourceMappingURL=serverTyp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e,iCAAA;EACf,WAAA,EAAa,oCAAA;EACb,WAAA,EAAa,+BAAA;EACb,aAAA,EAAe,iCAAA;EACf,oBAAA,EAAsB,uCAAA;EACtB,WAAA,EAAa,2BAAA;EACb,YAAA,EAAc,4BAAA;EACd,eAAA,EAAiB,mCAAA;EACjB,cAAA,EAAgB,kCAAA;EAChB,oBAAA,EAAsB,mCAAA;EACtB,qBAAA,EAAuB,mCAAA;AAAA;AA3TP;AAGlB;;;;AAEqD;UAgUpC,6BAAA;EACf,UAAA;EACA,SAAA;EACA,aAAA;EACA,cAAA;EACA,UAAA;EACA,WAAA;EACA,YAAA;EACA,wBAAA;AAAA;AAxTF;;;;AAAA,KA+TY,8BAAA,GAAiC,MAAM,SAEjD,6BAAA;;;;UAMe,0BAAA;EACf,OAAA;EACA,MAAA;EACA,UAAA;EACA,SAAA;AAAA;;AAnU6B;AAG/B;UAsUiB,qBAAA;EACf,IAAA;EACA,UAAA;EACA,MAAA;EACA,mBAAA;EACA,cAAA;EACA,QAAA;EACA,kBAAA;EACA,kBAAA;EACA,uBAAA;EACA,2BAAA;;;AAzU8D;EA6U9D,qBAAA;EA1UyC;;;EA8UzC,iBAAA;EACA,cAAA;EACA,aAAA;EACA,YAAA,EAAc,0BAA0B;EA3UxC;AAAgC;AAGlC;;EA6UE,UAAA;EA5UA;AAAsC;AAGxC;EA6UE,gBAAA;;;AA5UiC;EAgVjC,gBAAA;AAAA;;;;;KAOU,8BAAA,GAAiC,MAAM,SAEjD,qBAAA;;;AArVoB;AAItB;;;KA0VY,wBAAA;;;;;;;;;AAxViC;UAmW5B,4BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,wBAAwB;AAAA;;;;iBAMxB,8BAAA,CACd,IAAA,YACC,IAAA,IAAQ,4BAA4B"}
@@ -39,6 +39,9 @@ interface IndexerServerPriceParams {
39
39
  interface IndexerServerPerpPricesParams {
40
40
  product_ids: number[];
41
41
  }
42
+ interface IndexerServerPortfolioParams {
43
+ subaccount: string;
44
+ }
42
45
  interface IndexerServerOraclePricesParams {
43
46
  product_ids: number[];
44
47
  }
@@ -193,6 +196,7 @@ interface IndexerServerQueryRequestByType {
193
196
  oracle_price: IndexerServerOraclePricesParams;
194
197
  orders: IndexerServerOrdersParams;
195
198
  perp_prices: IndexerServerPerpPricesParams;
199
+ portfolio: IndexerServerPortfolioParams;
196
200
  price: IndexerServerPriceParams;
197
201
  product_snapshots: IndexerServerMultiProductsParams;
198
202
  products: IndexerServerProductsParams;
@@ -241,6 +245,14 @@ interface IndexerServerFundingRateHistoryEntry {
241
245
  interface IndexerServerFundingRateHistoryResponse {
242
246
  funding_rates: IndexerServerFundingRateHistoryEntry[];
243
247
  }
248
+ type IndexerServerPortfolioPeriod = 'day' | 'week' | 'month' | 'allTime' | 'perpDay' | 'perpWeek' | 'perpMonth' | 'perpAllTime';
249
+ type IndexerServerPortfolioPoint = [string, string];
250
+ interface IndexerServerPortfolioHistory {
251
+ accountValueHistory: IndexerServerPortfolioPoint[];
252
+ pnlHistory: IndexerServerPortfolioPoint[];
253
+ vlm: string;
254
+ }
255
+ type IndexerServerPortfolioResponse = [IndexerServerPortfolioPeriod, IndexerServerPortfolioHistory][];
244
256
  interface IndexerServerPerpPrices {
245
257
  product_id: number;
246
258
  index_price_x18: string;
@@ -437,6 +449,7 @@ interface IndexerServerQueryResponseByType {
437
449
  oracle_price: IndexerServerOraclePricesResponse;
438
450
  orders: IndexerServerOrdersResponse;
439
451
  perp_prices: IndexerServerPerpPricesResponse;
452
+ portfolio: IndexerServerPortfolioResponse;
440
453
  price: IndexerServerPriceResponse;
441
454
  product_snapshots: IndexerServerMultiProductsResponse;
442
455
  products: IndexerServerProductsResponse;
@@ -553,5 +566,5 @@ interface IndexerServerFailureResponse {
553
566
  */
554
567
  declare function isIndexerServerFailureResponse(data: unknown): data is IndexerServerFailureResponse;
555
568
  //#endregion
556
- export { IndexerServerMatchEventsResponse as $, IndexerServerFundingRatesResponse as A, IndexerServerSocialAccountsResponse as At, IndexerServerLeaderboardRegistrationsParams as B, IndexerServerXPointsEpoch as Bt, IndexerServerFundingRate as C, IndexerServerQueryRequestType as Ct, IndexerServerFundingRateParams as D, IndexerServerReferralCodeResponse as Dt, IndexerServerFundingRateHistoryResponse as E, IndexerServerReferralCodeParams as Et, IndexerServerLeaderboardParams as F, IndexerServerV2Symbol as Ft, IndexerServerListSocialAccountsParams as G, IndexerServerLeaderboardResponse as H, IndexerServerXPointsQuest as Ht, IndexerServerLeaderboardRankParams as I, IndexerServerV2SymbolsResponse as It, IndexerServerMakerStatisticsParams as J, IndexerServerListSubaccountsParams as K, IndexerServerLeaderboardRankResponse as L, IndexerServerV2TickerResponse as Lt, IndexerServerInterestFundingResponse as M, IndexerServerSocialConnectResponse as Mt, IndexerServerLeaderboardContestsParams as N, IndexerServerTriggerTypeFilter as Nt, IndexerServerFundingRateResponse as O, IndexerServerRequestType as Ot, IndexerServerLeaderboardContestsResponse as P, IndexerServerV2MarketHours as Pt, IndexerServerMatchEventsParams as Q, IndexerServerLeaderboardRegisterParams as R, IndexerServerV2TickersResponse as Rt, IndexerServerFastWithdrawalSignatureResponse as S, IndexerServerQueryRequestByType as St, IndexerServerFundingRateHistoryParams as T, IndexerServerQuotePriceResponse as Tt, IndexerServerLinkedSignerParams as U, IndexerServerXPointsResponse as Ut, IndexerServerLeaderboardRegistrationsResponse as V, IndexerServerXPointsParams as Vt, IndexerServerLinkedSignerResponse as W, isIndexerServerFailureResponse as Wt, IndexerServerMarketSnapshotsParams as X, IndexerServerMakerStatisticsResponse as Y, IndexerServerMarketSnapshotsResponse as Z, IndexerServerDDAResponse as _, IndexerServerPriceResponse as _t, IndexerServerAllTimePoints as a, IndexerServerNlpSnapshotsResponse as at, IndexerServerFailureResponse as b, IndexerServerProductsParams as bt, IndexerServerCandlesticksResponse as c, IndexerServerOrdersParams as ct, IndexerServerCashIncentivesEventPlatform as d, IndexerServerPerpPricesParams as dt, IndexerServerMultiProductsParams as et, IndexerServerCashIncentivesEventWallet as f, IndexerServerPerpPricesResponse as ft, IndexerServerDDAQueryParams as g, IndexerServerPriceParams as gt, IndexerServerCashIncentivesWalletSummary as h, IndexerServerPointsResponse as ht, IndexerEdgeServerMarketSnapshotsResponse as i, IndexerServerNlpSnapshotsParams as it, IndexerServerInterestFundingParams as j, IndexerServerSocialConnectParams as jt, IndexerServerFundingRatesParams as k, IndexerServerRevokeSocialAccountParams as kt, IndexerServerCashIncentivesEvent as l, IndexerServerOrdersResponse as lt, IndexerServerCashIncentivesResponse as m, IndexerServerPointsParams as mt, IndexerEdgeServerCandlesticksResponse as n, IndexerServerMultiSubaccountSnapshotsParams as nt, IndexerServerBacklogResponse as o, IndexerServerOraclePricesParams as ot, IndexerServerCashIncentivesParams as p, IndexerServerPointsEpoch as pt, IndexerServerListSubaccountsResponse as q, IndexerEdgeServerMarketSnapshotsParams as r, IndexerServerMultiSubaccountSnapshotsResponse as rt, IndexerServerCandlesticksParams as s, IndexerServerOraclePricesResponse as st, IndexerEdgeServerCandlesticksParams as t, IndexerServerMultiProductsResponse as tt, IndexerServerCashIncentivesEventMetadata as u, IndexerServerPerpPrices as ut, IndexerServerEventsParams as v, IndexerServerPrivateAlphaChoiceParams as vt, IndexerServerFundingRateHistoryEntry as w, IndexerServerQueryResponseByType as wt, IndexerServerFastWithdrawalSignatureParams as x, IndexerServerProductsResponse as xt, IndexerServerEventsResponse as y, IndexerServerPrivateAlphaChoiceResponse as yt, IndexerServerLeaderboardRegisterResponse as z, IndexerServerXPointsAllTime as zt };
557
- //# sourceMappingURL=serverTypes-l4ceojIp.d.ts.map
569
+ export { IndexerServerMatchEventsResponse as $, IndexerServerFundingRatesResponse as A, IndexerServerQuotePriceResponse as At, IndexerServerLeaderboardRegistrationsParams as B, IndexerServerV2Symbol as Bt, IndexerServerFundingRate as C, IndexerServerPrivateAlphaChoiceParams as Ct, IndexerServerFundingRateParams as D, IndexerServerQueryRequestByType as Dt, IndexerServerFundingRateHistoryResponse as E, IndexerServerProductsResponse as Et, IndexerServerLeaderboardParams as F, IndexerServerSocialAccountsResponse as Ft, IndexerServerListSocialAccountsParams as G, IndexerServerXPointsEpoch as Gt, IndexerServerLeaderboardResponse as H, IndexerServerV2TickerResponse as Ht, IndexerServerLeaderboardRankParams as I, IndexerServerSocialConnectParams as It, IndexerServerMakerStatisticsParams as J, IndexerServerXPointsResponse as Jt, IndexerServerListSubaccountsParams as K, IndexerServerXPointsParams as Kt, IndexerServerLeaderboardRankResponse as L, IndexerServerSocialConnectResponse as Lt, IndexerServerInterestFundingResponse as M, IndexerServerReferralCodeResponse as Mt, IndexerServerLeaderboardContestsParams as N, IndexerServerRequestType as Nt, IndexerServerFundingRateResponse as O, IndexerServerQueryRequestType as Ot, IndexerServerLeaderboardContestsResponse as P, IndexerServerRevokeSocialAccountParams as Pt, IndexerServerMatchEventsParams as Q, IndexerServerLeaderboardRegisterParams as R, IndexerServerTriggerTypeFilter as Rt, IndexerServerFastWithdrawalSignatureResponse as S, IndexerServerPriceResponse as St, IndexerServerFundingRateHistoryParams as T, IndexerServerProductsParams as Tt, IndexerServerLinkedSignerParams as U, IndexerServerV2TickersResponse as Ut, IndexerServerLeaderboardRegistrationsResponse as V, IndexerServerV2SymbolsResponse as Vt, IndexerServerLinkedSignerResponse as W, IndexerServerXPointsAllTime as Wt, IndexerServerMarketSnapshotsParams as X, IndexerServerMakerStatisticsResponse as Y, isIndexerServerFailureResponse as Yt, IndexerServerMarketSnapshotsResponse as Z, IndexerServerDDAResponse as _, IndexerServerPortfolioParams as _t, IndexerServerAllTimePoints as a, IndexerServerNlpSnapshotsResponse as at, IndexerServerFailureResponse as b, IndexerServerPortfolioResponse as bt, IndexerServerCandlesticksResponse as c, IndexerServerOrdersParams as ct, IndexerServerCashIncentivesEventPlatform as d, IndexerServerPerpPricesParams as dt, IndexerServerMultiProductsParams as et, IndexerServerCashIncentivesEventWallet as f, IndexerServerPerpPricesResponse as ft, IndexerServerDDAQueryParams as g, IndexerServerPortfolioHistory as gt, IndexerServerCashIncentivesWalletSummary as h, IndexerServerPointsResponse as ht, IndexerEdgeServerMarketSnapshotsResponse as i, IndexerServerNlpSnapshotsParams as it, IndexerServerInterestFundingParams as j, IndexerServerReferralCodeParams as jt, IndexerServerFundingRatesParams as k, IndexerServerQueryResponseByType as kt, IndexerServerCashIncentivesEvent as l, IndexerServerOrdersResponse as lt, IndexerServerCashIncentivesResponse as m, IndexerServerPointsParams as mt, IndexerEdgeServerCandlesticksResponse as n, IndexerServerMultiSubaccountSnapshotsParams as nt, IndexerServerBacklogResponse as o, IndexerServerOraclePricesParams as ot, IndexerServerCashIncentivesParams as p, IndexerServerPointsEpoch as pt, IndexerServerListSubaccountsResponse as q, IndexerServerXPointsQuest as qt, IndexerEdgeServerMarketSnapshotsParams as r, IndexerServerMultiSubaccountSnapshotsResponse as rt, IndexerServerCandlesticksParams as s, IndexerServerOraclePricesResponse as st, IndexerEdgeServerCandlesticksParams as t, IndexerServerMultiProductsResponse as tt, IndexerServerCashIncentivesEventMetadata as u, IndexerServerPerpPrices as ut, IndexerServerEventsParams as v, IndexerServerPortfolioPeriod as vt, IndexerServerFundingRateHistoryEntry as w, IndexerServerPrivateAlphaChoiceResponse as wt, IndexerServerFastWithdrawalSignatureParams as x, IndexerServerPriceParams as xt, IndexerServerEventsResponse as y, IndexerServerPortfolioPoint as yt, IndexerServerLeaderboardRegisterResponse as z, IndexerServerV2MarketHours as zt };
570
+ //# sourceMappingURL=serverTypes-DkRgWlZV.d.ts.map