@ecency/sdk 2.3.58 → 2.3.59

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.
@@ -8624,8 +8624,16 @@ declare function getHiveEngineOrderBook<T = EngineOrderBookEntry>(symbol: string
8624
8624
  }>;
8625
8625
  declare function getHiveEngineTradeHistory<T = Record<string, unknown>>(symbol: string, limit?: number): Promise<T[]>;
8626
8626
  declare function getHiveEngineOpenOrders<T = HiveEngineOpenOrder>(account: string, symbol: string, limit?: number): Promise<T[]>;
8627
- declare function getHiveEngineMetrics<T = Record<string, unknown>>(symbol?: string, account?: string): Promise<T[]>;
8628
- declare function getHiveEngineTokensMarket<T = Record<string, unknown>>(account?: string, symbol?: string): Promise<T[]>;
8627
+ /**
8628
+ * Market metrics, optionally narrowed to one symbol or to a list of them.
8629
+ *
8630
+ * An unfiltered call is served from a single page – the node caps `find` at 1000 rows
8631
+ * while Hive engine has far more traded tokens than that – so callers that only care
8632
+ * about specific symbols must pass them. Scanning the unfiltered page for a symbol
8633
+ * silently reports "no market" for everything outside it.
8634
+ */
8635
+ declare function getHiveEngineMetrics<T = Record<string, unknown>>(symbol?: string | string[], account?: string): Promise<T[]>;
8636
+ declare function getHiveEngineTokensMarket<T = Record<string, unknown>>(account?: string, symbol?: string | string[]): Promise<T[]>;
8629
8637
  declare function getHiveEngineTokensBalances<T = Record<string, unknown>>(username: string): Promise<T[]>;
8630
8638
  declare function getHiveEngineTokensMetadata<T = Record<string, unknown>>(tokens: string[]): Promise<T[]>;
8631
8639
  declare function getHiveEngineTokenTransactions<T = Record<string, unknown>>(username: string, symbol: string, limit: number, offset: number): Promise<T[]>;
@@ -8726,10 +8734,10 @@ declare function getHiveEngineUnclaimedRewardsQueryOptions(username: string | un
8726
8734
  };
8727
8735
  };
8728
8736
 
8729
- declare function getAllHiveEngineTokensQueryOptions(account?: string, symbol?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenInfo[], Error, HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined]>, "queryFn"> & {
8730
- queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined], never> | undefined;
8737
+ declare function getAllHiveEngineTokensQueryOptions(account?: string, symbol?: string | string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenInfo[], Error, HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | string[] | undefined]>, "queryFn"> & {
8738
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | string[] | undefined], never> | undefined;
8731
8739
  } & {
8732
- queryKey: readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined] & {
8740
+ queryKey: readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | string[] | undefined] & {
8733
8741
  [dataTagSymbol]: HiveEngineTokenInfo[];
8734
8742
  [dataTagErrorSymbol]: Error;
8735
8743
  };