@ganaka/sdk 1.4.0 → 1.4.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.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -117,9 +117,9 @@ declare const fetchQuoteTimeline: ({ developerToken, apiDomain, runId, currentTi
|
|
|
117
117
|
currentTimezone?: string;
|
|
118
118
|
}) => (symbol: string,
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* End datetime in IST string format (YYYY-MM-DDTHH:mm:ss)
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
end_datetime: string) => Promise<default_2.infer<typeof v1_developer_groww_schemas.getGrowwQuoteTimeline.response>["data"]["quoteTimeline"]>;
|
|
123
123
|
|
|
124
124
|
export declare type FetchQuoteTimelineResponse = Awaited<ReturnType<ReturnType<typeof fetchQuoteTimeline>>>;
|
|
125
125
|
|
package/dist/index.js
CHANGED
|
@@ -8047,14 +8047,14 @@ const fetchQuoteTimeline = ({
|
|
|
8047
8047
|
runId,
|
|
8048
8048
|
currentTimestamp,
|
|
8049
8049
|
currentTimezone = "Asia/Kolkata"
|
|
8050
|
-
}) => async (symbol,
|
|
8050
|
+
}) => async (symbol, end_datetime) => {
|
|
8051
8051
|
if (!developerToken) {
|
|
8052
8052
|
throw new Error("Developer token not found. Please set DEVELOPER_KEY environment variable.");
|
|
8053
8053
|
}
|
|
8054
8054
|
try {
|
|
8055
8055
|
const validatedParams = je.getGrowwQuoteTimeline.query.parse({
|
|
8056
8056
|
symbol,
|
|
8057
|
-
|
|
8057
|
+
end_datetime
|
|
8058
8058
|
});
|
|
8059
8059
|
const headers = {
|
|
8060
8060
|
Authorization: `Bearer ${developerToken}`
|