@ganaka/sdk 1.10.0 → 1.10.2

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
@@ -1,6 +1,24 @@
1
1
  import { default as default_2 } from 'zod';
2
2
  import { z } from 'zod';
3
3
 
4
+ declare const addHolidays: {
5
+ body: z.ZodObject<{
6
+ dates: z.ZodArray<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ response: z.ZodObject<{
9
+ statusCode: z.ZodNumber;
10
+ message: z.ZodString;
11
+ data: z.ZodObject<{
12
+ holidays: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ date: z.ZodString;
15
+ createdAt: z.ZodCoercedDate<unknown>;
16
+ updatedAt: z.ZodCoercedDate<unknown>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ }, z.core.$strip>;
20
+ };
21
+
4
22
  declare class ApiClient {
5
23
  private developerToken;
6
24
  private apiDomain;
@@ -17,6 +35,20 @@ declare interface ApiClientConfig {
17
35
  apiDomain: string;
18
36
  }
19
37
 
38
+ declare const checkHoliday: {
39
+ query: z.ZodObject<{
40
+ date: z.ZodString;
41
+ }, z.core.$strip>;
42
+ response: z.ZodObject<{
43
+ statusCode: z.ZodNumber;
44
+ message: z.ZodString;
45
+ data: z.ZodObject<{
46
+ isHoliday: z.ZodBoolean;
47
+ date: z.ZodString;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>;
50
+ };
51
+
20
52
  declare const createOrder: {
21
53
  params: z.ZodObject<{
22
54
  runId: z.ZodUUID;
@@ -66,6 +98,105 @@ declare const createRun: {
66
98
  }, z.core.$strip>;
67
99
  };
68
100
 
101
+ declare const createShortlistSnapshot: {
102
+ body: z.ZodObject<{
103
+ data: z.ZodObject<{
104
+ timestamp: z.ZodString;
105
+ timezone: z.ZodOptional<z.ZodString>;
106
+ shortlistType: z.ZodEnum<{
107
+ TOP_GAINERS: "TOP_GAINERS";
108
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
109
+ }>;
110
+ entries: z.ZodArray<z.ZodObject<{
111
+ nseSymbol: z.ZodString;
112
+ name: z.ZodString;
113
+ price: z.ZodNumber;
114
+ quoteData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
115
+ status: z.ZodEnum<{
116
+ SUCCESS: "SUCCESS";
117
+ FAILURE: "FAILURE";
118
+ }>;
119
+ payload: z.ZodObject<{
120
+ average_price: z.ZodNullable<z.ZodNumber>;
121
+ bid_quantity: z.ZodNullable<z.ZodNumber>;
122
+ bid_price: z.ZodNullable<z.ZodNumber>;
123
+ day_change: z.ZodNullable<z.ZodNumber>;
124
+ day_change_perc: z.ZodNullable<z.ZodNumber>;
125
+ upper_circuit_limit: z.ZodNullable<z.ZodNumber>;
126
+ lower_circuit_limit: z.ZodNullable<z.ZodNumber>;
127
+ ohlc: z.ZodNullable<z.ZodObject<{
128
+ open: z.ZodNullable<z.ZodNumber>;
129
+ high: z.ZodNullable<z.ZodNumber>;
130
+ low: z.ZodNullable<z.ZodNumber>;
131
+ close: z.ZodNullable<z.ZodNumber>;
132
+ }, z.core.$strip>>;
133
+ depth: z.ZodNullable<z.ZodObject<{
134
+ buy: z.ZodArray<z.ZodObject<{
135
+ price: z.ZodNullable<z.ZodNumber>;
136
+ quantity: z.ZodNullable<z.ZodNumber>;
137
+ }, z.core.$strip>>;
138
+ sell: z.ZodArray<z.ZodObject<{
139
+ price: z.ZodNullable<z.ZodNumber>;
140
+ quantity: z.ZodNullable<z.ZodNumber>;
141
+ }, z.core.$strip>>;
142
+ }, z.core.$strip>>;
143
+ high_trade_range: z.ZodNullable<z.ZodNull>;
144
+ implied_volatility: z.ZodNullable<z.ZodNull>;
145
+ last_trade_quantity: z.ZodNullable<z.ZodNumber>;
146
+ last_trade_time: z.ZodNullable<z.ZodNumber>;
147
+ low_trade_range: z.ZodNullable<z.ZodNull>;
148
+ last_price: z.ZodNullable<z.ZodNumber>;
149
+ market_cap: z.ZodNullable<z.ZodNumber>;
150
+ offer_price: z.ZodNullable<z.ZodNumber>;
151
+ offer_quantity: z.ZodNullable<z.ZodNumber>;
152
+ oi_day_change: z.ZodNullable<z.ZodNumber>;
153
+ oi_day_change_percentage: z.ZodNullable<z.ZodNumber>;
154
+ open_interest: z.ZodNullable<z.ZodNumber>;
155
+ previous_open_interest: z.ZodNullable<z.ZodNull>;
156
+ total_buy_quantity: z.ZodNullable<z.ZodNumber>;
157
+ total_sell_quantity: z.ZodNullable<z.ZodNumber>;
158
+ volume: z.ZodNullable<z.ZodNumber>;
159
+ week_52_high: z.ZodNullable<z.ZodNumber>;
160
+ week_52_low: z.ZodNullable<z.ZodNumber>;
161
+ }, z.core.$strip>;
162
+ }, z.core.$strip>>>;
163
+ }, z.core.$strip>>;
164
+ scope: z.ZodOptional<z.ZodEnum<{
165
+ FULL: "FULL";
166
+ TOP_5: "TOP_5";
167
+ }>>;
168
+ }, z.core.$strip>;
169
+ }, z.core.$strip>;
170
+ response: z.ZodObject<{
171
+ statusCode: z.ZodNumber;
172
+ message: z.ZodString;
173
+ data: z.ZodObject<{
174
+ id: z.ZodString;
175
+ timestamp: z.ZodString;
176
+ shortlistType: z.ZodEnum<{
177
+ TOP_GAINERS: "TOP_GAINERS";
178
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
179
+ }>;
180
+ entriesCount: z.ZodNumber;
181
+ }, z.core.$strip>;
182
+ }, z.core.$strip>;
183
+ };
184
+
185
+ declare const deleteDates: {
186
+ body: z.ZodObject<{
187
+ dates: z.ZodArray<z.ZodString>;
188
+ }, z.core.$strip>;
189
+ response: z.ZodObject<{
190
+ statusCode: z.ZodNumber;
191
+ message: z.ZodString;
192
+ data: z.ZodObject<{
193
+ deleted: z.ZodObject<{
194
+ shortlists: z.ZodNumber;
195
+ }, z.core.$strip>;
196
+ }, z.core.$strip>;
197
+ }, z.core.$strip>;
198
+ };
199
+
69
200
  declare const deleteRun: {
70
201
  params: z.ZodObject<{
71
202
  runId: z.ZodUUID;
@@ -79,18 +210,6 @@ declare const deleteRun: {
79
210
  }, z.core.$strip>;
80
211
  };
81
212
 
82
- export declare type fetchAvailableDates = ReturnType<typeof fetchAvailableDates_2>;
83
-
84
- declare const fetchAvailableDates_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
85
- developerToken: string;
86
- apiDomain: string;
87
- runId: string | null;
88
- currentTimestamp: string;
89
- currentTimezone?: string;
90
- }) => () => Promise<default_2.infer<typeof v1_developer_available_dates_schemas.getAvailableDates.response>["data"]>;
91
-
92
- export declare type FetchAvailableDatesResponse = Awaited<ReturnType<ReturnType<typeof fetchAvailableDates_2>>>;
93
-
94
213
  export declare type fetchCandles = ReturnType<typeof fetchCandles_2>;
95
214
 
96
215
  declare const fetchCandles_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
@@ -99,78 +218,44 @@ declare const fetchCandles_2: ({ developerToken, apiDomain, runId, currentTimest
99
218
  runId: string | null;
100
219
  currentTimestamp: string;
101
220
  currentTimezone?: string;
102
- }) => (params: default_2.infer<typeof v1_developer_groww_schemas.getGrowwHistoricalCandles.query>) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwHistoricalCandles.response>["data"]>;
221
+ }) => (params: default_2.infer<typeof v1_candles_schemas.getGrowwHistoricalCandles.query>) => Promise<default_2.infer<typeof v1_candles_schemas.getGrowwHistoricalCandles.response>["data"]>;
103
222
 
104
223
  export declare type FetchCandlesResponse = Awaited<ReturnType<ReturnType<typeof fetchCandles_2>>>;
105
224
 
106
- export declare type fetchHolidays = ReturnType<typeof fetchHolidays_2>;
107
-
108
- declare const fetchHolidays_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
109
- developerToken: string;
110
- apiDomain: string;
111
- runId: string | null;
112
- currentTimestamp: string;
113
- currentTimezone?: string;
114
- }) => () => Promise<default_2.infer<typeof v1_developer_holidays_schemas.getHolidays.response>["data"]>;
225
+ export declare type fetchDates = ReturnType<typeof fetchDates_2>;
115
226
 
116
- export declare type FetchHolidaysResponse = Awaited<ReturnType<ReturnType<typeof fetchHolidays_2>>>;
117
-
118
- export declare type fetchNiftyQuote = ReturnType<typeof fetchNiftyQuote_2>;
119
-
120
- declare const fetchNiftyQuote_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
227
+ declare const fetchDates_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
121
228
  developerToken: string;
122
229
  apiDomain: string;
123
230
  runId: string | null;
124
231
  currentTimestamp: string;
125
232
  currentTimezone?: string;
126
- }) => (params: default_2.infer<typeof v1_developer_groww_schemas.getGrowwNiftyQuote.query>) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwNiftyQuote.response>["data"] | null>;
233
+ }) => () => Promise<default_2.infer<typeof v1_dates_schemas.getDates.response>["data"]>;
127
234
 
128
- export declare type FetchNiftyQuoteResponse = Awaited<ReturnType<ReturnType<typeof fetchNiftyQuote_2>>>;
235
+ export declare type FetchDatesResponse = Awaited<ReturnType<ReturnType<typeof fetchDates_2>>>;
129
236
 
130
- export declare type fetchNiftyQuoteTimeline = ReturnType<typeof fetchNiftyQuoteTimeline_2>;
237
+ export declare type fetchHolidays = ReturnType<typeof fetchHolidays_2>;
131
238
 
132
- declare const fetchNiftyQuoteTimeline_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
239
+ declare const fetchHolidays_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
133
240
  developerToken: string;
134
241
  apiDomain: string;
135
242
  runId: string | null;
136
243
  currentTimestamp: string;
137
244
  currentTimezone?: string;
138
- }) => (
139
- /**
140
- * End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
141
- */
142
- end_datetime: string) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwNiftyQuoteTimeline.response>["data"]["niftyTimeline"]>;
245
+ }) => () => Promise<default_2.infer<typeof v1_holidays_schemas.getHolidays.response>["data"]>;
143
246
 
144
- export declare type FetchNiftyQuoteTimelineResponse = Awaited<ReturnType<ReturnType<typeof fetchNiftyQuoteTimeline_2>>>;
247
+ export declare type FetchHolidaysResponse = Awaited<ReturnType<ReturnType<typeof fetchHolidays_2>>>;
145
248
 
146
249
  export declare type fetchQuote = ReturnType<typeof fetchQuote_2>;
147
250
 
148
- declare const fetchQuote_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
251
+ declare const fetchQuote_2: ({ developerToken, apiDomain, runId, }: {
149
252
  developerToken: string;
150
253
  apiDomain: string;
151
254
  runId: string | null;
152
- currentTimestamp: string;
153
- currentTimezone?: string;
154
- }) => (params: default_2.infer<typeof v1_developer_groww_schemas.getGrowwQuote.query>) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwQuote.response>["data"] | null>;
255
+ }) => (params: default_2.infer<typeof v1_quote_schemas.getGrowwQuote.query>) => Promise<default_2.infer<typeof v1_quote_schemas.getGrowwQuote.response>["data"] | null>;
155
256
 
156
257
  export declare type FetchQuoteResponse = Awaited<ReturnType<ReturnType<typeof fetchQuote_2>>>;
157
258
 
158
- export declare type fetchQuoteTimeline = ReturnType<typeof fetchQuoteTimeline_2>;
159
-
160
- declare const fetchQuoteTimeline_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
161
- developerToken: string;
162
- apiDomain: string;
163
- runId: string | null;
164
- currentTimestamp: string;
165
- currentTimezone?: string;
166
- }) => (symbol: string,
167
- /**
168
- * End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
169
- */
170
- end_datetime: string) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwQuoteTimeline.response>["data"]["quoteTimeline"]>;
171
-
172
- export declare type FetchQuoteTimelineResponse = Awaited<ReturnType<ReturnType<typeof fetchQuoteTimeline_2>>>;
173
-
174
259
  export declare type fetchShortlist = ReturnType<typeof fetchShortlist_2>;
175
260
 
176
261
  declare const fetchShortlist_2: ({ developerToken, apiDomain, runId, currentTimestamp, currentTimezone, }: {
@@ -179,7 +264,7 @@ declare const fetchShortlist_2: ({ developerToken, apiDomain, runId, currentTime
179
264
  runId: string | null;
180
265
  currentTimestamp: string;
181
266
  currentTimezone?: string;
182
- }) => (queryParams: default_2.infer<typeof v1_developer_lists_schemas.getLists.query>) => Promise<default_2.infer<typeof v1_developer_lists_schemas.getLists.response>["data"] | null>;
267
+ }) => (queryParams: default_2.infer<typeof v1_lists_schemas.getLists.query>) => Promise<default_2.infer<typeof v1_lists_schemas.getLists.response>["data"] | null>;
183
268
 
184
269
  export declare type fetchShortlistPersistence = ReturnType<typeof fetchShortlistPersistence_2>;
185
270
 
@@ -189,7 +274,7 @@ declare const fetchShortlistPersistence_2: ({ developerToken, apiDomain, runId,
189
274
  runId: string | null;
190
275
  currentTimestamp: string;
191
276
  currentTimezone?: string;
192
- }) => (queryParams: default_2.infer<typeof v1_developer_shortlist_persistence_schemas.getShortlistPersistence.query>) => Promise<default_2.infer<typeof v1_developer_shortlist_persistence_schemas.getShortlistPersistence.response>["data"] | null>;
277
+ }) => (queryParams: default_2.infer<typeof v1_lists_schemas.getShortlistPersistence.query>) => Promise<default_2.infer<typeof v1_lists_schemas.getShortlistPersistence.response>["data"] | null>;
193
278
 
194
279
  export declare type FetchShortlistResponse = Awaited<ReturnType<ReturnType<typeof fetchShortlist_2>>>;
195
280
 
@@ -247,7 +332,7 @@ export declare class GanakaClient {
247
332
  * @param params.end_datetime - End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
248
333
  * @returns Promise resolving to candle data
249
334
  */
250
- fetchCandles(params: z.infer<typeof v1_developer_groww_schemas.getGrowwHistoricalCandles.query>): Promise<z.infer<typeof v1_developer_groww_schemas.getGrowwHistoricalCandles.response>["data"]>;
335
+ fetchCandles(params: z.infer<typeof v1_candles_schemas.getGrowwHistoricalCandles.query>): Promise<z.infer<typeof v1_candles_schemas.getGrowwHistoricalCandles.response>["data"]>;
251
336
  /**
252
337
  * Fetch quote for a symbol at a specific datetime.
253
338
  *
@@ -256,41 +341,16 @@ export declare class GanakaClient {
256
341
  * @param params.datetime - Datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
257
342
  * @returns Promise resolving to quote data or null
258
343
  */
259
- fetchQuote(params: z.infer<typeof v1_developer_groww_schemas.getGrowwQuote.query>): Promise<z.infer<typeof v1_developer_groww_schemas.getGrowwQuote.response>["data"] | null>;
260
- /**
261
- * Fetch quote timeline for a symbol.
262
- * Given a symbol and an end_datetime, returns the quote timeline for the given date.
263
- *
264
- * @param symbol - The symbol to fetch quote timeline for
265
- * @param end_datetime - End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
266
- * @returns Promise resolving to quote timeline data
267
- */
268
- fetchQuoteTimeline(symbol: string, end_datetime: string): Promise<z.infer<typeof v1_developer_groww_schemas.getGrowwQuoteTimeline.response>["data"]["quoteTimeline"]>;
269
- /**
270
- * Fetch NIFTY quote at a specific datetime.
271
- *
272
- * @param params - Query parameters for fetching NIFTY quote
273
- * @param params.datetime - Datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
274
- * @returns Promise resolving to NIFTY quote data or null
275
- */
276
- fetchNiftyQuote(params: z.infer<typeof v1_developer_groww_schemas.getGrowwNiftyQuote.query>): Promise<z.infer<typeof v1_developer_groww_schemas.getGrowwNiftyQuote.response>["data"] | null>;
277
- /**
278
- * Fetch NIFTY quote timeline.
279
- * Given an end_datetime, returns the NIFTY quote timeline for the given date.
280
- *
281
- * @param end_datetime - End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
282
- * @returns Promise resolving to NIFTY quote timeline data
283
- */
284
- fetchNiftyQuoteTimeline(end_datetime: string): Promise<z.infer<typeof v1_developer_groww_schemas.getGrowwNiftyQuoteTimeline.response>["data"]["niftyTimeline"]>;
344
+ fetchQuote(params: z.infer<typeof v1_quote_schemas.getGrowwQuote.query>): Promise<z.infer<typeof v1_quote_schemas.getGrowwQuote.response>["data"] | null>;
285
345
  /**
286
346
  * Fetch shortlist for a specific type and datetime.
287
347
  *
288
348
  * @param queryParams - Query parameters for fetching shortlist
289
- * @param queryParams.type - The type of shortlist (e.g., "top-gainers", "top-losers")
349
+ * @param queryParams.type - The type of shortlist (e.g., "TOP_GAINERS", "VOLUME_SHOCKERS")
290
350
  * @param queryParams.datetime - Datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
291
351
  * @returns Promise resolving to shortlist data or null
292
352
  */
293
- fetchShortlist(queryParams: z.infer<typeof v1_developer_lists_schemas.getLists.query>): Promise<z.infer<typeof v1_developer_lists_schemas.getLists.response>["data"] | null>;
353
+ fetchShortlist(queryParams: z.infer<typeof v1_lists_schemas.getLists.query>): Promise<z.infer<typeof v1_lists_schemas.getLists.response>["data"] | null>;
294
354
  /**
295
355
  * Fetch shortlist persistence.
296
356
  * Given a shortlist type and a start and end datetime,
@@ -301,26 +361,26 @@ export declare class GanakaClient {
301
361
  * over a given period of time.
302
362
  *
303
363
  * @param queryParams - Query parameters for fetching shortlist persistence
304
- * @param queryParams.type - The type of shortlist (e.g., "top-gainers", "top-losers")
364
+ * @param queryParams.type - The type of shortlist (e.g., "TOP_GAINERS", "VOLUME_SHOCKERS")
305
365
  * @param queryParams.start_datetime - Start datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
306
366
  * @param queryParams.end_datetime - End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
307
367
  * @returns Promise resolving to shortlist persistence data or null
308
368
  */
309
- fetchShortlistPersistence(queryParams: z.infer<typeof v1_developer_shortlist_persistence_schemas.getShortlistPersistence.query>): Promise<z.infer<typeof v1_developer_shortlist_persistence_schemas.getShortlistPersistence.response>["data"] | null>;
369
+ fetchShortlistPersistence(queryParams: z.infer<typeof v1_lists_schemas.getShortlistPersistence.query>): Promise<z.infer<typeof v1_lists_schemas.getShortlistPersistence.response>["data"] | null>;
310
370
  /**
311
- * Fetch available dates with timestamps.
371
+ * Fetch dates with data.
312
372
  * Returns which dates have data available, grouped by date with all timestamps for each date.
313
373
  *
314
- * @returns Promise resolving to available dates data with dates and timestamps
374
+ * @returns Promise resolving to dates data with dates and timestamps
315
375
  */
316
- fetchAvailableDates(): Promise<z.infer<typeof v1_developer_available_dates_schemas.getAvailableDates.response>["data"]>;
376
+ fetchDates(): Promise<z.infer<typeof v1_dates_schemas.getDates.response>["data"]>;
317
377
  /**
318
378
  * Fetch market holidays.
319
379
  * Returns all dates marked as market holidays.
320
380
  *
321
381
  * @returns Promise resolving to holidays data
322
382
  */
323
- fetchHolidays(): Promise<z.infer<typeof v1_developer_holidays_schemas.getHolidays.response>["data"]>;
383
+ fetchHolidays(): Promise<z.infer<typeof v1_holidays_schemas.getHolidays.response>["data"]>;
324
384
  }
325
385
 
326
386
  export declare interface GanakaClientConfig {
@@ -337,34 +397,6 @@ export declare interface GanakaClientConfig {
337
397
  apiDomain?: string;
338
398
  }
339
399
 
340
- declare const getAvailableDates: {
341
- query: z.ZodObject<{}, z.core.$strip>;
342
- response: z.ZodObject<{
343
- statusCode: z.ZodNumber;
344
- message: z.ZodString;
345
- data: z.ZodObject<{
346
- dates: z.ZodArray<z.ZodObject<{
347
- date: z.ZodString;
348
- timestamps: z.ZodArray<z.ZodString>;
349
- }, z.core.$strip>>;
350
- }, z.core.$strip>;
351
- }, z.core.$strip>;
352
- };
353
-
354
- declare const getAvailableDatetimes: {
355
- query: z.ZodObject<{}, z.core.$strip>;
356
- response: z.ZodObject<{
357
- statusCode: z.ZodNumber;
358
- message: z.ZodString;
359
- data: z.ZodObject<{
360
- dates: z.ZodArray<z.ZodObject<{
361
- date: z.ZodString;
362
- timestamps: z.ZodArray<z.ZodString>;
363
- }, z.core.$strip>>;
364
- }, z.core.$strip>;
365
- }, z.core.$strip>;
366
- };
367
-
368
400
  declare const getCandles: {
369
401
  query: z.ZodObject<{
370
402
  symbol: z.ZodString;
@@ -402,224 +434,74 @@ declare const getCandles: {
402
434
  }, z.core.$strip>;
403
435
  };
404
436
 
405
- declare const getDailyPersistentCompanies: {
406
- query: z.ZodObject<{
407
- date: z.ZodString;
408
- type: z.ZodEnum<{
409
- TOP_GAINERS: "TOP_GAINERS";
410
- VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
411
- }>;
412
- }, z.core.$strip>;
437
+ declare const getDates: {
438
+ query: z.ZodObject<{}, z.core.$strip>;
413
439
  response: z.ZodObject<{
414
440
  statusCode: z.ZodNumber;
415
441
  message: z.ZodString;
416
442
  data: z.ZodObject<{
417
- date: z.ZodString;
418
- type: z.ZodEnum<{
419
- TOP_GAINERS: "TOP_GAINERS";
420
- VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
421
- }>;
422
- totalSnapshots: z.ZodNumber;
423
- companies: z.ZodArray<z.ZodObject<{
424
- nseSymbol: z.ZodString;
425
- name: z.ZodString;
426
- count: z.ZodNumber;
427
- percentage: z.ZodNumber;
443
+ dates: z.ZodArray<z.ZodObject<{
444
+ date: z.ZodString;
445
+ timestamps: z.ZodArray<z.ZodString>;
428
446
  }, z.core.$strip>>;
429
447
  }, z.core.$strip>;
430
448
  }, z.core.$strip>;
431
449
  };
432
450
 
433
- declare const getDailyUniqueCompanies: {
434
- query: z.ZodObject<{
435
- date: z.ZodString;
436
- type: z.ZodEnum<{
437
- TOP_GAINERS: "TOP_GAINERS";
438
- VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
439
- }>;
440
- }, z.core.$strip>;
441
- response: z.ZodObject<{
442
- statusCode: z.ZodNumber;
443
- message: z.ZodString;
444
- data: z.ZodObject<{
445
- date: z.ZodString;
446
- type: z.ZodEnum<{
447
- TOP_GAINERS: "TOP_GAINERS";
448
- VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
449
- }>;
450
- uniqueCount: z.ZodNumber;
451
- }, z.core.$strip>;
452
- }, z.core.$strip>;
453
- };
454
-
455
- declare const getGrowwHistoricalCandles: {
456
- query: z.ZodObject<{
457
- symbol: z.ZodString;
458
- interval: z.ZodEnum<{
459
- "1minute": "1minute";
460
- "2minute": "2minute";
461
- "3minute": "3minute";
462
- "5minute": "5minute";
463
- "10minute": "10minute";
464
- "15minute": "15minute";
465
- "30minute": "30minute";
466
- "1hour": "1hour";
467
- "4hour": "4hour";
468
- "1day": "1day";
469
- "1week": "1week";
470
- "1month": "1month";
471
- }>;
472
- start_datetime: z.ZodString;
473
- end_datetime: z.ZodString;
474
- timezone: z.ZodOptional<z.ZodString>;
475
- }, z.core.$strip>;
476
- response: z.ZodObject<{
477
- statusCode: z.ZodNumber;
478
- message: z.ZodString;
479
- data: z.ZodObject<{
480
- status: z.ZodEnum<{
481
- SUCCESS: "SUCCESS";
482
- FAILURE: "FAILURE";
483
- }>;
484
- payload: z.ZodObject<{
485
- candles: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>>;
486
- closing_price: z.ZodNullable<z.ZodNumber>;
487
- start_time: z.ZodString;
488
- end_time: z.ZodString;
489
- interval_in_minutes: z.ZodNumber;
490
- }, z.core.$strip>;
491
- }, z.core.$strip>;
492
- }, z.core.$strip>;
493
- };
494
-
495
- declare const getGrowwNiftyQuote: {
496
- query: z.ZodObject<{
497
- datetime: z.ZodOptional<z.ZodString>;
498
- timezone: z.ZodOptional<z.ZodString>;
499
- }, z.core.$strip>;
500
- response: z.ZodObject<{
501
- statusCode: z.ZodNumber;
502
- message: z.ZodString;
503
- data: z.ZodNullable<z.ZodObject<{
504
- status: z.ZodEnum<{
505
- SUCCESS: "SUCCESS";
506
- FAILURE: "FAILURE";
507
- }>;
508
- payload: z.ZodObject<{
509
- average_price: z.ZodNullable<z.ZodNumber>;
510
- bid_quantity: z.ZodNullable<z.ZodNumber>;
511
- bid_price: z.ZodNullable<z.ZodNumber>;
512
- day_change: z.ZodNullable<z.ZodNumber>;
513
- day_change_perc: z.ZodNullable<z.ZodNumber>;
514
- upper_circuit_limit: z.ZodNullable<z.ZodNumber>;
515
- lower_circuit_limit: z.ZodNullable<z.ZodNumber>;
516
- ohlc: z.ZodNullable<z.ZodObject<{
517
- open: z.ZodNullable<z.ZodNumber>;
518
- high: z.ZodNullable<z.ZodNumber>;
519
- low: z.ZodNullable<z.ZodNumber>;
520
- close: z.ZodNullable<z.ZodNumber>;
521
- }, z.core.$strip>>;
522
- depth: z.ZodNullable<z.ZodObject<{
523
- buy: z.ZodArray<z.ZodObject<{
524
- price: z.ZodNullable<z.ZodNumber>;
525
- quantity: z.ZodNullable<z.ZodNumber>;
526
- }, z.core.$strip>>;
527
- sell: z.ZodArray<z.ZodObject<{
528
- price: z.ZodNullable<z.ZodNumber>;
529
- quantity: z.ZodNullable<z.ZodNumber>;
530
- }, z.core.$strip>>;
531
- }, z.core.$strip>>;
532
- high_trade_range: z.ZodNullable<z.ZodNull>;
533
- implied_volatility: z.ZodNullable<z.ZodNull>;
534
- last_trade_quantity: z.ZodNullable<z.ZodNumber>;
535
- last_trade_time: z.ZodNullable<z.ZodNumber>;
536
- low_trade_range: z.ZodNullable<z.ZodNull>;
537
- last_price: z.ZodNullable<z.ZodNumber>;
538
- market_cap: z.ZodNullable<z.ZodNumber>;
539
- offer_price: z.ZodNullable<z.ZodNumber>;
540
- offer_quantity: z.ZodNullable<z.ZodNumber>;
541
- oi_day_change: z.ZodNullable<z.ZodNumber>;
542
- oi_day_change_percentage: z.ZodNullable<z.ZodNumber>;
543
- open_interest: z.ZodNullable<z.ZodNumber>;
544
- previous_open_interest: z.ZodNullable<z.ZodNull>;
545
- total_buy_quantity: z.ZodNullable<z.ZodNumber>;
546
- total_sell_quantity: z.ZodNullable<z.ZodNumber>;
547
- volume: z.ZodNullable<z.ZodNumber>;
548
- week_52_high: z.ZodNullable<z.ZodNumber>;
549
- week_52_low: z.ZodNullable<z.ZodNumber>;
550
- }, z.core.$strip>;
551
- }, z.core.$strip>>;
552
- }, z.core.$strip>;
553
- };
554
-
555
- declare const getGrowwNiftyQuoteTimeline: {
556
- query: z.ZodObject<{
557
- end_datetime: z.ZodString;
558
- timezone: z.ZodOptional<z.ZodString>;
559
- }, z.core.$strip>;
560
- response: z.ZodObject<{
561
- statusCode: z.ZodNumber;
562
- message: z.ZodString;
563
- data: z.ZodObject<{
564
- niftyTimeline: z.ZodArray<z.ZodObject<{
565
- id: z.ZodString;
566
- timestamp: z.ZodString;
567
- quoteData: z.ZodObject<{
568
- status: z.ZodEnum<{
569
- SUCCESS: "SUCCESS";
570
- FAILURE: "FAILURE";
571
- }>;
572
- payload: z.ZodObject<{
573
- average_price: z.ZodNullable<z.ZodNumber>;
574
- bid_quantity: z.ZodNullable<z.ZodNumber>;
575
- bid_price: z.ZodNullable<z.ZodNumber>;
576
- day_change: z.ZodNullable<z.ZodNumber>;
577
- day_change_perc: z.ZodNullable<z.ZodNumber>;
578
- upper_circuit_limit: z.ZodNullable<z.ZodNumber>;
579
- lower_circuit_limit: z.ZodNullable<z.ZodNumber>;
580
- ohlc: z.ZodNullable<z.ZodObject<{
581
- open: z.ZodNullable<z.ZodNumber>;
582
- high: z.ZodNullable<z.ZodNumber>;
583
- low: z.ZodNullable<z.ZodNumber>;
584
- close: z.ZodNullable<z.ZodNumber>;
585
- }, z.core.$strip>>;
586
- depth: z.ZodNullable<z.ZodObject<{
587
- buy: z.ZodArray<z.ZodObject<{
588
- price: z.ZodNullable<z.ZodNumber>;
589
- quantity: z.ZodNullable<z.ZodNumber>;
590
- }, z.core.$strip>>;
591
- sell: z.ZodArray<z.ZodObject<{
592
- price: z.ZodNullable<z.ZodNumber>;
593
- quantity: z.ZodNullable<z.ZodNumber>;
594
- }, z.core.$strip>>;
595
- }, z.core.$strip>>;
596
- high_trade_range: z.ZodNullable<z.ZodNull>;
597
- implied_volatility: z.ZodNullable<z.ZodNull>;
598
- last_trade_quantity: z.ZodNullable<z.ZodNumber>;
599
- last_trade_time: z.ZodNullable<z.ZodNumber>;
600
- low_trade_range: z.ZodNullable<z.ZodNull>;
601
- last_price: z.ZodNullable<z.ZodNumber>;
602
- market_cap: z.ZodNullable<z.ZodNumber>;
603
- offer_price: z.ZodNullable<z.ZodNumber>;
604
- offer_quantity: z.ZodNullable<z.ZodNumber>;
605
- oi_day_change: z.ZodNullable<z.ZodNumber>;
606
- oi_day_change_percentage: z.ZodNullable<z.ZodNumber>;
607
- open_interest: z.ZodNullable<z.ZodNumber>;
608
- previous_open_interest: z.ZodNullable<z.ZodNull>;
609
- total_buy_quantity: z.ZodNullable<z.ZodNumber>;
610
- total_sell_quantity: z.ZodNullable<z.ZodNumber>;
611
- volume: z.ZodNullable<z.ZodNumber>;
612
- week_52_high: z.ZodNullable<z.ZodNumber>;
613
- week_52_low: z.ZodNullable<z.ZodNumber>;
614
- }, z.core.$strip>;
615
- }, z.core.$strip>;
616
- createdAt: z.ZodString;
617
- updatedAt: z.ZodString;
451
+ declare const getDatesAdmin: {
452
+ query: z.ZodObject<{}, z.core.$strip>;
453
+ response: z.ZodObject<{
454
+ statusCode: z.ZodNumber;
455
+ message: z.ZodString;
456
+ data: z.ZodObject<{
457
+ dates: z.ZodArray<z.ZodObject<{
458
+ date: z.ZodString;
459
+ shortlistCount: z.ZodNumber;
618
460
  }, z.core.$strip>>;
619
461
  }, z.core.$strip>;
620
462
  }, z.core.$strip>;
621
463
  };
622
464
 
465
+ declare const getGrowwHistoricalCandles: {
466
+ query: z.ZodObject<{
467
+ symbol: z.ZodString;
468
+ interval: z.ZodEnum<{
469
+ "1minute": "1minute";
470
+ "2minute": "2minute";
471
+ "3minute": "3minute";
472
+ "5minute": "5minute";
473
+ "10minute": "10minute";
474
+ "15minute": "15minute";
475
+ "30minute": "30minute";
476
+ "1hour": "1hour";
477
+ "4hour": "4hour";
478
+ "1day": "1day";
479
+ "1week": "1week";
480
+ "1month": "1month";
481
+ }>;
482
+ start_datetime: z.ZodString;
483
+ end_datetime: z.ZodString;
484
+ timezone: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strip>;
486
+ response: z.ZodObject<{
487
+ statusCode: z.ZodNumber;
488
+ message: z.ZodString;
489
+ data: z.ZodObject<{
490
+ status: z.ZodEnum<{
491
+ SUCCESS: "SUCCESS";
492
+ FAILURE: "FAILURE";
493
+ }>;
494
+ payload: z.ZodObject<{
495
+ candles: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>>;
496
+ closing_price: z.ZodNullable<z.ZodNumber>;
497
+ start_time: z.ZodString;
498
+ end_time: z.ZodString;
499
+ interval_in_minutes: z.ZodNumber;
500
+ }, z.core.$strip>;
501
+ }, z.core.$strip>;
502
+ }, z.core.$strip>;
503
+ };
504
+
623
505
  declare const getGrowwQuote: {
624
506
  query: z.ZodObject<{
625
507
  symbol: z.ZodString;
@@ -630,8 +512,6 @@ declare const getGrowwQuote: {
630
512
  segment: z.ZodOptional<z.ZodEnum<{
631
513
  CASH: "CASH";
632
514
  }>>;
633
- datetime: z.ZodOptional<z.ZodString>;
634
- timezone: z.ZodOptional<z.ZodString>;
635
515
  }, z.core.$strip>;
636
516
  response: z.ZodObject<{
637
517
  statusCode: z.ZodNumber;
@@ -688,84 +568,6 @@ declare const getGrowwQuote: {
688
568
  }, z.core.$strip>;
689
569
  };
690
570
 
691
- declare const getGrowwQuoteTimeline: {
692
- query: z.ZodObject<{
693
- symbol: z.ZodString;
694
- end_datetime: z.ZodString;
695
- timezone: z.ZodOptional<z.ZodString>;
696
- }, z.core.$strip>;
697
- response: z.ZodObject<{
698
- statusCode: z.ZodNumber;
699
- message: z.ZodString;
700
- data: z.ZodObject<{
701
- quoteTimeline: z.ZodArray<z.ZodObject<{
702
- id: z.ZodString;
703
- timestamp: z.ZodString;
704
- nseSymbol: z.ZodString;
705
- quoteData: z.ZodObject<{
706
- status: z.ZodEnum<{
707
- SUCCESS: "SUCCESS";
708
- FAILURE: "FAILURE";
709
- }>;
710
- payload: z.ZodObject<{
711
- average_price: z.ZodNullable<z.ZodNumber>;
712
- bid_quantity: z.ZodNullable<z.ZodNumber>;
713
- bid_price: z.ZodNullable<z.ZodNumber>;
714
- day_change: z.ZodNullable<z.ZodNumber>;
715
- day_change_perc: z.ZodNullable<z.ZodNumber>;
716
- upper_circuit_limit: z.ZodNullable<z.ZodNumber>;
717
- lower_circuit_limit: z.ZodNullable<z.ZodNumber>;
718
- ohlc: z.ZodNullable<z.ZodObject<{
719
- open: z.ZodNullable<z.ZodNumber>;
720
- high: z.ZodNullable<z.ZodNumber>;
721
- low: z.ZodNullable<z.ZodNumber>;
722
- close: z.ZodNullable<z.ZodNumber>;
723
- }, z.core.$strip>>;
724
- depth: z.ZodNullable<z.ZodObject<{
725
- buy: z.ZodArray<z.ZodObject<{
726
- price: z.ZodNullable<z.ZodNumber>;
727
- quantity: z.ZodNullable<z.ZodNumber>;
728
- }, z.core.$strip>>;
729
- sell: z.ZodArray<z.ZodObject<{
730
- price: z.ZodNullable<z.ZodNumber>;
731
- quantity: z.ZodNullable<z.ZodNumber>;
732
- }, z.core.$strip>>;
733
- }, z.core.$strip>>;
734
- high_trade_range: z.ZodNullable<z.ZodNull>;
735
- implied_volatility: z.ZodNullable<z.ZodNull>;
736
- last_trade_quantity: z.ZodNullable<z.ZodNumber>;
737
- last_trade_time: z.ZodNullable<z.ZodNumber>;
738
- low_trade_range: z.ZodNullable<z.ZodNull>;
739
- last_price: z.ZodNullable<z.ZodNumber>;
740
- market_cap: z.ZodNullable<z.ZodNumber>;
741
- offer_price: z.ZodNullable<z.ZodNumber>;
742
- offer_quantity: z.ZodNullable<z.ZodNumber>;
743
- oi_day_change: z.ZodNullable<z.ZodNumber>;
744
- oi_day_change_percentage: z.ZodNullable<z.ZodNumber>;
745
- open_interest: z.ZodNullable<z.ZodNumber>;
746
- previous_open_interest: z.ZodNullable<z.ZodNull>;
747
- total_buy_quantity: z.ZodNullable<z.ZodNumber>;
748
- total_sell_quantity: z.ZodNullable<z.ZodNumber>;
749
- volume: z.ZodNullable<z.ZodNumber>;
750
- week_52_high: z.ZodNullable<z.ZodNumber>;
751
- week_52_low: z.ZodNullable<z.ZodNumber>;
752
- }, z.core.$strip>;
753
- }, z.core.$strip>;
754
- createdAt: z.ZodString;
755
- updatedAt: z.ZodString;
756
- }, z.core.$strip>>;
757
- }, z.core.$strip>;
758
- }, z.core.$strip>;
759
- };
760
-
761
- declare const getGrowwToken: {
762
- response: z.ZodObject<{
763
- statusCode: z.ZodNumber;
764
- message: z.ZodString;
765
- data: z.ZodString;
766
- }, z.core.$strip>;
767
- };
768
-
769
571
  declare const getHolidays: {
770
572
  response: z.ZodObject<{
771
573
  statusCode: z.ZodNumber;
@@ -784,8 +586,8 @@ declare const getHolidays: {
784
586
  declare const getLists: {
785
587
  query: z.ZodObject<{
786
588
  type: z.ZodEnum<{
787
- "top-gainers": "top-gainers";
788
- "volume-shockers": "volume-shockers";
589
+ TOP_GAINERS: "TOP_GAINERS";
590
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
789
591
  }>;
790
592
  datetime: z.ZodOptional<z.ZodString>;
791
593
  timezone: z.ZodOptional<z.ZodString>;
@@ -805,72 +607,21 @@ declare const getLists: {
805
607
  }, z.core.$strip>;
806
608
  };
807
609
 
808
- declare const getQuoteTimeline: {
610
+ declare const getListsScrap: {
809
611
  query: z.ZodObject<{
810
- symbol: z.ZodString;
811
- date: z.ZodString;
612
+ type: z.ZodEnum<{
613
+ TOP_GAINERS: "TOP_GAINERS";
614
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
615
+ }>;
812
616
  }, z.core.$strip>;
813
617
  response: z.ZodObject<{
814
618
  statusCode: z.ZodNumber;
815
619
  message: z.ZodString;
816
- data: z.ZodObject<{
817
- quoteTimeline: z.ZodArray<z.ZodObject<{
818
- id: z.ZodString;
819
- timestamp: z.ZodString;
820
- nseSymbol: z.ZodString;
821
- quoteData: z.ZodObject<{
822
- status: z.ZodEnum<{
823
- SUCCESS: "SUCCESS";
824
- FAILURE: "FAILURE";
825
- }>;
826
- payload: z.ZodObject<{
827
- average_price: z.ZodNullable<z.ZodNumber>;
828
- bid_quantity: z.ZodNullable<z.ZodNumber>;
829
- bid_price: z.ZodNullable<z.ZodNumber>;
830
- day_change: z.ZodNullable<z.ZodNumber>;
831
- day_change_perc: z.ZodNullable<z.ZodNumber>;
832
- upper_circuit_limit: z.ZodNullable<z.ZodNumber>;
833
- lower_circuit_limit: z.ZodNullable<z.ZodNumber>;
834
- ohlc: z.ZodNullable<z.ZodObject<{
835
- open: z.ZodNullable<z.ZodNumber>;
836
- high: z.ZodNullable<z.ZodNumber>;
837
- low: z.ZodNullable<z.ZodNumber>;
838
- close: z.ZodNullable<z.ZodNumber>;
839
- }, z.core.$strip>>;
840
- depth: z.ZodNullable<z.ZodObject<{
841
- buy: z.ZodArray<z.ZodObject<{
842
- price: z.ZodNullable<z.ZodNumber>;
843
- quantity: z.ZodNullable<z.ZodNumber>;
844
- }, z.core.$strip>>;
845
- sell: z.ZodArray<z.ZodObject<{
846
- price: z.ZodNullable<z.ZodNumber>;
847
- quantity: z.ZodNullable<z.ZodNumber>;
848
- }, z.core.$strip>>;
849
- }, z.core.$strip>>;
850
- high_trade_range: z.ZodNullable<z.ZodNull>;
851
- implied_volatility: z.ZodNullable<z.ZodNull>;
852
- last_trade_quantity: z.ZodNullable<z.ZodNumber>;
853
- last_trade_time: z.ZodNullable<z.ZodNumber>;
854
- low_trade_range: z.ZodNullable<z.ZodNull>;
855
- last_price: z.ZodNullable<z.ZodNumber>;
856
- market_cap: z.ZodNullable<z.ZodNumber>;
857
- offer_price: z.ZodNullable<z.ZodNumber>;
858
- offer_quantity: z.ZodNullable<z.ZodNumber>;
859
- oi_day_change: z.ZodNullable<z.ZodNumber>;
860
- oi_day_change_percentage: z.ZodNullable<z.ZodNumber>;
861
- open_interest: z.ZodNullable<z.ZodNumber>;
862
- previous_open_interest: z.ZodNullable<z.ZodNull>;
863
- total_buy_quantity: z.ZodNullable<z.ZodNumber>;
864
- total_sell_quantity: z.ZodNullable<z.ZodNumber>;
865
- volume: z.ZodNullable<z.ZodNumber>;
866
- week_52_high: z.ZodNullable<z.ZodNumber>;
867
- week_52_low: z.ZodNullable<z.ZodNumber>;
868
- }, z.core.$strip>;
869
- }, z.core.$strip>;
870
- createdAt: z.ZodString;
871
- updatedAt: z.ZodString;
872
- }, z.core.$strip>>;
873
- }, z.core.$strip>;
620
+ data: z.ZodNullable<z.ZodArray<z.ZodObject<{
621
+ name: z.ZodString;
622
+ price: z.ZodNumber;
623
+ nseSymbol: z.ZodString;
624
+ }, z.core.$strip>>>;
874
625
  }, z.core.$strip>;
875
626
  };
876
627
 
@@ -932,8 +683,8 @@ declare const getRunTags: {
932
683
  declare const getShortlistPersistence: {
933
684
  query: z.ZodObject<{
934
685
  type: z.ZodEnum<{
935
- "top-gainers": "top-gainers";
936
- "volume-shockers": "volume-shockers";
686
+ TOP_GAINERS: "TOP_GAINERS";
687
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
937
688
  }>;
938
689
  start_datetime: z.ZodString;
939
690
  end_datetime: z.ZodString;
@@ -950,8 +701,8 @@ declare const getShortlistPersistence: {
950
701
  start_datetime: z.ZodString;
951
702
  end_datetime: z.ZodString;
952
703
  type: z.ZodEnum<{
953
- "top-gainers": "top-gainers";
954
- "volume-shockers": "volume-shockers";
704
+ TOP_GAINERS: "TOP_GAINERS";
705
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
955
706
  }>;
956
707
  totalSnapshots: z.ZodNumber;
957
708
  instruments: z.ZodArray<z.ZodObject<{
@@ -1175,24 +926,28 @@ declare const listSchema: z.ZodObject<{
1175
926
  declare const placeOrder: ({ runId, apiClient }: {
1176
927
  runId: string | null;
1177
928
  apiClient: ApiClient;
1178
- }) => (data: z.infer<typeof v1_dashboard_schemas.v1_dashboard_runs_schemas.createOrder.body>) => Promise<void>;
929
+ }) => (data: z.infer<typeof v1_runs_schemas.createOrder.body>) => Promise<void>;
930
+
931
+ declare const removeHolidays: {
932
+ body: z.ZodObject<{
933
+ dates: z.ZodArray<z.ZodString>;
934
+ }, z.core.$strip>;
935
+ response: z.ZodObject<{
936
+ statusCode: z.ZodNumber;
937
+ message: z.ZodString;
938
+ data: z.ZodObject<{
939
+ deleted: z.ZodObject<{
940
+ count: z.ZodNumber;
941
+ dates: z.ZodArray<z.ZodString>;
942
+ }, z.core.$strip>;
943
+ }, z.core.$strip>;
944
+ }, z.core.$strip>;
945
+ };
1179
946
 
1180
947
  export declare interface RunContext {
1181
948
  placeOrder: ReturnType<typeof placeOrder>;
1182
949
  fetchCandles: ReturnType<typeof fetchCandles_2>;
1183
950
  fetchQuote: ReturnType<typeof fetchQuote_2>;
1184
- fetchNiftyQuote: ReturnType<typeof fetchNiftyQuote_2>;
1185
- /**
1186
- * Given an end_datetime, returns the NIFTY quote timeline for the given date
1187
- *
1188
- * @param end_datetime - The end datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
1189
- * @returns The NIFTY quote timeline for the given date
1190
- */
1191
- fetchNiftyQuoteTimeline: ReturnType<typeof fetchNiftyQuoteTimeline_2>;
1192
- /**
1193
- * Given a symbol and a end_datetime, returns the quote timeline for the given date
1194
- */
1195
- fetchQuoteTimeline: ReturnType<typeof fetchQuoteTimeline_2>;
1196
951
  fetchShortlist: ReturnType<typeof fetchShortlist_2>;
1197
952
  /**
1198
953
  * Given a shortlist type and a start and end datetime,
@@ -1204,12 +959,12 @@ export declare interface RunContext {
1204
959
  */
1205
960
  fetchShortlistPersistence: ReturnType<typeof fetchShortlistPersistence_2>;
1206
961
  /**
1207
- * Fetch available dates with timestamps.
1208
- * Returns which dates have data available, grouped by date with all timestamps for each date.
962
+ * Fetch dates with data.
963
+ * Returns which dates have data, grouped by date with all timestamps for each date.
1209
964
  *
1210
- * @returns Available dates data with dates and timestamps
965
+ * @returns Dates data with dates and timestamps
1211
966
  */
1212
- fetchAvailableDates: ReturnType<typeof fetchAvailableDates_2>;
967
+ fetchDates: ReturnType<typeof fetchDates_2>;
1213
968
  /**
1214
969
  * Fetch market holidays.
1215
970
  * Returns all dates marked as market holidays.
@@ -1287,19 +1042,10 @@ declare const shortlistEntryWithMetricsSchema: z.ZodObject<{
1287
1042
  stopLossTimestamp: z.ZodOptional<z.ZodString>;
1288
1043
  }, z.core.$strip>;
1289
1044
 
1290
- declare const signIn: {
1291
- body: z.ZodObject<{
1292
- developerToken: z.ZodString;
1293
- }, z.core.$strip>;
1294
- response: z.ZodObject<{
1295
- statusCode: z.ZodNumber;
1296
- message: z.ZodString;
1297
- data: z.ZodObject<{
1298
- id: z.ZodUUID;
1299
- username: z.ZodString;
1300
- }, z.core.$strip>;
1301
- }, z.core.$strip>;
1302
- };
1045
+ declare const shortlistTypeSchema: z.ZodEnum<{
1046
+ TOP_GAINERS: "TOP_GAINERS";
1047
+ VOLUME_SHOCKERS: "VOLUME_SHOCKERS";
1048
+ }>;
1303
1049
 
1304
1050
  declare const updateRun: {
1305
1051
  params: z.ZodObject<{
@@ -1324,43 +1070,51 @@ declare const updateRun: {
1324
1070
  }, z.core.$strip>;
1325
1071
  };
1326
1072
 
1327
- declare namespace v1_dashboard_auth_schemas {
1073
+ declare namespace v1_candles_schemas {
1328
1074
  export {
1329
- signIn
1330
- }
1331
- }
1332
-
1333
- declare namespace v1_dashboard_available_datetimes_schemas {
1334
- export {
1335
- getAvailableDatetimes
1075
+ growwHistoricalCandlesSchema,
1076
+ getCandles,
1077
+ getGrowwHistoricalCandles
1336
1078
  }
1337
1079
  }
1338
1080
 
1339
- declare namespace v1_dashboard_candles_schemas {
1081
+ declare namespace v1_dates_schemas {
1340
1082
  export {
1341
- getCandles
1083
+ getDates,
1084
+ getDatesAdmin,
1085
+ deleteDates
1342
1086
  }
1343
1087
  }
1344
1088
 
1345
- declare namespace v1_dashboard_daily_persistent_companies_schemas {
1089
+ declare namespace v1_holidays_schemas {
1346
1090
  export {
1347
- getDailyPersistentCompanies
1091
+ getHolidays,
1092
+ addHolidays,
1093
+ removeHolidays,
1094
+ checkHoliday
1348
1095
  }
1349
1096
  }
1350
1097
 
1351
- declare namespace v1_dashboard_daily_unique_companies_schemas {
1098
+ declare namespace v1_lists_schemas {
1352
1099
  export {
1353
- getDailyUniqueCompanies
1100
+ shortlistTypeSchema,
1101
+ shortlistEntryWithMetricsSchema,
1102
+ listSchema,
1103
+ getShortlists,
1104
+ getLists,
1105
+ createShortlistSnapshot,
1106
+ getListsScrap,
1107
+ getShortlistPersistence
1354
1108
  }
1355
1109
  }
1356
1110
 
1357
- declare namespace v1_dashboard_quote_timeline_schemas {
1111
+ declare namespace v1_quote_schemas {
1358
1112
  export {
1359
- getQuoteTimeline
1113
+ getGrowwQuote
1360
1114
  }
1361
1115
  }
1362
1116
 
1363
- declare namespace v1_dashboard_runs_schemas {
1117
+ declare namespace v1_runs_schemas {
1364
1118
  export {
1365
1119
  getRuns,
1366
1120
  getRunOrders,
@@ -1372,61 +1126,4 @@ declare namespace v1_dashboard_runs_schemas {
1372
1126
  }
1373
1127
  }
1374
1128
 
1375
- declare namespace v1_dashboard_schemas {
1376
- export {
1377
- v1_dashboard_available_datetimes_schemas,
1378
- v1_dashboard_candles_schemas,
1379
- v1_dashboard_daily_persistent_companies_schemas,
1380
- v1_dashboard_daily_unique_companies_schemas,
1381
- v1_dashboard_auth_schemas,
1382
- v1_dashboard_quote_timeline_schemas,
1383
- v1_dashboard_runs_schemas,
1384
- v1_dashboard_shortlists_schemas
1385
- }
1386
- }
1387
-
1388
- declare namespace v1_dashboard_shortlists_schemas {
1389
- export {
1390
- shortlistEntryWithMetricsSchema,
1391
- getShortlists
1392
- }
1393
- }
1394
-
1395
- declare namespace v1_developer_available_dates_schemas {
1396
- export {
1397
- getAvailableDates
1398
- }
1399
- }
1400
-
1401
- declare namespace v1_developer_groww_schemas {
1402
- export {
1403
- growwHistoricalCandlesSchema,
1404
- getGrowwHistoricalCandles,
1405
- getGrowwQuote,
1406
- getGrowwToken,
1407
- getGrowwQuoteTimeline,
1408
- getGrowwNiftyQuoteTimeline,
1409
- getGrowwNiftyQuote
1410
- }
1411
- }
1412
-
1413
- declare namespace v1_developer_holidays_schemas {
1414
- export {
1415
- getHolidays
1416
- }
1417
- }
1418
-
1419
- declare namespace v1_developer_lists_schemas {
1420
- export {
1421
- listSchema,
1422
- getLists
1423
- }
1424
- }
1425
-
1426
- declare namespace v1_developer_shortlist_persistence_schemas {
1427
- export {
1428
- getShortlistPersistence
1429
- }
1430
- }
1431
-
1432
1129
  export { }