@kodiak-finance/orderly-hooks 2.9.2 → 2.10.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1135,7 +1135,7 @@ declare const useTickerStream: (symbol: string) => API.MarketInfo & {
1135
1135
  "24h_change"?: number;
1136
1136
  };
1137
1137
 
1138
- declare const useFundingRate: (symbol: string) => {
1138
+ declare const useFundingRate: (symbol: string | null | undefined) => {
1139
1139
  est_funding_rate: string | null | undefined;
1140
1140
  countDown: string;
1141
1141
  symbol?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -1135,7 +1135,7 @@ declare const useTickerStream: (symbol: string) => API.MarketInfo & {
1135
1135
  "24h_change"?: number;
1136
1136
  };
1137
1137
 
1138
- declare const useFundingRate: (symbol: string) => {
1138
+ declare const useFundingRate: (symbol: string | null | undefined) => {
1139
1139
  est_funding_rate: string | null | undefined;
1140
1140
  countDown: string;
1141
1141
  symbol?: string | undefined;
package/dist/index.js CHANGED
@@ -5093,13 +5093,10 @@ var useComputedLTV = (options = {}) => {
5093
5093
  return new orderlyUtils.Decimal(memoizedLTV).mul(100).toDecimalPlaces(2, orderlyUtils.Decimal.ROUND_DOWN).toNumber();
5094
5094
  };
5095
5095
  var useFundingRate = (symbol) => {
5096
- if (!symbol) {
5097
- throw new orderlyTypes.SDKError("Symbol is required");
5098
- }
5099
5096
  const [countDown, setCountDown] = React.useState("00:00:00");
5100
5097
  const timerRef = React.useRef(null);
5101
5098
  const { data, isLoading } = useQuery(
5102
- `/v1/public/funding_rate/${symbol}`,
5099
+ symbol ? `/v1/public/funding_rate/${symbol}` : null,
5103
5100
  {
5104
5101
  fallbackData: {
5105
5102
  est_funding_rate: 0,