@ganaka/sdk 1.0.2 → 1.0.3

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.ts CHANGED
@@ -101,7 +101,11 @@ declare const fetchQuoteTimeline: ({ developerToken, apiDomain, runId, currentTi
101
101
  runId: string | null;
102
102
  currentTimestamp: string;
103
103
  currentTimezone?: string;
104
- }) => (symbol: string, date: Date) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwQuoteTimeline.response>["data"]["quoteTimeline"]>;
104
+ }) => (symbol: string,
105
+ /**
106
+ * Date in IST string format (YYYY-MM-DD)
107
+ */
108
+ date: string) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwQuoteTimeline.response>["data"]["quoteTimeline"]>;
105
109
 
106
110
  export declare type FetchQuoteTimelineResponse = Awaited<ReturnType<ReturnType<typeof fetchQuoteTimeline>>>;
107
111
 
package/dist/index.js CHANGED
@@ -8000,10 +8000,9 @@ const fetchQuoteTimeline = ({
8000
8000
  throw new Error("Developer token not found. Please set DEVELOPER_KEY environment variable.");
8001
8001
  }
8002
8002
  try {
8003
- const dateStr = dayjs.tz(date2, currentTimezone).format("YYYY-MM-DD");
8004
8003
  const validatedParams = _e.getGrowwQuoteTimeline.query.parse({
8005
8004
  symbol,
8006
- date: dateStr
8005
+ date: date2
8007
8006
  });
8008
8007
  const headers = {
8009
8008
  Authorization: `Bearer ${developerToken}`