@ganaka/sdk 1.3.0 → 1.4.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.
- package/dist/index.d.ts +5 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -436,7 +436,8 @@ declare const getGrowwQuote: {
|
|
|
436
436
|
declare const getGrowwQuoteTimeline: {
|
|
437
437
|
query: z.ZodObject<{
|
|
438
438
|
symbol: z.ZodString;
|
|
439
|
-
|
|
439
|
+
end_datetime: z.ZodString;
|
|
440
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
440
441
|
}, z.core.$strip>;
|
|
441
442
|
response: z.ZodObject<{
|
|
442
443
|
statusCode: z.ZodNumber;
|
|
@@ -889,6 +890,9 @@ export declare interface RunContext {
|
|
|
889
890
|
fetchCandles: ReturnType<typeof fetchCandles>;
|
|
890
891
|
fetchQuote: ReturnType<typeof fetchQuote>;
|
|
891
892
|
fetchNiftyQuote: ReturnType<typeof fetchNiftyQuote>;
|
|
893
|
+
/**
|
|
894
|
+
* Given a symbol and a end_datetime, returns the quote timeline for the given date
|
|
895
|
+
*/
|
|
892
896
|
fetchQuoteTimeline: ReturnType<typeof fetchQuoteTimeline>;
|
|
893
897
|
fetchShortlist: ReturnType<typeof fetchShortlist>;
|
|
894
898
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4174,7 +4174,7 @@ object({
|
|
|
4174
4174
|
statusCode: number$1(),
|
|
4175
4175
|
message: string()
|
|
4176
4176
|
});
|
|
4177
|
-
const
|
|
4177
|
+
const c = [
|
|
4178
4178
|
"1minute",
|
|
4179
4179
|
"2minute",
|
|
4180
4180
|
"3minute",
|
|
@@ -4227,7 +4227,7 @@ const m = [
|
|
|
4227
4227
|
name: string(),
|
|
4228
4228
|
price: number$1(),
|
|
4229
4229
|
quoteData: a.nullable().optional()
|
|
4230
|
-
}),
|
|
4230
|
+
}), m = _enum(["TOP_GAINERS", "VOLUME_SHOCKERS"]), b = object({
|
|
4231
4231
|
nseSymbol: string(),
|
|
4232
4232
|
quoteData: a
|
|
4233
4233
|
});
|
|
@@ -4236,7 +4236,7 @@ const m = [
|
|
|
4236
4236
|
data: object({
|
|
4237
4237
|
timestamp: n,
|
|
4238
4238
|
timezone: o.optional(),
|
|
4239
|
-
shortlistType:
|
|
4239
|
+
shortlistType: m,
|
|
4240
4240
|
entries: array(d)
|
|
4241
4241
|
})
|
|
4242
4242
|
}),
|
|
@@ -4245,7 +4245,7 @@ const m = [
|
|
|
4245
4245
|
id: string(),
|
|
4246
4246
|
timestamp: string(),
|
|
4247
4247
|
// Format: YYYY-MM-DDTHH:mm:ss (UTC)
|
|
4248
|
-
shortlistType:
|
|
4248
|
+
shortlistType: m,
|
|
4249
4249
|
entriesCount: number$1()
|
|
4250
4250
|
})
|
|
4251
4251
|
})
|
|
@@ -4299,7 +4299,7 @@ const p = object({
|
|
|
4299
4299
|
}), v = {
|
|
4300
4300
|
query: object({
|
|
4301
4301
|
symbol: string(),
|
|
4302
|
-
interval: _enum(
|
|
4302
|
+
interval: _enum(c),
|
|
4303
4303
|
start_datetime: n,
|
|
4304
4304
|
end_datetime: n,
|
|
4305
4305
|
timezone: o.optional()
|
|
@@ -4325,7 +4325,8 @@ const p = object({
|
|
|
4325
4325
|
}, x = {
|
|
4326
4326
|
query: object({
|
|
4327
4327
|
symbol: string(),
|
|
4328
|
-
|
|
4328
|
+
end_datetime: n,
|
|
4329
|
+
timezone: o.optional()
|
|
4329
4330
|
}),
|
|
4330
4331
|
response: t.extend({
|
|
4331
4332
|
data: object({
|
|
@@ -4404,7 +4405,7 @@ const p = object({
|
|
|
4404
4405
|
}, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4405
4406
|
__proto__: null,
|
|
4406
4407
|
getShortlistPersistence: q
|
|
4407
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4408
|
+
}, Symbol.toStringTag, { value: "Module" })), z = {
|
|
4408
4409
|
query: object({}),
|
|
4409
4410
|
response: t.extend({
|
|
4410
4411
|
data: object({
|
|
@@ -4418,14 +4419,14 @@ const p = object({
|
|
|
4418
4419
|
)
|
|
4419
4420
|
})
|
|
4420
4421
|
})
|
|
4421
|
-
},
|
|
4422
|
+
}, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4422
4423
|
__proto__: null,
|
|
4423
|
-
getAvailableDatetimes:
|
|
4424
|
+
getAvailableDatetimes: z
|
|
4424
4425
|
}, Symbol.toStringTag, { value: "Module" })), D = {
|
|
4425
4426
|
query: object({
|
|
4426
4427
|
symbol: string(),
|
|
4427
4428
|
date: i,
|
|
4428
|
-
interval: _enum(
|
|
4429
|
+
interval: _enum(c).optional()
|
|
4429
4430
|
}),
|
|
4430
4431
|
response: t.extend({
|
|
4431
4432
|
data: object({
|
|
@@ -4672,7 +4673,7 @@ const p = object({
|
|
|
4672
4673
|
}, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4673
4674
|
__proto__: null,
|
|
4674
4675
|
v1_dashboard_auth_schemas: L,
|
|
4675
|
-
v1_dashboard_available_datetimes_schemas:
|
|
4676
|
+
v1_dashboard_available_datetimes_schemas: w,
|
|
4676
4677
|
v1_dashboard_candles_schemas: C,
|
|
4677
4678
|
v1_dashboard_daily_persistent_companies_schemas: R,
|
|
4678
4679
|
v1_dashboard_daily_unique_companies_schemas: k,
|