@keystrokehq/eodhd_apis 0.1.1 → 0.1.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.
Files changed (49) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-id-mapping.cjs +13 -13
  4. package/dist/actions/get-id-mapping.cjs.map +1 -1
  5. package/dist/actions/get-id-mapping.d.cts +14 -31
  6. package/dist/actions/get-id-mapping.d.mts +14 -31
  7. package/dist/actions/get-id-mapping.mjs +13 -13
  8. package/dist/actions/get-id-mapping.mjs.map +1 -1
  9. package/dist/actions/get-mutual-funds-data.cjs +3 -3
  10. package/dist/actions/get-mutual-funds-data.cjs.map +1 -1
  11. package/dist/actions/get-mutual-funds-data.d.cts +4 -8
  12. package/dist/actions/get-mutual-funds-data.d.mts +4 -8
  13. package/dist/actions/get-mutual-funds-data.mjs +3 -3
  14. package/dist/actions/get-mutual-funds-data.mjs.map +1 -1
  15. package/dist/actions/get-real-time-quote.cjs +8 -8
  16. package/dist/actions/get-real-time-quote.cjs.map +1 -1
  17. package/dist/actions/get-real-time-quote.d.cts +17 -43
  18. package/dist/actions/get-real-time-quote.d.mts +17 -43
  19. package/dist/actions/get-real-time-quote.mjs +8 -8
  20. package/dist/actions/get-real-time-quote.mjs.map +1 -1
  21. package/dist/actions/get-real-time-websocket-forex.d.cts +1 -8
  22. package/dist/actions/get-real-time-websocket-forex.d.mts +1 -8
  23. package/dist/actions/get-real-time-websocket-us-trade.d.cts +1 -7
  24. package/dist/actions/get-real-time-websocket-us-trade.d.mts +1 -7
  25. package/dist/actions/get-user-info.cjs +7 -7
  26. package/dist/actions/get-user-info.cjs.map +1 -1
  27. package/dist/actions/get-user-info.d.cts +8 -16
  28. package/dist/actions/get-user-info.d.mts +8 -16
  29. package/dist/actions/get-user-info.mjs +7 -7
  30. package/dist/actions/get-user-info.mjs.map +1 -1
  31. package/dist/actions/get-ust-yield-rates.cjs +6 -6
  32. package/dist/actions/get-ust-yield-rates.cjs.map +1 -1
  33. package/dist/actions/get-ust-yield-rates.d.cts +7 -16
  34. package/dist/actions/get-ust-yield-rates.d.mts +7 -16
  35. package/dist/actions/get-ust-yield-rates.mjs +6 -6
  36. package/dist/actions/get-ust-yield-rates.mjs.map +1 -1
  37. package/dist/actions/list-exchanges.cjs +1 -1
  38. package/dist/actions/list-exchanges.cjs.map +1 -1
  39. package/dist/actions/list-exchanges.d.cts +2 -10
  40. package/dist/actions/list-exchanges.d.mts +2 -10
  41. package/dist/actions/list-exchanges.mjs +1 -1
  42. package/dist/actions/list-exchanges.mjs.map +1 -1
  43. package/dist/actions/search-instruments.cjs +4 -4
  44. package/dist/actions/search-instruments.cjs.map +1 -1
  45. package/dist/actions/search-instruments.d.cts +5 -18
  46. package/dist/actions/search-instruments.d.mts +5 -18
  47. package/dist/actions/search-instruments.mjs +4 -4
  48. package/dist/actions/search-instruments.mjs.map +1 -1
  49. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["eodhdApis","executeEodhdApisTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { eodhdApis } from \"./app\";\nimport { executeEodhdApisTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return eodhdApis.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeEodhdApisTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["eodhdApis","executeEodhdApisTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { eodhdApis } from \"./app\";\nimport { executeEodhdApisTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return eodhdApis.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeEodhdApisTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { eodhdApis } from \"./app\";\nimport { executeEodhdApisTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return eodhdApis.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeEodhdApisTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { eodhdApis } from \"./app\";\nimport { executeEodhdApisTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return eodhdApis.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeEodhdApisTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -14,23 +14,23 @@ const EodhdApisGetIdMappingInput = zod.z.object({
14
14
  filter_symbol: zod.z.string().describe("Filter by ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US'). Use this to find other identifiers for a given ticker symbol.").optional()
15
15
  }).describe("Request parameters for ID mapping endpoint to convert between security identifiers.\nAt least one filter parameter must be provided.");
16
16
  const EodhdApisGetIdMapping_IdMappingRecordSchema = zod.z.object({
17
- cik: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("CIK (Central Index Key) identifier used by the SEC.").optional()),
18
- lei: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("LEI (Legal Entity Identifier).").optional()),
19
- figi: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("FIGI (Financial Instrument Global Identifier).").optional()),
20
- isin: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISIN (International Securities Identification Number) identifier.").optional()),
21
- cusip: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("CUSIP (Committee on Uniform Securities Identification Procedures) identifier.").optional()),
22
- symbol: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').").optional())
17
+ cik: zod.z.string().describe("CIK (Central Index Key) identifier used by the SEC.").nullable().optional(),
18
+ lei: zod.z.string().describe("LEI (Legal Entity Identifier).").nullable().optional(),
19
+ figi: zod.z.string().describe("FIGI (Financial Instrument Global Identifier).").nullable().optional(),
20
+ isin: zod.z.string().describe("ISIN (International Securities Identification Number) identifier.").nullable().optional(),
21
+ cusip: zod.z.string().describe("CUSIP (Committee on Uniform Securities Identification Procedures) identifier.").nullable().optional(),
22
+ symbol: zod.z.string().describe("Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').").nullable().optional()
23
23
  }).describe("A single ID mapping record containing various security identifiers.");
24
24
  const EodhdApisGetIdMapping_IdMappingMetaSchema = zod.z.object({
25
- limit: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Maximum number of results returned in this response.").optional()),
26
- total: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Total number of results available for the query.").optional()),
27
- offset: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of results skipped (pagination offset).").optional())
25
+ limit: zod.z.number().int().describe("Maximum number of results returned in this response.").nullable().optional(),
26
+ total: zod.z.number().int().describe("Total number of results available for the query.").nullable().optional(),
27
+ offset: zod.z.number().int().describe("Number of results skipped (pagination offset).").nullable().optional()
28
28
  }).describe("Metadata about the ID mapping response including pagination information.");
29
- const EodhdApisGetIdMapping_IdMappingLinksSchema = zod.z.object({ next: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL to the next page of results. Null if there are no more results.").optional()) }).describe("Pagination links for navigating through result sets.");
29
+ const EodhdApisGetIdMapping_IdMappingLinksSchema = zod.z.object({ next: zod.z.string().describe("URL to the next page of results. Null if there are no more results.").nullable().optional() }).describe("Pagination links for navigating through result sets.");
30
30
  const EodhdApisGetIdMappingOutput = zod.z.object({
31
- data: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe("List of ID mapping records, each containing various security identifiers.").optional()),
32
- meta: zod.z.preprocess((value) => value === null ? void 0 : value, EodhdApisGetIdMapping_IdMappingMetaSchema.optional()),
33
- links: zod.z.preprocess((value) => value === null ? void 0 : value, EodhdApisGetIdMapping_IdMappingLinksSchema.optional())
31
+ data: zod.z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe("List of ID mapping records, each containing various security identifiers.").nullable().optional(),
32
+ meta: EodhdApisGetIdMapping_IdMappingMetaSchema.nullable().optional(),
33
+ links: EodhdApisGetIdMapping_IdMappingLinksSchema.nullable().optional()
34
34
  }).describe("Response model for ID mapping endpoint containing security identifier mappings.");
35
35
  const eodhdApisGetIdMapping = require_action.action("EODHD_APIS_GET_ID_MAPPING", {
36
36
  slug: "eodhd_apis-get-id-mapping",
@@ -1 +1 @@
1
- {"version":3,"file":"get-id-mapping.cjs","names":["z","action"],"sources":["../../src/actions/get-id-mapping.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetIdMappingInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n filter_ex: z.string().describe(\"Filter by exchange code (e.g., 'US', 'LSE', 'XETRA'). Use this to get all symbols from a specific exchange.\").optional(),\n filter_cik: z.string().describe(\"Filter by CIK (Central Index Key) identifier used by the SEC. Use this to find securities associated with a specific SEC filer.\").optional(),\n filter_lei: z.string().describe(\"Filter by LEI (Legal Entity Identifier). Use this to find securities associated with a specific legal entity.\").optional(),\n page_limit: z.number().int().describe(\"Maximum number of results to return per page. Default is 1000.\").optional(),\n filter_figi: z.string().describe(\"Filter by FIGI (Financial Instrument Global Identifier). Use this to find the ticker symbol and other identifiers for a given FIGI.\").optional(),\n filter_isin: z.string().describe(\"Filter by ISIN (International Securities Identification Number) identifier. Use this to find the ticker symbol and other identifiers for a given ISIN.\").optional(),\n page_offset: z.number().int().describe(\"Number of results to skip for pagination. Use this to retrieve subsequent pages of results.\").optional(),\n filter_cusip: z.string().describe(\"Filter by CUSIP (Committee on Uniform Securities Identification Procedures) identifier. Use this to find the ticker symbol and other identifiers for a given CUSIP.\").optional(),\n filter_symbol: z.string().describe(\"Filter by ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US'). Use this to find other identifiers for a given ticker symbol.\").optional(),\n}).describe(\"Request parameters for ID mapping endpoint to convert between security identifiers.\\nAt least one filter parameter must be provided.\");\nconst EodhdApisGetIdMapping_IdMappingRecordSchema = z.object({\n cik: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"CIK (Central Index Key) identifier used by the SEC.\").optional()),\n lei: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"LEI (Legal Entity Identifier).\").optional()),\n figi: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"FIGI (Financial Instrument Global Identifier).\").optional()),\n isin: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISIN (International Securities Identification Number) identifier.\").optional()),\n cusip: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"CUSIP (Committee on Uniform Securities Identification Procedures) identifier.\").optional()),\n symbol: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').\").optional()),\n}).describe(\"A single ID mapping record containing various security identifiers.\");\nconst EodhdApisGetIdMapping_IdMappingMetaSchema = z.object({\n limit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Maximum number of results returned in this response.\").optional()),\n total: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of results available for the query.\").optional()),\n offset: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of results skipped (pagination offset).\").optional()),\n}).describe(\"Metadata about the ID mapping response including pagination information.\");\nconst EodhdApisGetIdMapping_IdMappingLinksSchema = z.object({\n next: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the next page of results. Null if there are no more results.\").optional()),\n}).describe(\"Pagination links for navigating through result sets.\");\nexport const EodhdApisGetIdMappingOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe(\"List of ID mapping records, each containing various security identifiers.\").optional()),\n meta: z.preprocess((value) => (value === null ? undefined : value), EodhdApisGetIdMapping_IdMappingMetaSchema.optional()),\n links: z.preprocess((value) => (value === null ? undefined : value), EodhdApisGetIdMapping_IdMappingLinksSchema.optional()),\n}).describe(\"Response model for ID mapping endpoint containing security identifier mappings.\");\n\nexport const eodhdApisGetIdMapping = action(\"EODHD_APIS_GET_ID_MAPPING\", {\n slug: \"eodhd_apis-get-id-mapping\",\n name: \"Get ID Mapping\",\n description: \"Tool to convert between different security identifiers (CUSIP, ISIN, FIGI, LEI, CIK, ticker symbol). Use when you need to map one type of identifier to another, normalize portfolio data, or cross-reference securities across different systems. At least one filter parameter must be provided.\",\n input: EodhdApisGetIdMappingInput,\n output: EodhdApisGetIdMappingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC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BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC;CACzN,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,0CAA0C,SAAS,CAAC;CACxH,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,2CAA2C,SAAS,CAAC;AAC5H,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-id-mapping.cjs","names":["z","action"],"sources":["../../src/actions/get-id-mapping.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetIdMappingInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n filter_ex: z.string().describe(\"Filter by exchange code (e.g., 'US', 'LSE', 'XETRA'). Use this to get all symbols from a specific exchange.\").optional(),\n filter_cik: z.string().describe(\"Filter by CIK (Central Index Key) identifier used by the SEC. Use this to find securities associated with a specific SEC filer.\").optional(),\n filter_lei: z.string().describe(\"Filter by LEI (Legal Entity Identifier). Use this to find securities associated with a specific legal entity.\").optional(),\n page_limit: z.number().int().describe(\"Maximum number of results to return per page. Default is 1000.\").optional(),\n filter_figi: z.string().describe(\"Filter by FIGI (Financial Instrument Global Identifier). Use this to find the ticker symbol and other identifiers for a given FIGI.\").optional(),\n filter_isin: z.string().describe(\"Filter by ISIN (International Securities Identification Number) identifier. Use this to find the ticker symbol and other identifiers for a given ISIN.\").optional(),\n page_offset: z.number().int().describe(\"Number of results to skip for pagination. Use this to retrieve subsequent pages of results.\").optional(),\n filter_cusip: z.string().describe(\"Filter by CUSIP (Committee on Uniform Securities Identification Procedures) identifier. Use this to find the ticker symbol and other identifiers for a given CUSIP.\").optional(),\n filter_symbol: z.string().describe(\"Filter by ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US'). Use this to find other identifiers for a given ticker symbol.\").optional(),\n}).describe(\"Request parameters for ID mapping endpoint to convert between security identifiers.\\nAt least one filter parameter must be provided.\");\nconst EodhdApisGetIdMapping_IdMappingRecordSchema = z.object({\n cik: z.string().describe(\"CIK (Central Index Key) identifier used by the SEC.\").nullable().optional(),\n lei: z.string().describe(\"LEI (Legal Entity Identifier).\").nullable().optional(),\n figi: z.string().describe(\"FIGI (Financial Instrument Global Identifier).\").nullable().optional(),\n isin: z.string().describe(\"ISIN (International Securities Identification Number) identifier.\").nullable().optional(),\n cusip: z.string().describe(\"CUSIP (Committee on Uniform Securities Identification Procedures) identifier.\").nullable().optional(),\n symbol: z.string().describe(\"Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').\").nullable().optional(),\n}).describe(\"A single ID mapping record containing various security identifiers.\");\nconst EodhdApisGetIdMapping_IdMappingMetaSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of results returned in this response.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of results available for the query.\").nullable().optional(),\n offset: z.number().int().describe(\"Number of results skipped (pagination offset).\").nullable().optional(),\n}).describe(\"Metadata about the ID mapping response including pagination information.\");\nconst EodhdApisGetIdMapping_IdMappingLinksSchema = z.object({\n next: z.string().describe(\"URL to the next page of results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Pagination links for navigating through result sets.\");\nexport const EodhdApisGetIdMappingOutput = z.object({\n data: z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe(\"List of ID mapping records, each containing various security identifiers.\").nullable().optional(),\n meta: EodhdApisGetIdMapping_IdMappingMetaSchema.nullable().optional(),\n links: EodhdApisGetIdMapping_IdMappingLinksSchema.nullable().optional(),\n}).describe(\"Response model for ID mapping endpoint containing security identifier mappings.\");\n\nexport const eodhdApisGetIdMapping = action(\"EODHD_APIS_GET_ID_MAPPING\", {\n slug: \"eodhd_apis-get-id-mapping\",\n name: \"Get ID Mapping\",\n description: \"Tool to convert between different security identifiers (CUSIP, ISIN, FIGI, LEI, CIK, ticker symbol). Use when you need to map one type of identifier to another, normalize portfolio data, or cross-reference securities across different systems. At least one filter parameter must be provided.\",\n input: EodhdApisGetIdMappingInput,\n output: EodhdApisGetIdMappingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC5K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACjL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACpM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC/I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;CAClN,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,sIA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C,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,21 +14,21 @@ declare const EodhdApisGetIdMappingInput: z.ZodObject<{
14
14
  filter_symbol: z.ZodOptional<z.ZodString>;
15
15
  }, z.core.$strip>;
16
16
  declare const EodhdApisGetIdMappingOutput: z.ZodObject<{
17
- data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
18
- cik: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- lei: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- figi: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- isin: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
- cusip: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- symbol: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
18
+ cik: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ lei: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ figi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ isin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ cusip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ symbol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  }, z.core.$strip>>>>;
25
- meta: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
26
- limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
27
- total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
28
- offset: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
25
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  }, z.core.$strip>>>;
30
- links: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
31
- next: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  }, z.core.$strip>>>;
33
33
  }, z.core.$strip>;
34
34
  declare const eodhdApisGetIdMapping: import("@keystrokehq/action").WorkflowActionDefinition<{
@@ -42,24 +42,7 @@ declare const eodhdApisGetIdMapping: import("@keystrokehq/action").WorkflowActio
42
42
  page_offset?: number | undefined;
43
43
  filter_cusip?: string | undefined;
44
44
  filter_symbol?: string | undefined;
45
- }, {
46
- data?: {
47
- cik?: string | undefined;
48
- lei?: string | undefined;
49
- figi?: string | undefined;
50
- isin?: string | undefined;
51
- cusip?: string | undefined;
52
- symbol?: string | undefined;
53
- }[] | undefined;
54
- meta?: {
55
- limit?: number | undefined;
56
- total?: number | undefined;
57
- offset?: number | undefined;
58
- } | undefined;
59
- links?: {
60
- next?: string | undefined;
61
- } | undefined;
62
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
46
  //#endregion
64
47
  export { eodhdApisGetIdMapping };
65
48
  //# sourceMappingURL=get-id-mapping.d.cts.map
@@ -14,21 +14,21 @@ declare const EodhdApisGetIdMappingInput: z.ZodObject<{
14
14
  filter_symbol: z.ZodOptional<z.ZodString>;
15
15
  }, z.core.$strip>;
16
16
  declare const EodhdApisGetIdMappingOutput: z.ZodObject<{
17
- data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
18
- cik: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- lei: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- figi: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- isin: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
- cusip: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- symbol: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
18
+ cik: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ lei: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ figi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ isin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ cusip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ symbol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  }, z.core.$strip>>>>;
25
- meta: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
26
- limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
27
- total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
28
- offset: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
25
+ meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  }, z.core.$strip>>>;
30
- links: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
31
- next: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  }, z.core.$strip>>>;
33
33
  }, z.core.$strip>;
34
34
  declare const eodhdApisGetIdMapping: import("@keystrokehq/action").WorkflowActionDefinition<{
@@ -42,24 +42,7 @@ declare const eodhdApisGetIdMapping: import("@keystrokehq/action").WorkflowActio
42
42
  page_offset?: number | undefined;
43
43
  filter_cusip?: string | undefined;
44
44
  filter_symbol?: string | undefined;
45
- }, {
46
- data?: {
47
- cik?: string | undefined;
48
- lei?: string | undefined;
49
- figi?: string | undefined;
50
- isin?: string | undefined;
51
- cusip?: string | undefined;
52
- symbol?: string | undefined;
53
- }[] | undefined;
54
- meta?: {
55
- limit?: number | undefined;
56
- total?: number | undefined;
57
- offset?: number | undefined;
58
- } | undefined;
59
- links?: {
60
- next?: string | undefined;
61
- } | undefined;
62
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
46
  //#endregion
64
47
  export { eodhdApisGetIdMapping };
65
48
  //# sourceMappingURL=get-id-mapping.d.mts.map
@@ -14,28 +14,28 @@ const EodhdApisGetIdMappingInput = z.object({
14
14
  filter_symbol: z.string().describe("Filter by ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US'). Use this to find other identifiers for a given ticker symbol.").optional()
15
15
  }).describe("Request parameters for ID mapping endpoint to convert between security identifiers.\nAt least one filter parameter must be provided.");
16
16
  const EodhdApisGetIdMapping_IdMappingRecordSchema = z.object({
17
- cik: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("CIK (Central Index Key) identifier used by the SEC.").optional()),
18
- lei: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("LEI (Legal Entity Identifier).").optional()),
19
- figi: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("FIGI (Financial Instrument Global Identifier).").optional()),
20
- isin: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISIN (International Securities Identification Number) identifier.").optional()),
21
- cusip: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("CUSIP (Committee on Uniform Securities Identification Procedures) identifier.").optional()),
22
- symbol: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').").optional())
17
+ cik: z.string().describe("CIK (Central Index Key) identifier used by the SEC.").nullable().optional(),
18
+ lei: z.string().describe("LEI (Legal Entity Identifier).").nullable().optional(),
19
+ figi: z.string().describe("FIGI (Financial Instrument Global Identifier).").nullable().optional(),
20
+ isin: z.string().describe("ISIN (International Securities Identification Number) identifier.").nullable().optional(),
21
+ cusip: z.string().describe("CUSIP (Committee on Uniform Securities Identification Procedures) identifier.").nullable().optional(),
22
+ symbol: z.string().describe("Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').").nullable().optional()
23
23
  }).describe("A single ID mapping record containing various security identifiers.");
24
24
  const EodhdApisGetIdMapping_IdMappingMetaSchema = z.object({
25
- limit: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Maximum number of results returned in this response.").optional()),
26
- total: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Total number of results available for the query.").optional()),
27
- offset: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of results skipped (pagination offset).").optional())
25
+ limit: z.number().int().describe("Maximum number of results returned in this response.").nullable().optional(),
26
+ total: z.number().int().describe("Total number of results available for the query.").nullable().optional(),
27
+ offset: z.number().int().describe("Number of results skipped (pagination offset).").nullable().optional()
28
28
  }).describe("Metadata about the ID mapping response including pagination information.");
29
- const EodhdApisGetIdMapping_IdMappingLinksSchema = z.object({ next: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL to the next page of results. Null if there are no more results.").optional()) }).describe("Pagination links for navigating through result sets.");
29
+ const EodhdApisGetIdMapping_IdMappingLinksSchema = z.object({ next: z.string().describe("URL to the next page of results. Null if there are no more results.").nullable().optional() }).describe("Pagination links for navigating through result sets.");
30
30
  const eodhdApisGetIdMapping = action("EODHD_APIS_GET_ID_MAPPING", {
31
31
  slug: "eodhd_apis-get-id-mapping",
32
32
  name: "Get ID Mapping",
33
33
  description: "Tool to convert between different security identifiers (CUSIP, ISIN, FIGI, LEI, CIK, ticker symbol). Use when you need to map one type of identifier to another, normalize portfolio data, or cross-reference securities across different systems. At least one filter parameter must be provided.",
34
34
  input: EodhdApisGetIdMappingInput,
35
35
  output: z.object({
36
- data: z.preprocess((value) => value === null ? void 0 : value, z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe("List of ID mapping records, each containing various security identifiers.").optional()),
37
- meta: z.preprocess((value) => value === null ? void 0 : value, EodhdApisGetIdMapping_IdMappingMetaSchema.optional()),
38
- links: z.preprocess((value) => value === null ? void 0 : value, EodhdApisGetIdMapping_IdMappingLinksSchema.optional())
36
+ data: z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe("List of ID mapping records, each containing various security identifiers.").nullable().optional(),
37
+ meta: EodhdApisGetIdMapping_IdMappingMetaSchema.nullable().optional(),
38
+ links: EodhdApisGetIdMapping_IdMappingLinksSchema.nullable().optional()
39
39
  }).describe("Response model for ID mapping endpoint containing security identifier mappings.")
40
40
  });
41
41
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-id-mapping.mjs","names":[],"sources":["../../src/actions/get-id-mapping.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetIdMappingInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n filter_ex: z.string().describe(\"Filter by exchange code (e.g., 'US', 'LSE', 'XETRA'). Use this to get all symbols from a specific exchange.\").optional(),\n filter_cik: z.string().describe(\"Filter by CIK (Central Index Key) identifier used by the SEC. Use this to find securities associated with a specific SEC filer.\").optional(),\n filter_lei: z.string().describe(\"Filter by LEI (Legal Entity Identifier). Use this to find securities associated with a specific legal entity.\").optional(),\n page_limit: z.number().int().describe(\"Maximum number of results to return per page. Default is 1000.\").optional(),\n filter_figi: z.string().describe(\"Filter by FIGI (Financial Instrument Global Identifier). Use this to find the ticker symbol and other identifiers for a given FIGI.\").optional(),\n filter_isin: z.string().describe(\"Filter by ISIN (International Securities Identification Number) identifier. Use this to find the ticker symbol and other identifiers for a given ISIN.\").optional(),\n page_offset: z.number().int().describe(\"Number of results to skip for pagination. Use this to retrieve subsequent pages of results.\").optional(),\n filter_cusip: z.string().describe(\"Filter by CUSIP (Committee on Uniform Securities Identification Procedures) identifier. Use this to find the ticker symbol and other identifiers for a given CUSIP.\").optional(),\n filter_symbol: z.string().describe(\"Filter by ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US'). Use this to find other identifiers for a given ticker symbol.\").optional(),\n}).describe(\"Request parameters for ID mapping endpoint to convert between security identifiers.\\nAt least one filter parameter must be provided.\");\nconst EodhdApisGetIdMapping_IdMappingRecordSchema = z.object({\n cik: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"CIK (Central Index Key) identifier used by the SEC.\").optional()),\n lei: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"LEI (Legal Entity Identifier).\").optional()),\n figi: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"FIGI (Financial Instrument Global Identifier).\").optional()),\n isin: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISIN (International Securities Identification Number) identifier.\").optional()),\n cusip: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"CUSIP (Committee on Uniform Securities Identification Procedures) identifier.\").optional()),\n symbol: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').\").optional()),\n}).describe(\"A single ID mapping record containing various security identifiers.\");\nconst EodhdApisGetIdMapping_IdMappingMetaSchema = z.object({\n limit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Maximum number of results returned in this response.\").optional()),\n total: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of results available for the query.\").optional()),\n offset: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of results skipped (pagination offset).\").optional()),\n}).describe(\"Metadata about the ID mapping response including pagination information.\");\nconst EodhdApisGetIdMapping_IdMappingLinksSchema = z.object({\n next: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the next page of results. Null if there are no more results.\").optional()),\n}).describe(\"Pagination links for navigating through result sets.\");\nexport const EodhdApisGetIdMappingOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe(\"List of ID mapping records, each containing various security identifiers.\").optional()),\n meta: z.preprocess((value) => (value === null ? undefined : value), EodhdApisGetIdMapping_IdMappingMetaSchema.optional()),\n links: z.preprocess((value) => (value === null ? undefined : value), EodhdApisGetIdMapping_IdMappingLinksSchema.optional()),\n}).describe(\"Response model for ID mapping endpoint containing security identifier mappings.\");\n\nexport const eodhdApisGetIdMapping = action(\"EODHD_APIS_GET_ID_MAPPING\", {\n slug: \"eodhd_apis-get-id-mapping\",\n name: \"Get ID Mapping\",\n description: \"Tool to convert between different security identifiers (CUSIP, ISIN, FIGI, LEI, CIK, ticker symbol). Use when you need to map one type of identifier to another, normalize portfolio data, or cross-reference securities across different systems. At least one filter parameter must be provided.\",\n input: EodhdApisGetIdMappingInput,\n output: EodhdApisGetIdMappingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G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AQ,2CAA2C,SAAS,CAAC;CAC5H,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-id-mapping.mjs","names":[],"sources":["../../src/actions/get-id-mapping.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetIdMappingInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n filter_ex: z.string().describe(\"Filter by exchange code (e.g., 'US', 'LSE', 'XETRA'). Use this to get all symbols from a specific exchange.\").optional(),\n filter_cik: z.string().describe(\"Filter by CIK (Central Index Key) identifier used by the SEC. Use this to find securities associated with a specific SEC filer.\").optional(),\n filter_lei: z.string().describe(\"Filter by LEI (Legal Entity Identifier). Use this to find securities associated with a specific legal entity.\").optional(),\n page_limit: z.number().int().describe(\"Maximum number of results to return per page. Default is 1000.\").optional(),\n filter_figi: z.string().describe(\"Filter by FIGI (Financial Instrument Global Identifier). Use this to find the ticker symbol and other identifiers for a given FIGI.\").optional(),\n filter_isin: z.string().describe(\"Filter by ISIN (International Securities Identification Number) identifier. Use this to find the ticker symbol and other identifiers for a given ISIN.\").optional(),\n page_offset: z.number().int().describe(\"Number of results to skip for pagination. Use this to retrieve subsequent pages of results.\").optional(),\n filter_cusip: z.string().describe(\"Filter by CUSIP (Committee on Uniform Securities Identification Procedures) identifier. Use this to find the ticker symbol and other identifiers for a given CUSIP.\").optional(),\n filter_symbol: z.string().describe(\"Filter by ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US'). Use this to find other identifiers for a given ticker symbol.\").optional(),\n}).describe(\"Request parameters for ID mapping endpoint to convert between security identifiers.\\nAt least one filter parameter must be provided.\");\nconst EodhdApisGetIdMapping_IdMappingRecordSchema = z.object({\n cik: z.string().describe(\"CIK (Central Index Key) identifier used by the SEC.\").nullable().optional(),\n lei: z.string().describe(\"LEI (Legal Entity Identifier).\").nullable().optional(),\n figi: z.string().describe(\"FIGI (Financial Instrument Global Identifier).\").nullable().optional(),\n isin: z.string().describe(\"ISIN (International Securities Identification Number) identifier.\").nullable().optional(),\n cusip: z.string().describe(\"CUSIP (Committee on Uniform Securities Identification Procedures) identifier.\").nullable().optional(),\n symbol: z.string().describe(\"Ticker symbol in 'TICKER.EXCHANGE' format (e.g., 'AAPL.US').\").nullable().optional(),\n}).describe(\"A single ID mapping record containing various security identifiers.\");\nconst EodhdApisGetIdMapping_IdMappingMetaSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of results returned in this response.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of results available for the query.\").nullable().optional(),\n offset: z.number().int().describe(\"Number of results skipped (pagination offset).\").nullable().optional(),\n}).describe(\"Metadata about the ID mapping response including pagination information.\");\nconst EodhdApisGetIdMapping_IdMappingLinksSchema = z.object({\n next: z.string().describe(\"URL to the next page of results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Pagination links for navigating through result sets.\");\nexport const EodhdApisGetIdMappingOutput = z.object({\n data: z.array(EodhdApisGetIdMapping_IdMappingRecordSchema).describe(\"List of ID mapping records, each containing various security identifiers.\").nullable().optional(),\n meta: EodhdApisGetIdMapping_IdMappingMetaSchema.nullable().optional(),\n links: EodhdApisGetIdMapping_IdMappingLinksSchema.nullable().optional(),\n}).describe(\"Response model for ID mapping endpoint containing security identifier mappings.\");\n\nexport const eodhdApisGetIdMapping = action(\"EODHD_APIS_GET_ID_MAPPING\", {\n slug: \"eodhd_apis-get-id-mapping\",\n name: \"Get ID Mapping\",\n description: \"Tool to convert between different security identifiers (CUSIP, ISIN, FIGI, LEI, CIK, ticker symbol). Use when you need to map one type of identifier to another, normalize portfolio data, or cross-reference securities across different systems. At least one filter parameter must be provided.\",\n input: EodhdApisGetIdMappingInput,\n output: EodhdApisGetIdMappingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,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AAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4C,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,6CAA6C,EAAE,OAAO,EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAOlE,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrK,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACpE,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
@@ -6,9 +6,9 @@ const EodhdApisGetMutualFundsDataInput = zod.z.object({
6
6
  ticker: zod.z.string().describe("Mutual fund ticker symbol in 'TICKER.EXCHANGE' format. Examples: 'VFIAX.US' (Vanguard 500 Index Fund Admiral), 'SWPPX.US' (Schwab S&P 500 Index Fund). You can also use ISIN/CUSIP identifiers (e.g., 'US8085098551').")
7
7
  }).describe("Request parameters for mutual funds fundamental data endpoint.");
8
8
  const EodhdApisGetMutualFundsDataOutput = zod.z.object({
9
- General: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.").optional()),
10
- MutualFund: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.").optional()),
11
- raw_response: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Raw response data when using filter parameter, or any additional fields returned by the API.").optional())
9
+ General: zod.z.record(zod.z.string(), zod.z.unknown()).describe("General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.").nullable().optional(),
10
+ MutualFund: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.").nullable().optional(),
11
+ raw_response: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Raw response data when using filter parameter, or any additional fields returned by the API.").nullable().optional()
12
12
  }).describe("Response model for mutual funds fundamental data from EODHD API.\nContains comprehensive fund information including general info, asset allocation, and performance metrics.");
13
13
  const eodhdApisGetMutualFundsData = require_action.action("EODHD_APIS_GET_MUTUAL_FUNDS_DATA", {
14
14
  slug: "eodhd_apis-get-mutual-funds-data",
@@ -1 +1 @@
1
- {"version":3,"file":"get-mutual-funds-data.cjs","names":["z","action"],"sources":["../../src/actions/get-mutual-funds-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetMutualFundsDataInput = z.object({\n filter: z.string().describe(\"Optional filter to retrieve specific sections of the data. Examples: 'General', 'MutualFund', 'MutualFund::Asset_Allocation'. Leave empty to get full fundamental data.\").optional(),\n ticker: z.string().describe(\"Mutual fund ticker symbol in 'TICKER.EXCHANGE' format. Examples: 'VFIAX.US' (Vanguard 500 Index Fund Admiral), 'SWPPX.US' (Schwab S&P 500 Index Fund). You can also use ISIN/CUSIP identifiers (e.g., 'US8085098551').\"),\n}).describe(\"Request parameters for mutual funds fundamental data endpoint.\");\nexport const EodhdApisGetMutualFundsDataOutput = z.object({\n General: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.\").optional()),\n MutualFund: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.\").optional()),\n raw_response: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Raw response data when using filter parameter, or any additional fields returned by the API.\").optional()),\n}).describe(\"Response model for mutual funds fundamental data from EODHD API.\\nContains comprehensive fund information including general info, asset allocation, and performance metrics.\");\n\nexport const eodhdApisGetMutualFundsData = action(\"EODHD_APIS_GET_MUTUAL_FUNDS_DATA\", {\n slug: \"eodhd_apis-get-mutual-funds-data\",\n name: \"Get Mutual Funds Data\",\n description: \"Retrieves comprehensive fundamental data for mutual funds via EODHD API. Returns fund details including general information (name, family, inception date, summary), asset allocation (cash, stocks, bonds percentages), value/growth measures (P/E, price-to-book), sector weightings, and world regions exposure. Supports over 20,000 US mutual funds including equity, balanced, and bond-based funds. Use ticker format 'SYMBOL.US' (e.g., 'VFIAX.US', 'SWPPX.US') or ISIN/CUSIP identifiers.\",\n input: EodhdApisGetMutualFundsDataInput,\n output: EodhdApisGetMutualFundsDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAChN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN;AACtP,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC;CAC9S,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC;CAC9V,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC;AACnO,CAAC,CAAC,CAAC,SAAS,8KAA8K;AAE1L,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-mutual-funds-data.cjs","names":["z","action"],"sources":["../../src/actions/get-mutual-funds-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetMutualFundsDataInput = z.object({\n filter: z.string().describe(\"Optional filter to retrieve specific sections of the data. Examples: 'General', 'MutualFund', 'MutualFund::Asset_Allocation'. Leave empty to get full fundamental data.\").optional(),\n ticker: z.string().describe(\"Mutual fund ticker symbol in 'TICKER.EXCHANGE' format. Examples: 'VFIAX.US' (Vanguard 500 Index Fund Admiral), 'SWPPX.US' (Schwab S&P 500 Index Fund). You can also use ISIN/CUSIP identifiers (e.g., 'US8085098551').\"),\n}).describe(\"Request parameters for mutual funds fundamental data endpoint.\");\nexport const EodhdApisGetMutualFundsDataOutput = z.object({\n General: z.record(z.string(), z.unknown()).describe(\"General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.\").nullable().optional(),\n MutualFund: z.record(z.string(), z.unknown()).describe(\"Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.\").nullable().optional(),\n raw_response: z.record(z.string(), z.unknown()).describe(\"Raw response data when using filter parameter, or any additional fields returned by the API.\").nullable().optional(),\n}).describe(\"Response model for mutual funds fundamental data from EODHD API.\\nContains comprehensive fund information including general info, asset allocation, and performance metrics.\");\n\nexport const eodhdApisGetMutualFundsData = action(\"EODHD_APIS_GET_MUTUAL_FUNDS_DATA\", {\n slug: \"eodhd_apis-get-mutual-funds-data\",\n name: \"Get Mutual Funds Data\",\n description: \"Retrieves comprehensive fundamental data for mutual funds via EODHD API. Returns fund details including general information (name, family, inception date, summary), asset allocation (cash, stocks, bonds percentages), value/growth measures (P/E, price-to-book), sector weightings, and world regions exposure. Supports over 20,000 US mutual funds including equity, balanced, and bond-based funds. Use ticker format 'SYMBOL.US' (e.g., 'VFIAX.US', 'SWPPX.US') or ISIN/CUSIP identifiers.\",\n input: EodhdApisGetMutualFundsDataInput,\n output: EodhdApisGetMutualFundsDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAChN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN;AACtP,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1P,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1S,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,8KAA8K;AAE1L,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,18 +6,14 @@ declare const EodhdApisGetMutualFundsDataInput: z.ZodObject<{
6
6
  ticker: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const EodhdApisGetMutualFundsDataOutput: z.ZodObject<{
9
- General: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
- MutualFund: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
- raw_response: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
9
+ General: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
+ MutualFund: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ raw_response: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
12
  }, z.core.$strip>;
13
13
  declare const eodhdApisGetMutualFundsData: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  ticker: string;
15
15
  filter?: string | undefined;
16
- }, {
17
- General?: Record<string, unknown> | undefined;
18
- MutualFund?: Record<string, unknown> | undefined;
19
- raw_response?: Record<string, unknown> | undefined;
20
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
17
  //#endregion
22
18
  export { eodhdApisGetMutualFundsData };
23
19
  //# sourceMappingURL=get-mutual-funds-data.d.cts.map
@@ -6,18 +6,14 @@ declare const EodhdApisGetMutualFundsDataInput: z.ZodObject<{
6
6
  ticker: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const EodhdApisGetMutualFundsDataOutput: z.ZodObject<{
9
- General: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
- MutualFund: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
- raw_response: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
9
+ General: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
+ MutualFund: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ raw_response: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
12
  }, z.core.$strip>;
13
13
  declare const eodhdApisGetMutualFundsData: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  ticker: string;
15
15
  filter?: string | undefined;
16
- }, {
17
- General?: Record<string, unknown> | undefined;
18
- MutualFund?: Record<string, unknown> | undefined;
19
- raw_response?: Record<string, unknown> | undefined;
20
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
17
  //#endregion
22
18
  export { eodhdApisGetMutualFundsData };
23
19
  //# sourceMappingURL=get-mutual-funds-data.d.mts.map
@@ -9,9 +9,9 @@ const eodhdApisGetMutualFundsData = action("EODHD_APIS_GET_MUTUAL_FUNDS_DATA", {
9
9
  ticker: z.string().describe("Mutual fund ticker symbol in 'TICKER.EXCHANGE' format. Examples: 'VFIAX.US' (Vanguard 500 Index Fund Admiral), 'SWPPX.US' (Schwab S&P 500 Index Fund). You can also use ISIN/CUSIP identifiers (e.g., 'US8085098551').")
10
10
  }).describe("Request parameters for mutual funds fundamental data endpoint."),
11
11
  output: z.object({
12
- General: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.").optional()),
13
- MutualFund: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.").optional()),
14
- raw_response: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Raw response data when using filter parameter, or any additional fields returned by the API.").optional())
12
+ General: z.record(z.string(), z.unknown()).describe("General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.").nullable().optional(),
13
+ MutualFund: z.record(z.string(), z.unknown()).describe("Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.").nullable().optional(),
14
+ raw_response: z.record(z.string(), z.unknown()).describe("Raw response data when using filter parameter, or any additional fields returned by the API.").nullable().optional()
15
15
  }).describe("Response model for mutual funds fundamental data from EODHD API.\nContains comprehensive fund information including general info, asset allocation, and performance metrics.")
16
16
  });
17
17
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-mutual-funds-data.mjs","names":[],"sources":["../../src/actions/get-mutual-funds-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetMutualFundsDataInput = z.object({\n filter: z.string().describe(\"Optional filter to retrieve specific sections of the data. Examples: 'General', 'MutualFund', 'MutualFund::Asset_Allocation'. Leave empty to get full fundamental data.\").optional(),\n ticker: z.string().describe(\"Mutual fund ticker symbol in 'TICKER.EXCHANGE' format. Examples: 'VFIAX.US' (Vanguard 500 Index Fund Admiral), 'SWPPX.US' (Schwab S&P 500 Index Fund). You can also use ISIN/CUSIP identifiers (e.g., 'US8085098551').\"),\n}).describe(\"Request parameters for mutual funds fundamental data endpoint.\");\nexport const EodhdApisGetMutualFundsDataOutput = z.object({\n General: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.\").optional()),\n MutualFund: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.\").optional()),\n raw_response: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Raw response data when using filter parameter, or any additional fields returned by the API.\").optional()),\n}).describe(\"Response model for mutual funds fundamental data from EODHD API.\\nContains comprehensive fund information including general info, asset allocation, and performance metrics.\");\n\nexport const eodhdApisGetMutualFundsData = action(\"EODHD_APIS_GET_MUTUAL_FUNDS_DATA\", {\n slug: \"eodhd_apis-get-mutual-funds-data\",\n name: \"Get Mutual Funds Data\",\n description: \"Retrieves comprehensive fundamental data for mutual funds via EODHD API. Returns fund details including general information (name, family, inception date, summary), asset allocation (cash, stocks, bonds percentages), value/growth measures (P/E, price-to-book), sector weightings, and world regions exposure. Supports over 20,000 US mutual funds including equity, balanced, and bond-based funds. Use ticker format 'SYMBOL.US' (e.g., 'VFIAX.US', 'SWPPX.US') or ISIN/CUSIP identifiers.\",\n input: EodhdApisGetMutualFundsDataInput,\n output: EodhdApisGetMutualFundsDataOutput,\n});\n"],"mappings":";;AAcA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;EAChN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN;CACtP,CAAC,CAAC,CAAC,SAAS,gEAWH;CACP,QAX+C,EAAE,OAAO;EACxD,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC;EAC9S,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC;EAC9V,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC;CACnO,CAAC,CAAC,CAAC,SAAS,8KAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-mutual-funds-data.mjs","names":[],"sources":["../../src/actions/get-mutual-funds-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetMutualFundsDataInput = z.object({\n filter: z.string().describe(\"Optional filter to retrieve specific sections of the data. Examples: 'General', 'MutualFund', 'MutualFund::Asset_Allocation'. Leave empty to get full fundamental data.\").optional(),\n ticker: z.string().describe(\"Mutual fund ticker symbol in 'TICKER.EXCHANGE' format. Examples: 'VFIAX.US' (Vanguard 500 Index Fund Admiral), 'SWPPX.US' (Schwab S&P 500 Index Fund). You can also use ISIN/CUSIP identifiers (e.g., 'US8085098551').\"),\n}).describe(\"Request parameters for mutual funds fundamental data endpoint.\");\nexport const EodhdApisGetMutualFundsDataOutput = z.object({\n General: z.record(z.string(), z.unknown()).describe(\"General information about the mutual fund including name, code, type, exchange, currency, fund summary, fund family, fund category, fiscal year end, inception date, and more.\").nullable().optional(),\n MutualFund: z.record(z.string(), z.unknown()).describe(\"Detailed mutual fund data including asset allocation (cash, stocks, bonds, other percentages), value/growth measures (price ratios), sector weightings, world regions exposure, and top country allocations for bond funds.\").nullable().optional(),\n raw_response: z.record(z.string(), z.unknown()).describe(\"Raw response data when using filter parameter, or any additional fields returned by the API.\").nullable().optional(),\n}).describe(\"Response model for mutual funds fundamental data from EODHD API.\\nContains comprehensive fund information including general info, asset allocation, and performance metrics.\");\n\nexport const eodhdApisGetMutualFundsData = action(\"EODHD_APIS_GET_MUTUAL_FUNDS_DATA\", {\n slug: \"eodhd_apis-get-mutual-funds-data\",\n name: \"Get Mutual Funds Data\",\n description: \"Retrieves comprehensive fundamental data for mutual funds via EODHD API. Returns fund details including general information (name, family, inception date, summary), asset allocation (cash, stocks, bonds percentages), value/growth measures (P/E, price-to-book), sector weightings, and world regions exposure. Supports over 20,000 US mutual funds including equity, balanced, and bond-based funds. Use ticker format 'SYMBOL.US' (e.g., 'VFIAX.US', 'SWPPX.US') or ISIN/CUSIP identifiers.\",\n input: EodhdApisGetMutualFundsDataInput,\n output: EodhdApisGetMutualFundsDataOutput,\n});\n"],"mappings":";;AAcA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;EAChN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN;CACtP,CAAC,CAAC,CAAC,SAAS,gEAWH;CACP,QAX+C,EAAE,OAAO;EACxD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1P,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1S,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,8KAOF;AACV,CAAC"}
@@ -7,17 +7,17 @@ const EodhdApisGetRealTimeQuoteInput = zod.z.object({
7
7
  symbol: zod.z.string().describe("Primary ticker symbol with exchange code (e.g., 'AAPL.US' for Apple stock, 'EURUSD.FOREX' for EUR/USD forex pair, 'BTC-USD.CC' for Bitcoin). Format is 'TICKER.EXCHANGE'.")
8
8
  }).describe("Request parameters for EODHD_APIS_GET_REAL_TIME_QUOTE");
9
9
  const EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema = zod.z.object({
10
- low: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Lowest price during the current 1-minute period.").optional()),
10
+ low: zod.z.number().describe("Lowest price during the current 1-minute period.").nullable().optional(),
11
11
  code: zod.z.string().describe("Ticker symbol with exchange code (e.g., 'AAPL.US').").nullable(),
12
- high: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Highest price during the current 1-minute period.").optional()),
13
- open: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Opening price for the current 1-minute period.").optional()),
14
- close: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Current/closing price (latest traded price).").optional()),
15
- change: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Absolute price change from previous close.").optional()),
16
- volume: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Trading volume for the current 1-minute period.").optional()),
17
- change_p: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Percentage price change from previous close.").optional()),
12
+ high: zod.z.number().describe("Highest price during the current 1-minute period.").nullable().optional(),
13
+ open: zod.z.number().describe("Opening price for the current 1-minute period.").nullable().optional(),
14
+ close: zod.z.number().describe("Current/closing price (latest traded price).").nullable().optional(),
15
+ change: zod.z.number().describe("Absolute price change from previous close.").nullable().optional(),
16
+ volume: zod.z.number().int().describe("Trading volume for the current 1-minute period.").nullable().optional(),
17
+ change_p: zod.z.number().describe("Percentage price change from previous close.").nullable().optional(),
18
18
  gmtoffset: zod.z.number().int().describe("GMT offset in seconds for the exchange's timezone.").nullable(),
19
19
  timestamp: zod.z.number().int().describe("Unix timestamp of the last update (seconds since January 1, 1970 UTC).").nullable(),
20
- previousClose: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Previous day's closing price.").optional())
20
+ previousClose: zod.z.number().describe("Previous day's closing price.").nullable().optional()
21
21
  }).describe("Schema for a single real-time quote data point with OHLCV information.");
22
22
  const EodhdApisGetRealTimeQuoteOutput = zod.z.object({ data: zod.z.union([EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema, zod.z.array(EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema)]) }).describe("Response model for EODHD_APIS_GET_REAL_TIME_QUOTE.\nReturns real-time OHLCV data for single or multiple symbols.\nWhen querying a single symbol, returns a single object.\nWhen querying multiple symbols (via 's' parameter), returns a list of objects.");
23
23
  const eodhdApisGetRealTimeQuote = require_action.action("EODHD_APIS_GET_REAL_TIME_QUOTE", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-quote.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-quote.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeQuoteInput = z.object({\n s: z.string().describe(\"Additional ticker symbols comma-separated (max 15-20 recommended). Example: 'TSLA.US,MSFT.US,GOOGL.US'. When provided, returns data for multiple symbols in a single request.\").optional(),\n fmt: z.enum([\"json\", \"csv\"]).default(\"json\").describe(\"Output format for the API response\").optional(),\n symbol: z.string().describe(\"Primary ticker symbol with exchange code (e.g., 'AAPL.US' for Apple stock, 'EURUSD.FOREX' for EUR/USD forex pair, 'BTC-USD.CC' for Bitcoin). Format is 'TICKER.EXCHANGE'.\"),\n}).describe(\"Request parameters for EODHD_APIS_GET_REAL_TIME_QUOTE\");\nconst EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema = z.object({\n low: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Lowest price during the current 1-minute period.\").optional()),\n code: z.string().describe(\"Ticker symbol with exchange code (e.g., 'AAPL.US').\").nullable(),\n high: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Highest price during the current 1-minute period.\").optional()),\n open: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Opening price for the current 1-minute period.\").optional()),\n close: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Current/closing price (latest traded price).\").optional()),\n change: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Absolute price change from previous close.\").optional()),\n volume: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Trading volume for the current 1-minute period.\").optional()),\n change_p: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Percentage price change from previous close.\").optional()),\n gmtoffset: z.number().int().describe(\"GMT offset in seconds for the exchange's timezone.\").nullable(),\n timestamp: z.number().int().describe(\"Unix timestamp of the last update (seconds since January 1, 1970 UTC).\").nullable(),\n previousClose: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Previous day's closing price.\").optional()),\n}).describe(\"Schema for a single real-time quote data point with OHLCV information.\");\nexport const EodhdApisGetRealTimeQuoteOutput = z.object({\n data: z.union([EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema, z.array(EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema)]),\n}).describe(\"Response model for EODHD_APIS_GET_REAL_TIME_QUOTE.\\nReturns real-time OHLCV data for single or multiple symbols.\\nWhen querying a single symbol, returns a single object.\\nWhen querying multiple symbols (via 's' parameter), returns a list of objects.\");\n\nexport const eodhdApisGetRealTimeQuote = action(\"EODHD_APIS_GET_REAL_TIME_QUOTE\", {\n slug: \"eodhd_apis-get-real-time-quote\",\n name: \"Get Real-Time Quote\",\n description: \"Retrieves real-time (delayed 15-20 minutes for stocks, ~1 minute for forex) OHLCV data for stocks, forex, and cryptocurrencies. Returns latest 1-minute bar with open, high, low, close, volume, previous close, and price changes. Use this when you need current market prices and intraday data.\",\n input: EodhdApisGetRealTimeQuoteInput,\n output: EodhdApisGetRealTimeQuoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CACjN,KAAKA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;AACzM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACrJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAA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,MAAM,CAAC,mDAAmDA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,EAC/H,CAAC,CAAC,CAAC,SAAS,2PAA2P;AAEvQ,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-quote.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-quote.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeQuoteInput = z.object({\n s: z.string().describe(\"Additional ticker symbols comma-separated (max 15-20 recommended). Example: 'TSLA.US,MSFT.US,GOOGL.US'. When provided, returns data for multiple symbols in a single request.\").optional(),\n fmt: z.enum([\"json\", \"csv\"]).default(\"json\").describe(\"Output format for the API response\").optional(),\n symbol: z.string().describe(\"Primary ticker symbol with exchange code (e.g., 'AAPL.US' for Apple stock, 'EURUSD.FOREX' for EUR/USD forex pair, 'BTC-USD.CC' for Bitcoin). Format is 'TICKER.EXCHANGE'.\"),\n}).describe(\"Request parameters for EODHD_APIS_GET_REAL_TIME_QUOTE\");\nconst EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema = z.object({\n low: z.number().describe(\"Lowest price during the current 1-minute period.\").nullable().optional(),\n code: z.string().describe(\"Ticker symbol with exchange code (e.g., 'AAPL.US').\").nullable(),\n high: z.number().describe(\"Highest price during the current 1-minute period.\").nullable().optional(),\n open: z.number().describe(\"Opening price for the current 1-minute period.\").nullable().optional(),\n close: z.number().describe(\"Current/closing price (latest traded price).\").nullable().optional(),\n change: z.number().describe(\"Absolute price change from previous close.\").nullable().optional(),\n volume: z.number().int().describe(\"Trading volume for the current 1-minute period.\").nullable().optional(),\n change_p: z.number().describe(\"Percentage price change from previous close.\").nullable().optional(),\n gmtoffset: z.number().int().describe(\"GMT offset in seconds for the exchange's timezone.\").nullable(),\n timestamp: z.number().int().describe(\"Unix timestamp of the last update (seconds since January 1, 1970 UTC).\").nullable(),\n previousClose: z.number().describe(\"Previous day's closing price.\").nullable().optional(),\n}).describe(\"Schema for a single real-time quote data point with OHLCV information.\");\nexport const EodhdApisGetRealTimeQuoteOutput = z.object({\n data: z.union([EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema, z.array(EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema)]),\n}).describe(\"Response model for EODHD_APIS_GET_REAL_TIME_QUOTE.\\nReturns real-time OHLCV data for single or multiple symbols.\\nWhen querying a single symbol, returns a single object.\\nWhen querying multiple symbols (via 's' parameter), returns a list of objects.\");\n\nexport const eodhdApisGetRealTimeQuote = action(\"EODHD_APIS_GET_REAL_TIME_QUOTE\", {\n slug: \"eodhd_apis-get-real-time-quote\",\n name: \"Get Real-Time Quote\",\n description: \"Retrieves real-time (delayed 15-20 minutes for stocks, ~1 minute for forex) OHLCV data for stocks, forex, and cryptocurrencies. Returns latest 1-minute bar with open, high, low, close, volume, previous close, and price changes. Use this when you need current market prices and intraday data.\",\n input: EodhdApisGetRealTimeQuoteInput,\n output: EodhdApisGetRealTimeQuoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CACjN,KAAKA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;AACzM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,MAAMA,IAAAA,EAAE,OAAO,C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ACV,CAAC"}
@@ -11,62 +11,36 @@ declare const EodhdApisGetRealTimeQuoteInput: z.ZodObject<{
11
11
  }, z.core.$strip>;
12
12
  declare const EodhdApisGetRealTimeQuoteOutput: z.ZodObject<{
13
13
  data: z.ZodUnion<readonly [z.ZodObject<{
14
- low: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
+ low: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
15
  code: z.ZodNullable<z.ZodString>;
16
- high: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
17
- open: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- close: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
- change: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
- volume: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
21
- change_p: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
+ high: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ open: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ close: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ change: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ volume: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ change_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  gmtoffset: z.ZodNullable<z.ZodNumber>;
23
23
  timestamp: z.ZodNullable<z.ZodNumber>;
24
- previousClose: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
26
- low: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
26
+ low: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  code: z.ZodNullable<z.ZodString>;
28
- high: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
29
- open: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
30
- close: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
31
- change: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
32
- volume: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
33
- change_p: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
28
+ high: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ open: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ close: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ change: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ volume: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ change_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
34
  gmtoffset: z.ZodNullable<z.ZodNumber>;
35
35
  timestamp: z.ZodNullable<z.ZodNumber>;
36
- previousClose: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
36
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
37
  }, z.core.$strip>>]>;
38
38
  }, z.core.$strip>;
39
39
  declare const eodhdApisGetRealTimeQuote: import("@keystrokehq/action").WorkflowActionDefinition<{
40
40
  symbol: string;
41
41
  s?: string | undefined;
42
42
  fmt?: "json" | "csv" | undefined;
43
- }, {
44
- data: {
45
- code: string | null;
46
- gmtoffset: number | null;
47
- timestamp: number | null;
48
- low?: number | undefined;
49
- high?: number | undefined;
50
- open?: number | undefined;
51
- close?: number | undefined;
52
- change?: number | undefined;
53
- volume?: number | undefined;
54
- change_p?: number | undefined;
55
- previousClose?: number | undefined;
56
- } | {
57
- code: string | null;
58
- gmtoffset: number | null;
59
- timestamp: number | null;
60
- low?: number | undefined;
61
- high?: number | undefined;
62
- open?: number | undefined;
63
- close?: number | undefined;
64
- change?: number | undefined;
65
- volume?: number | undefined;
66
- change_p?: number | undefined;
67
- previousClose?: number | undefined;
68
- }[];
69
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
44
  //#endregion
71
45
  export { eodhdApisGetRealTimeQuote };
72
46
  //# sourceMappingURL=get-real-time-quote.d.cts.map