@keystrokehq/eodhd_apis 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) 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 +16 -16
  4. package/dist/actions/get-id-mapping.cjs.map +1 -1
  5. package/dist/actions/get-id-mapping.d.cts +18 -35
  6. package/dist/actions/get-id-mapping.d.mts +18 -35
  7. package/dist/actions/get-id-mapping.mjs +16 -16
  8. package/dist/actions/get-id-mapping.mjs.map +1 -1
  9. package/dist/actions/get-mutual-funds-data.cjs +4 -4
  10. package/dist/actions/get-mutual-funds-data.cjs.map +1 -1
  11. package/dist/actions/get-mutual-funds-data.d.cts +5 -9
  12. package/dist/actions/get-mutual-funds-data.d.mts +5 -9
  13. package/dist/actions/get-mutual-funds-data.mjs +4 -4
  14. package/dist/actions/get-mutual-funds-data.mjs.map +1 -1
  15. package/dist/actions/get-real-time-quote.cjs +10 -10
  16. package/dist/actions/get-real-time-quote.cjs.map +1 -1
  17. package/dist/actions/get-real-time-quote.d.cts +20 -46
  18. package/dist/actions/get-real-time-quote.d.mts +20 -46
  19. package/dist/actions/get-real-time-quote.mjs +10 -10
  20. package/dist/actions/get-real-time-quote.mjs.map +1 -1
  21. package/dist/actions/get-real-time-websocket-forex.cjs +2 -2
  22. package/dist/actions/get-real-time-websocket-forex.cjs.map +1 -1
  23. package/dist/actions/get-real-time-websocket-forex.d.cts +3 -10
  24. package/dist/actions/get-real-time-websocket-forex.d.mts +3 -10
  25. package/dist/actions/get-real-time-websocket-forex.mjs +2 -2
  26. package/dist/actions/get-real-time-websocket-forex.mjs.map +1 -1
  27. package/dist/actions/get-real-time-websocket-us-trade.cjs +2 -2
  28. package/dist/actions/get-real-time-websocket-us-trade.cjs.map +1 -1
  29. package/dist/actions/get-real-time-websocket-us-trade.d.cts +3 -9
  30. package/dist/actions/get-real-time-websocket-us-trade.d.mts +3 -9
  31. package/dist/actions/get-real-time-websocket-us-trade.mjs +2 -2
  32. package/dist/actions/get-real-time-websocket-us-trade.mjs.map +1 -1
  33. package/dist/actions/get-user-info.cjs +8 -8
  34. package/dist/actions/get-user-info.cjs.map +1 -1
  35. package/dist/actions/get-user-info.d.cts +9 -17
  36. package/dist/actions/get-user-info.d.mts +9 -17
  37. package/dist/actions/get-user-info.mjs +8 -8
  38. package/dist/actions/get-user-info.mjs.map +1 -1
  39. package/dist/actions/get-ust-yield-rates.cjs +8 -8
  40. package/dist/actions/get-ust-yield-rates.cjs.map +1 -1
  41. package/dist/actions/get-ust-yield-rates.d.cts +10 -19
  42. package/dist/actions/get-ust-yield-rates.d.mts +10 -19
  43. package/dist/actions/get-ust-yield-rates.mjs +8 -8
  44. package/dist/actions/get-ust-yield-rates.mjs.map +1 -1
  45. package/dist/actions/list-exchanges.cjs +3 -3
  46. package/dist/actions/list-exchanges.cjs.map +1 -1
  47. package/dist/actions/list-exchanges.d.cts +4 -12
  48. package/dist/actions/list-exchanges.d.mts +4 -12
  49. package/dist/actions/list-exchanges.mjs +3 -3
  50. package/dist/actions/list-exchanges.mjs.map +1 -1
  51. package/dist/actions/search-instruments.cjs +6 -6
  52. package/dist/actions/search-instruments.cjs.map +1 -1
  53. package/dist/actions/search-instruments.d.cts +7 -20
  54. package/dist/actions/search-instruments.d.mts +7 -20
  55. package/dist/actions/search-instruments.mjs +6 -6
  56. package/dist/actions/search-instruments.mjs.map +1 -1
  57. package/package.json +1 -1
@@ -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>>;
25
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
26
- low: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ }, z.core.$loose>, z.ZodArray<z.ZodObject<{
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>>;
37
- }, z.core.$strip>>]>;
38
- }, z.core.$strip>;
36
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ }, z.core.$loose>>]>;
38
+ }, z.core.$loose>;
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
@@ -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>>;
25
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
26
- low: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ }, z.core.$loose>, z.ZodArray<z.ZodObject<{
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>>;
37
- }, z.core.$strip>>]>;
38
- }, z.core.$strip>;
36
+ previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ }, z.core.$loose>>]>;
38
+ }, z.core.$loose>;
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.mts.map
@@ -7,24 +7,24 @@ const EodhdApisGetRealTimeQuoteInput = z.object({
7
7
  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'.")
8
8
  }).describe("Request parameters for EODHD_APIS_GET_REAL_TIME_QUOTE");
9
9
  const EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema = z.object({
10
- low: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Lowest price during the current 1-minute period.").optional()),
10
+ low: z.number().describe("Lowest price during the current 1-minute period.").nullable().optional(),
11
11
  code: z.string().describe("Ticker symbol with exchange code (e.g., 'AAPL.US').").nullable(),
12
- high: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Highest price during the current 1-minute period.").optional()),
13
- open: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Opening price for the current 1-minute period.").optional()),
14
- close: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Current/closing price (latest traded price).").optional()),
15
- change: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Absolute price change from previous close.").optional()),
16
- volume: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Trading volume for the current 1-minute period.").optional()),
17
- change_p: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Percentage price change from previous close.").optional()),
12
+ high: z.number().describe("Highest price during the current 1-minute period.").nullable().optional(),
13
+ open: z.number().describe("Opening price for the current 1-minute period.").nullable().optional(),
14
+ close: z.number().describe("Current/closing price (latest traded price).").nullable().optional(),
15
+ change: z.number().describe("Absolute price change from previous close.").nullable().optional(),
16
+ volume: z.number().int().describe("Trading volume for the current 1-minute period.").nullable().optional(),
17
+ change_p: z.number().describe("Percentage price change from previous close.").nullable().optional(),
18
18
  gmtoffset: z.number().int().describe("GMT offset in seconds for the exchange's timezone.").nullable(),
19
19
  timestamp: z.number().int().describe("Unix timestamp of the last update (seconds since January 1, 1970 UTC).").nullable(),
20
- previousClose: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Previous day's closing price.").optional())
21
- }).describe("Schema for a single real-time quote data point with OHLCV information.");
20
+ previousClose: z.number().describe("Previous day's closing price.").nullable().optional()
21
+ }).passthrough().describe("Schema for a single real-time quote data point with OHLCV information.");
22
22
  const eodhdApisGetRealTimeQuote = action("EODHD_APIS_GET_REAL_TIME_QUOTE", {
23
23
  slug: "eodhd_apis-get-real-time-quote",
24
24
  name: "Get Real-Time Quote",
25
25
  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.",
26
26
  input: EodhdApisGetRealTimeQuoteInput,
27
- output: z.object({ data: z.union([EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema, 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.")
27
+ output: z.object({ data: z.union([EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema, z.array(EodhdApisGetRealTimeQuote_RealTimeQuoteDataSchema)]) }).passthrough().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.")
28
28
  });
29
29
  //#endregion
30
30
  export { eodhdApisGetRealTimeQuote };
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-quote.mjs","names":[],"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,iCAAiC,EAAE,OAAO;CACrD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CACjN,KAAK,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;AACzM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oDAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACrJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CACvJ,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACpJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACnJ,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;CAClJ,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CAC7J,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACtJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACxH,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;AAC9I,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAKpF,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,EAAE,MAAM,CAAC,mDAAmD,EAAE,MAAM,iDAAiD,CAAC,CAAC,EAC/H,CAAC,CAAC,CAAC,SAAS,2PAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-quote.mjs","names":[],"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}).passthrough().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}).passthrough().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,iCAAiC,EAAE,OAAO;CACrD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CACjN,KAAK,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;AACzM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,oDAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACxH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAKlG,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,EAAE,MAAM,CAAC,mDAAmD,EAAE,MAAM,iDAAiD,CAAC,CAAC,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2PAOhB;AACV,CAAC"}
@@ -5,12 +5,12 @@ const EodhdApisGetRealTimeWebsocketForexInput = zod.z.object({ symbols: zod.z.ar
5
5
  const EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = zod.z.object({
6
6
  action: zod.z.string().describe("The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.").nullable(),
7
7
  symbols: zod.z.string().describe("Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')").nullable()
8
- }).describe("Subscription message to send over the WebSocket connection.");
8
+ }).passthrough().describe("Subscription message to send over the WebSocket connection.");
9
9
  const EodhdApisGetRealTimeWebsocketForexOutput = zod.z.object({
10
10
  endpoint: zod.z.string().describe("WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection.").nullable(),
11
11
  subscription: EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema.nullable(),
12
12
  usage_instructions: zod.z.string().describe("Instructions on how to use the WebSocket connection and what data format to expect.").nullable()
13
- }).describe("Response model containing WebSocket endpoint URL and subscription message.\nUse the endpoint to establish a WebSocket connection, then send the subscription\nmessage to start receiving real-time FOREX price updates.");
13
+ }).passthrough().describe("Response model containing WebSocket endpoint URL and subscription message.\nUse the endpoint to establish a WebSocket connection, then send the subscription\nmessage to start receiving real-time FOREX price updates.");
14
14
  const eodhdApisGetRealTimeWebsocketForex = require_action.action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX", {
15
15
  slug: "eodhd_apis-get-real-time-websocket-forex",
16
16
  name: "Get Real-Time FOREX WebSocket Stream",
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-forex.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketForexInput = z.object({\n symbols: z.array(z.string()).describe(\"List of FOREX currency pair symbols in concatenated format without separator (e.g., 'EURUSD', 'GBPUSD', 'USDJPY'). Each symbol should be 6 characters: 3-letter base currency followed by 3-letter quote currency. Maximum 50 symbols allowed.\"),\n}).describe(\"Request model for subscribing to real-time FOREX data via WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = z.object({\n action: z.string().describe(\"The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.\").nullable(),\n symbols: z.string().describe(\"Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')\").nullable(),\n}).describe(\"Subscription message to send over the WebSocket connection.\");\nexport const EodhdApisGetRealTimeWebsocketForexOutput = z.object({\n endpoint: z.string().describe(\"WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection.\").nullable(),\n subscription: EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema.nullable(),\n usage_instructions: z.string().describe(\"Instructions on how to use the WebSocket connection and what data format to expect.\").nullable(),\n}).describe(\"Response model containing WebSocket endpoint URL and subscription message.\\nUse the endpoint to establish a WebSocket connection, then send the subscription\\nmessage to start receiving real-time FOREX price updates.\");\n\nexport const eodhdApisGetRealTimeWebsocketForex = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX\", {\n slug: \"eodhd_apis-get-real-time-websocket-forex\",\n name: \"Get Real-Time FOREX WebSocket Stream\",\n description: \"Provides WebSocket connection details for real-time FOREX currency pair data from EODHD. Returns the WebSocket endpoint URL and subscription message needed to receive live bid/ask prices with ~50ms latency for forex pairs like EURUSD, GBPUSD, USDJPY. Response data format from the WebSocket includes: - s: symbol (e.g., 'EURUSD') - a: ask price - b: bid price - dc: daily change percentage - dd: daily difference - t: timestamp in epoch milliseconds Note: Maximum 50 symbols can be subscribed at once.\",\n input: EodhdApisGetRealTimeWebsocketForexInput,\n output: EodhdApisGetRealTimeWebsocketForexOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gPAAgP,EACxR,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACrI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACtK,cAAc,6DAA6D,SAAS;CACpF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,yNAAyN;AAErO,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-websocket-forex.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketForexInput = z.object({\n symbols: z.array(z.string()).describe(\"List of FOREX currency pair symbols in concatenated format without separator (e.g., 'EURUSD', 'GBPUSD', 'USDJPY'). Each symbol should be 6 characters: 3-letter base currency followed by 3-letter quote currency. Maximum 50 symbols allowed.\"),\n}).describe(\"Request model for subscribing to real-time FOREX data via WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = z.object({\n action: z.string().describe(\"The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.\").nullable(),\n symbols: z.string().describe(\"Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')\").nullable(),\n}).passthrough().describe(\"Subscription message to send over the WebSocket connection.\");\nexport const EodhdApisGetRealTimeWebsocketForexOutput = z.object({\n endpoint: z.string().describe(\"WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection.\").nullable(),\n subscription: EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema.nullable(),\n usage_instructions: z.string().describe(\"Instructions on how to use the WebSocket connection and what data format to expect.\").nullable(),\n}).passthrough().describe(\"Response model containing WebSocket endpoint URL and subscription message.\\nUse the endpoint to establish a WebSocket connection, then send the subscription\\nmessage to start receiving real-time FOREX price updates.\");\n\nexport const eodhdApisGetRealTimeWebsocketForex = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX\", {\n slug: \"eodhd_apis-get-real-time-websocket-forex\",\n name: \"Get Real-Time FOREX WebSocket Stream\",\n description: \"Provides WebSocket connection details for real-time FOREX currency pair data from EODHD. Returns the WebSocket endpoint URL and subscription message needed to receive live bid/ask prices with ~50ms latency for forex pairs like EURUSD, GBPUSD, USDJPY. Response data format from the WebSocket includes: - s: symbol (e.g., 'EURUSD') - a: ask price - b: bid price - dc: daily change percentage - dd: daily difference - t: timestamp in epoch milliseconds Note: Maximum 50 symbols can be subscribed at once.\",\n input: EodhdApisGetRealTimeWebsocketForexInput,\n output: EodhdApisGetRealTimeWebsocketForexOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gPAAgP,EACxR,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACrI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACtK,cAAc,6DAA6D,SAAS;CACpF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yNAAyN;AAEnP,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,19 +9,12 @@ declare const EodhdApisGetRealTimeWebsocketForexOutput: z.ZodObject<{
9
9
  subscription: z.ZodNullable<z.ZodObject<{
10
10
  action: z.ZodNullable<z.ZodString>;
11
11
  symbols: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
12
+ }, z.core.$loose>>;
13
13
  usage_instructions: z.ZodNullable<z.ZodString>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const eodhdApisGetRealTimeWebsocketForex: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  symbols: string[];
17
- }, {
18
- endpoint: string | null;
19
- subscription: {
20
- action: string | null;
21
- symbols: string | null;
22
- } | null;
23
- usage_instructions: string | null;
24
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
18
  //#endregion
26
19
  export { eodhdApisGetRealTimeWebsocketForex };
27
20
  //# sourceMappingURL=get-real-time-websocket-forex.d.cts.map
@@ -9,19 +9,12 @@ declare const EodhdApisGetRealTimeWebsocketForexOutput: z.ZodObject<{
9
9
  subscription: z.ZodNullable<z.ZodObject<{
10
10
  action: z.ZodNullable<z.ZodString>;
11
11
  symbols: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
12
+ }, z.core.$loose>>;
13
13
  usage_instructions: z.ZodNullable<z.ZodString>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const eodhdApisGetRealTimeWebsocketForex: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  symbols: string[];
17
- }, {
18
- endpoint: string | null;
19
- subscription: {
20
- action: string | null;
21
- symbols: string | null;
22
- } | null;
23
- usage_instructions: string | null;
24
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
18
  //#endregion
26
19
  export { eodhdApisGetRealTimeWebsocketForex };
27
20
  //# sourceMappingURL=get-real-time-websocket-forex.d.mts.map
@@ -5,7 +5,7 @@ const EodhdApisGetRealTimeWebsocketForexInput = z.object({ symbols: z.array(z.st
5
5
  const EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = z.object({
6
6
  action: z.string().describe("The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.").nullable(),
7
7
  symbols: z.string().describe("Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')").nullable()
8
- }).describe("Subscription message to send over the WebSocket connection.");
8
+ }).passthrough().describe("Subscription message to send over the WebSocket connection.");
9
9
  const eodhdApisGetRealTimeWebsocketForex = action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX", {
10
10
  slug: "eodhd_apis-get-real-time-websocket-forex",
11
11
  name: "Get Real-Time FOREX WebSocket Stream",
@@ -15,7 +15,7 @@ const eodhdApisGetRealTimeWebsocketForex = action("EODHD_APIS_GET_REAL_TIME_WEBS
15
15
  endpoint: z.string().describe("WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection.").nullable(),
16
16
  subscription: EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema.nullable(),
17
17
  usage_instructions: z.string().describe("Instructions on how to use the WebSocket connection and what data format to expect.").nullable()
18
- }).describe("Response model containing WebSocket endpoint URL and subscription message.\nUse the endpoint to establish a WebSocket connection, then send the subscription\nmessage to start receiving real-time FOREX price updates.")
18
+ }).passthrough().describe("Response model containing WebSocket endpoint URL and subscription message.\nUse the endpoint to establish a WebSocket connection, then send the subscription\nmessage to start receiving real-time FOREX price updates.")
19
19
  });
20
20
  //#endregion
21
21
  export { eodhdApisGetRealTimeWebsocketForex };
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-forex.mjs","names":[],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketForexInput = z.object({\n symbols: z.array(z.string()).describe(\"List of FOREX currency pair symbols in concatenated format without separator (e.g., 'EURUSD', 'GBPUSD', 'USDJPY'). Each symbol should be 6 characters: 3-letter base currency followed by 3-letter quote currency. Maximum 50 symbols allowed.\"),\n}).describe(\"Request model for subscribing to real-time FOREX data via WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = z.object({\n action: z.string().describe(\"The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.\").nullable(),\n symbols: z.string().describe(\"Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')\").nullable(),\n}).describe(\"Subscription message to send over the WebSocket connection.\");\nexport const EodhdApisGetRealTimeWebsocketForexOutput = z.object({\n endpoint: z.string().describe(\"WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection.\").nullable(),\n subscription: EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema.nullable(),\n usage_instructions: z.string().describe(\"Instructions on how to use the WebSocket connection and what data format to expect.\").nullable(),\n}).describe(\"Response model containing WebSocket endpoint URL and subscription message.\\nUse the endpoint to establish a WebSocket connection, then send the subscription\\nmessage to start receiving real-time FOREX price updates.\");\n\nexport const eodhdApisGetRealTimeWebsocketForex = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX\", {\n slug: \"eodhd_apis-get-real-time-websocket-forex\",\n name: \"Get Real-Time FOREX WebSocket Stream\",\n description: \"Provides WebSocket connection details for real-time FOREX currency pair data from EODHD. Returns the WebSocket endpoint URL and subscription message needed to receive live bid/ask prices with ~50ms latency for forex pairs like EURUSD, GBPUSD, USDJPY. Response data format from the WebSocket includes: - s: symbol (e.g., 'EURUSD') - a: ask price - b: bid price - dc: daily change percentage - dd: daily difference - t: timestamp in epoch milliseconds Note: Maximum 50 symbols can be subscribed at once.\",\n input: EodhdApisGetRealTimeWebsocketForexInput,\n output: EodhdApisGetRealTimeWebsocketForexOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gPAAgP,EACxR,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,+DAA+D,EAAE,OAAO;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACrI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAOzE,MAAa,qCAAqC,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;EACtK,cAAc,6DAA6D,SAAS;EACpF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,yNAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-websocket-forex.mjs","names":[],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketForexInput = z.object({\n symbols: z.array(z.string()).describe(\"List of FOREX currency pair symbols in concatenated format without separator (e.g., 'EURUSD', 'GBPUSD', 'USDJPY'). Each symbol should be 6 characters: 3-letter base currency followed by 3-letter quote currency. Maximum 50 symbols allowed.\"),\n}).describe(\"Request model for subscribing to real-time FOREX data via WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = z.object({\n action: z.string().describe(\"The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.\").nullable(),\n symbols: z.string().describe(\"Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')\").nullable(),\n}).passthrough().describe(\"Subscription message to send over the WebSocket connection.\");\nexport const EodhdApisGetRealTimeWebsocketForexOutput = z.object({\n endpoint: z.string().describe(\"WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection.\").nullable(),\n subscription: EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema.nullable(),\n usage_instructions: z.string().describe(\"Instructions on how to use the WebSocket connection and what data format to expect.\").nullable(),\n}).passthrough().describe(\"Response model containing WebSocket endpoint URL and subscription message.\\nUse the endpoint to establish a WebSocket connection, then send the subscription\\nmessage to start receiving real-time FOREX price updates.\");\n\nexport const eodhdApisGetRealTimeWebsocketForex = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX\", {\n slug: \"eodhd_apis-get-real-time-websocket-forex\",\n name: \"Get Real-Time FOREX WebSocket Stream\",\n description: \"Provides WebSocket connection details for real-time FOREX currency pair data from EODHD. Returns the WebSocket endpoint URL and subscription message needed to receive live bid/ask prices with ~50ms latency for forex pairs like EURUSD, GBPUSD, USDJPY. Response data format from the WebSocket includes: - s: symbol (e.g., 'EURUSD') - a: ask price - b: bid price - dc: daily change percentage - dd: daily difference - t: timestamp in epoch milliseconds Note: Maximum 50 symbols can be subscribed at once.\",\n input: EodhdApisGetRealTimeWebsocketForexInput,\n output: EodhdApisGetRealTimeWebsocketForexOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gPAAgP,EACxR,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,+DAA+D,EAAE,OAAO;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACrI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAOvF,MAAa,qCAAqC,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;EACtK,cAAc,6DAA6D,SAAS;EACpF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yNAOhB;AACV,CAAC"}
@@ -8,11 +8,11 @@ const EodhdApisGetRealTimeWebsocketUsTradeInput = zod.z.object({
8
8
  const EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = zod.z.object({
9
9
  action: zod.z.enum(["subscribe", "unsubscribe"]).describe("The action to perform: 'subscribe' or 'unsubscribe'.").nullable(),
10
10
  symbols: zod.z.string().describe("Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').").nullable()
11
- }).describe("Payload structure to send over WebSocket for subscription management.");
11
+ }).passthrough().describe("Payload structure to send over WebSocket for subscription management.");
12
12
  const EodhdApisGetRealTimeWebsocketUsTradeOutput = zod.z.object({
13
13
  url: zod.z.string().describe("WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.").nullable(),
14
14
  payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable()
15
- }).describe("Response containing WebSocket connection details and the payload to send for subscription management.\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.");
15
+ }).passthrough().describe("Response containing WebSocket connection details and the payload to send for subscription management.\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.");
16
16
  const eodhdApisGetRealTimeWebsocketUsTrade = require_action.action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE", {
17
17
  slug: "eodhd_apis-get-real-time-websocket-us-trade",
18
18
  name: "Get Real-time WebSocket US Trades",
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-us-trade.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"Action to perform: 'subscribe' to start receiving real-time trade updates, or 'unsubscribe' to stop receiving updates for the specified symbols.\"),\n symbols: z.array(z.string()).describe(\"List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.\"),\n}).describe(\"Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"The action to perform: 'subscribe' or 'unsubscribe'.\").nullable(),\n symbols: z.string().describe(\"Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').\").nullable(),\n}).describe(\"Payload structure to send over WebSocket for subscription management.\");\nexport const EodhdApisGetRealTimeWebsocketUsTradeOutput = z.object({\n url: z.string().describe(\"WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.\").nullable(),\n payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable(),\n}).describe(\"Response containing WebSocket connection details and the payload to send for subscription management.\\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.\");\n\nexport const eodhdApisGetRealTimeWebsocketUsTrade = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE\", {\n slug: \"eodhd_apis-get-real-time-websocket-us-trade\",\n name: \"Get Real-time WebSocket US Trades\",\n description: \"Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].\",\n input: EodhdApisGetRealTimeWebsocketUsTradeInput,\n output: EodhdApisGetRealTimeWebsocketUsTradeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACxM,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oKAAoK;AAC5M,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,8DAA8DA,IAAAA,EAAE,OAAO;CAC3E,QAAQA,IAAAA,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrJ,SAAS,4DAA4D,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,sMAAsM;AAElN,MAAa,uCAAuCC,eAAAA,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-websocket-us-trade.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"Action to perform: 'subscribe' to start receiving real-time trade updates, or 'unsubscribe' to stop receiving updates for the specified symbols.\"),\n symbols: z.array(z.string()).describe(\"List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.\"),\n}).describe(\"Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"The action to perform: 'subscribe' or 'unsubscribe'.\").nullable(),\n symbols: z.string().describe(\"Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').\").nullable(),\n}).passthrough().describe(\"Payload structure to send over WebSocket for subscription management.\");\nexport const EodhdApisGetRealTimeWebsocketUsTradeOutput = z.object({\n url: z.string().describe(\"WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.\").nullable(),\n payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable(),\n}).passthrough().describe(\"Response containing WebSocket connection details and the payload to send for subscription management.\\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.\");\n\nexport const eodhdApisGetRealTimeWebsocketUsTrade = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE\", {\n slug: \"eodhd_apis-get-real-time-websocket-us-trade\",\n name: \"Get Real-time WebSocket US Trades\",\n description: \"Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].\",\n input: EodhdApisGetRealTimeWebsocketUsTradeInput,\n output: EodhdApisGetRealTimeWebsocketUsTradeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACxM,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oKAAoK;AAC5M,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,8DAA8DA,IAAAA,EAAE,OAAO;CAC3E,QAAQA,IAAAA,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrJ,SAAS,4DAA4D,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sMAAsM;AAEhO,MAAa,uCAAuCC,eAAAA,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,18 +16,12 @@ declare const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodObject<{
16
16
  unsubscribe: "unsubscribe";
17
17
  }>>;
18
18
  symbols: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>>;
20
- }, z.core.$strip>;
19
+ }, z.core.$loose>>;
20
+ }, z.core.$loose>;
21
21
  declare const eodhdApisGetRealTimeWebsocketUsTrade: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  action: "subscribe" | "unsubscribe";
23
23
  symbols: string[];
24
- }, {
25
- url: string | null;
26
- payload: {
27
- action: "subscribe" | "unsubscribe" | null;
28
- symbols: string | null;
29
- } | null;
30
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
25
  //#endregion
32
26
  export { eodhdApisGetRealTimeWebsocketUsTrade };
33
27
  //# sourceMappingURL=get-real-time-websocket-us-trade.d.cts.map
@@ -16,18 +16,12 @@ declare const EodhdApisGetRealTimeWebsocketUsTradeOutput: z.ZodObject<{
16
16
  unsubscribe: "unsubscribe";
17
17
  }>>;
18
18
  symbols: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>>;
20
- }, z.core.$strip>;
19
+ }, z.core.$loose>>;
20
+ }, z.core.$loose>;
21
21
  declare const eodhdApisGetRealTimeWebsocketUsTrade: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  action: "subscribe" | "unsubscribe";
23
23
  symbols: string[];
24
- }, {
25
- url: string | null;
26
- payload: {
27
- action: "subscribe" | "unsubscribe" | null;
28
- symbols: string | null;
29
- } | null;
30
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
25
  //#endregion
32
26
  export { eodhdApisGetRealTimeWebsocketUsTrade };
33
27
  //# sourceMappingURL=get-real-time-websocket-us-trade.d.mts.map
@@ -8,7 +8,7 @@ const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({
8
8
  const EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({
9
9
  action: z.enum(["subscribe", "unsubscribe"]).describe("The action to perform: 'subscribe' or 'unsubscribe'.").nullable(),
10
10
  symbols: z.string().describe("Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').").nullable()
11
- }).describe("Payload structure to send over WebSocket for subscription management.");
11
+ }).passthrough().describe("Payload structure to send over WebSocket for subscription management.");
12
12
  const eodhdApisGetRealTimeWebsocketUsTrade = action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE", {
13
13
  slug: "eodhd_apis-get-real-time-websocket-us-trade",
14
14
  name: "Get Real-time WebSocket US Trades",
@@ -17,7 +17,7 @@ const eodhdApisGetRealTimeWebsocketUsTrade = action("EODHD_APIS_GET_REAL_TIME_WE
17
17
  output: z.object({
18
18
  url: z.string().describe("WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.").nullable(),
19
19
  payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable()
20
- }).describe("Response containing WebSocket connection details and the payload to send for subscription management.\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.")
20
+ }).passthrough().describe("Response containing WebSocket connection details and the payload to send for subscription management.\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.")
21
21
  });
22
22
  //#endregion
23
23
  export { eodhdApisGetRealTimeWebsocketUsTrade };
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-websocket-us-trade.mjs","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"Action to perform: 'subscribe' to start receiving real-time trade updates, or 'unsubscribe' to stop receiving updates for the specified symbols.\"),\n symbols: z.array(z.string()).describe(\"List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.\"),\n}).describe(\"Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"The action to perform: 'subscribe' or 'unsubscribe'.\").nullable(),\n symbols: z.string().describe(\"Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').\").nullable(),\n}).describe(\"Payload structure to send over WebSocket for subscription management.\");\nexport const EodhdApisGetRealTimeWebsocketUsTradeOutput = z.object({\n url: z.string().describe(\"WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.\").nullable(),\n payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable(),\n}).describe(\"Response containing WebSocket connection details and the payload to send for subscription management.\\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.\");\n\nexport const eodhdApisGetRealTimeWebsocketUsTrade = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE\", {\n slug: \"eodhd_apis-get-real-time-websocket-us-trade\",\n name: \"Get Real-time WebSocket US Trades\",\n description: \"Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].\",\n input: EodhdApisGetRealTimeWebsocketUsTradeInput,\n output: EodhdApisGetRealTimeWebsocketUsTradeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CAChE,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACxM,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oKAAoK;AAC5M,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,8DAA8D,EAAE,OAAO;CAC3E,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAMnF,MAAa,uCAAuC,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrJ,SAAS,4DAA4D,SAAS;CAChF,CAAC,CAAC,CAAC,SAAS,sMAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-websocket-us-trade.mjs","names":[],"sources":["../../src/actions/get-real-time-websocket-us-trade.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetRealTimeWebsocketUsTradeInput = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"Action to perform: 'subscribe' to start receiving real-time trade updates, or 'unsubscribe' to stop receiving updates for the specified symbols.\"),\n symbols: z.array(z.string()).describe(\"List of US stock ticker symbols (e.g., ['AAPL', 'TSLA', 'MSFT']). Maximum 50 symbols per connection. Demo API keys support limited tickers: AAPL, TSLA, VTI, AMZN.\"),\n}).describe(\"Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.\");\nconst EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = z.object({\n action: z.enum([\"subscribe\", \"unsubscribe\"]).describe(\"The action to perform: 'subscribe' or 'unsubscribe'.\").nullable(),\n symbols: z.string().describe(\"Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').\").nullable(),\n}).passthrough().describe(\"Payload structure to send over WebSocket for subscription management.\");\nexport const EodhdApisGetRealTimeWebsocketUsTradeOutput = z.object({\n url: z.string().describe(\"WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection.\").nullable(),\n payload: EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema.nullable(),\n}).passthrough().describe(\"Response containing WebSocket connection details and the payload to send for subscription management.\\nUse the 'url' to establish a WebSocket connection, then send the 'payload' as a JSON message.\");\n\nexport const eodhdApisGetRealTimeWebsocketUsTrade = action(\"EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE\", {\n slug: \"eodhd_apis-get-real-time-websocket-us-trade\",\n name: \"Get Real-time WebSocket US Trades\",\n description: \"Tool to retrieve real-time trade data for the US market via WebSocket. Use when live updates for specific US symbols are required. Example: subscribe to ['AAPL', 'GOOG'].\",\n input: EodhdApisGetRealTimeWebsocketUsTradeInput,\n output: EodhdApisGetRealTimeWebsocketUsTradeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CAChE,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACxM,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oKAAoK;AAC5M,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,8DAA8D,EAAE,OAAO;CAC3E,QAAQ,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAMjG,MAAa,uCAAuC,OAAO,+CAA+C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrJ,SAAS,4DAA4D,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sMAOhB;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/get-user-info.ts
4
4
  const EodhdApisGetUserInfoInput = zod.z.object({ fmt: zod.z.string().default("json").describe("Output format. Use 'json' for JSON response.").optional() }).describe("Request parameters for user account information endpoint.");
5
5
  const EodhdApisGetUserInfoOutput = zod.z.object({
6
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the account holder or organization.").optional()),
7
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address associated with the user account.").optional()),
8
- apiRequests: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of API requests made today or in the current billing period.").optional()),
9
- paymentMethod: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment method used for the subscription (e.g., credit card, PayPal).").optional()),
10
- dailyRateLimit: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Maximum number of API requests allowed per day based on the subscription plan.").optional()),
11
- apiRequestsDate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date or timestamp when the API requests counter was last updated or reset.").optional()),
12
- subscriptionType: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Current subscription plan type or tier (e.g., Free, Professional, Corporate).").optional())
13
- }).describe("Response model for user account information from EODHD API.\nContains account details, subscription plan, and API usage statistics.");
6
+ name: zod.z.string().describe("Name of the account holder or organization.").nullable().optional(),
7
+ email: zod.z.string().describe("Email address associated with the user account.").nullable().optional(),
8
+ apiRequests: zod.z.number().int().describe("Number of API requests made today or in the current billing period.").nullable().optional(),
9
+ paymentMethod: zod.z.string().describe("Payment method used for the subscription (e.g., credit card, PayPal).").nullable().optional(),
10
+ dailyRateLimit: zod.z.number().int().describe("Maximum number of API requests allowed per day based on the subscription plan.").nullable().optional(),
11
+ apiRequestsDate: zod.z.string().describe("Date or timestamp when the API requests counter was last updated or reset.").nullable().optional(),
12
+ subscriptionType: zod.z.string().describe("Current subscription plan type or tier (e.g., Free, Professional, Corporate).").nullable().optional()
13
+ }).passthrough().describe("Response model for user account information from EODHD API.\nContains account details, subscription plan, and API usage statistics.");
14
14
  const eodhdApisGetUserInfo = require_action.action("EODHD_APIS_GET_USER_INFO", {
15
15
  slug: "eodhd_apis-get-user-info",
16
16
  name: "Get User Info",
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-info.cjs","names":["z","action"],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUserInfoInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n}).describe(\"Request parameters for user account information endpoint.\");\nexport const EodhdApisGetUserInfoOutput = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the account holder or organization.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the user account.\").optional()),\n apiRequests: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of API requests made today or in the current billing period.\").optional()),\n paymentMethod: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment method used for the subscription (e.g., credit card, PayPal).\").optional()),\n dailyRateLimit: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Maximum number of API requests allowed per day based on the subscription plan.\").optional()),\n apiRequestsDate: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date or timestamp when the API requests counter was last updated or reset.\").optional()),\n subscriptionType: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Current subscription plan type or tier (e.g., Free, Professional, Corporate).\").optional()),\n}).describe(\"Response model for user account information from EODHD API.\\nContains account details, subscription plan, and API usage statistics.\");\n\nexport const eodhdApisGetUserInfo = action(\"EODHD_APIS_GET_USER_INFO\", {\n slug: \"eodhd_apis-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.\",\n input: EodhdApisGetUserInfoInput,\n output: EodhdApisGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CACjJ,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CACtJ,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC;CACtL,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC;CACpL,gBAAgBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC;CACpM,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC;CAC3L,kBAAkBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;AACjM,CAAC,CAAC,CAAC,SAAS,qIAAqI;AAEjJ,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-info.cjs","names":["z","action"],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUserInfoInput = z.object({\n fmt: z.string().default(\"json\").describe(\"Output format. Use 'json' for JSON response.\").optional(),\n}).describe(\"Request parameters for user account information endpoint.\");\nexport const EodhdApisGetUserInfoOutput = z.object({\n name: z.string().describe(\"Name of the account holder or organization.\").nullable().optional(),\n email: z.string().describe(\"Email address associated with the user account.\").nullable().optional(),\n apiRequests: z.number().int().describe(\"Number of API requests made today or in the current billing period.\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method used for the subscription (e.g., credit card, PayPal).\").nullable().optional(),\n dailyRateLimit: z.number().int().describe(\"Maximum number of API requests allowed per day based on the subscription plan.\").nullable().optional(),\n apiRequestsDate: z.string().describe(\"Date or timestamp when the API requests counter was last updated or reset.\").nullable().optional(),\n subscriptionType: z.string().describe(\"Current subscription plan type or tier (e.g., Free, Professional, Corporate).\").nullable().optional(),\n}).passthrough().describe(\"Response model for user account information from EODHD API.\\nContains account details, subscription plan, and API usage statistics.\");\n\nexport const eodhdApisGetUserInfo = action(\"EODHD_APIS_GET_USER_INFO\", {\n slug: \"eodhd_apis-get-user-info\",\n name: \"Get User Info\",\n description: \"Retrieve current user account information and API usage statistics from EODHD. Returns details including subscription type, daily rate limits, number of API requests made, email, name, and payment method. Use this to monitor API usage, check remaining quota, or verify account details.\",\n input: EodhdApisGetUserInfoInput,\n output: EodhdApisGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACpG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,25 +5,17 @@ declare const EodhdApisGetUserInfoInput: z.ZodObject<{
5
5
  fmt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
6
  }, z.core.$strip>;
7
7
  declare const EodhdApisGetUserInfoOutput: z.ZodObject<{
8
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- apiRequests: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
- paymentMethod: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- dailyRateLimit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
13
- apiRequestsDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- subscriptionType: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- }, z.core.$strip>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ apiRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ dailyRateLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ apiRequestsDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ subscriptionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>;
16
16
  declare const eodhdApisGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  fmt?: string | undefined;
18
- }, {
19
- name?: string | undefined;
20
- email?: string | undefined;
21
- apiRequests?: number | undefined;
22
- paymentMethod?: string | undefined;
23
- dailyRateLimit?: number | undefined;
24
- apiRequestsDate?: string | undefined;
25
- subscriptionType?: string | undefined;
26
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
19
  //#endregion
28
20
  export { eodhdApisGetUserInfo };
29
21
  //# sourceMappingURL=get-user-info.d.cts.map
@@ -5,25 +5,17 @@ declare const EodhdApisGetUserInfoInput: z.ZodObject<{
5
5
  fmt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
6
  }, z.core.$strip>;
7
7
  declare const EodhdApisGetUserInfoOutput: z.ZodObject<{
8
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- apiRequests: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
- paymentMethod: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- dailyRateLimit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
13
- apiRequestsDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- subscriptionType: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- }, z.core.$strip>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ apiRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ dailyRateLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ apiRequestsDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ subscriptionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>;
16
16
  declare const eodhdApisGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  fmt?: string | undefined;
18
- }, {
19
- name?: string | undefined;
20
- email?: string | undefined;
21
- apiRequests?: number | undefined;
22
- paymentMethod?: string | undefined;
23
- dailyRateLimit?: number | undefined;
24
- apiRequestsDate?: string | undefined;
25
- subscriptionType?: string | undefined;
26
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
19
  //#endregion
28
20
  export { eodhdApisGetUserInfo };
29
21
  //# sourceMappingURL=get-user-info.d.mts.map