@keystrokehq/eodhd_apis 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-eod-yahoo-style.cjs.map +1 -1
- package/dist/actions/get-eod-yahoo-style.d.cts +27 -3
- package/dist/actions/get-eod-yahoo-style.d.cts.map +1 -1
- package/dist/actions/get-eod-yahoo-style.d.mts +27 -3
- package/dist/actions/get-eod-yahoo-style.d.mts.map +1 -1
- package/dist/actions/get-eod-yahoo-style.mjs.map +1 -1
- package/dist/actions/get-id-mapping.cjs +13 -13
- package/dist/actions/get-id-mapping.cjs.map +1 -1
- package/dist/actions/get-id-mapping.d.cts +59 -3
- package/dist/actions/get-id-mapping.d.cts.map +1 -1
- package/dist/actions/get-id-mapping.d.mts +59 -3
- package/dist/actions/get-id-mapping.d.mts.map +1 -1
- package/dist/actions/get-id-mapping.mjs +13 -13
- package/dist/actions/get-id-mapping.mjs.map +1 -1
- package/dist/actions/get-macro-indicators.cjs.map +1 -1
- package/dist/actions/get-macro-indicators.d.cts +9 -3
- package/dist/actions/get-macro-indicators.d.cts.map +1 -1
- package/dist/actions/get-macro-indicators.d.mts +9 -3
- package/dist/actions/get-macro-indicators.d.mts.map +1 -1
- package/dist/actions/get-macro-indicators.mjs.map +1 -1
- package/dist/actions/get-mutual-funds-data.cjs +3 -3
- package/dist/actions/get-mutual-funds-data.cjs.map +1 -1
- package/dist/actions/get-mutual-funds-data.d.cts +17 -3
- package/dist/actions/get-mutual-funds-data.d.cts.map +1 -1
- package/dist/actions/get-mutual-funds-data.d.mts +17 -3
- package/dist/actions/get-mutual-funds-data.d.mts.map +1 -1
- package/dist/actions/get-mutual-funds-data.mjs +3 -3
- package/dist/actions/get-mutual-funds-data.mjs.map +1 -1
- package/dist/actions/get-real-time-quote.cjs +11 -11
- package/dist/actions/get-real-time-quote.cjs.map +1 -1
- package/dist/actions/get-real-time-quote.d.cts +66 -3
- package/dist/actions/get-real-time-quote.d.cts.map +1 -1
- package/dist/actions/get-real-time-quote.d.mts +66 -3
- package/dist/actions/get-real-time-quote.d.mts.map +1 -1
- package/dist/actions/get-real-time-quote.mjs +11 -11
- package/dist/actions/get-real-time-quote.mjs.map +1 -1
- package/dist/actions/get-real-time-websocket-forex.cjs +4 -4
- package/dist/actions/get-real-time-websocket-forex.cjs.map +1 -1
- package/dist/actions/get-real-time-websocket-forex.d.cts +21 -3
- package/dist/actions/get-real-time-websocket-forex.d.cts.map +1 -1
- package/dist/actions/get-real-time-websocket-forex.d.mts +21 -3
- package/dist/actions/get-real-time-websocket-forex.d.mts.map +1 -1
- package/dist/actions/get-real-time-websocket-forex.mjs +4 -4
- package/dist/actions/get-real-time-websocket-forex.mjs.map +1 -1
- package/dist/actions/get-real-time-websocket-us-trade.cjs +3 -3
- package/dist/actions/get-real-time-websocket-us-trade.cjs.map +1 -1
- package/dist/actions/get-real-time-websocket-us-trade.d.cts +27 -3
- package/dist/actions/get-real-time-websocket-us-trade.d.cts.map +1 -1
- package/dist/actions/get-real-time-websocket-us-trade.d.mts +27 -3
- package/dist/actions/get-real-time-websocket-us-trade.d.mts.map +1 -1
- package/dist/actions/get-real-time-websocket-us-trade.mjs +3 -3
- package/dist/actions/get-real-time-websocket-us-trade.mjs.map +1 -1
- package/dist/actions/get-user-info.cjs +7 -7
- package/dist/actions/get-user-info.cjs.map +1 -1
- package/dist/actions/get-user-info.d.cts +23 -3
- package/dist/actions/get-user-info.d.cts.map +1 -1
- package/dist/actions/get-user-info.d.mts +23 -3
- package/dist/actions/get-user-info.d.mts.map +1 -1
- package/dist/actions/get-user-info.mjs +7 -7
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/get-ust-yield-rates.cjs +6 -6
- package/dist/actions/get-ust-yield-rates.cjs.map +1 -1
- package/dist/actions/get-ust-yield-rates.d.cts +33 -3
- package/dist/actions/get-ust-yield-rates.d.cts.map +1 -1
- package/dist/actions/get-ust-yield-rates.d.mts +33 -3
- package/dist/actions/get-ust-yield-rates.d.mts.map +1 -1
- package/dist/actions/get-ust-yield-rates.mjs +6 -6
- package/dist/actions/get-ust-yield-rates.mjs.map +1 -1
- package/dist/actions/list-exchanges.cjs +5 -5
- package/dist/actions/list-exchanges.cjs.map +1 -1
- package/dist/actions/list-exchanges.d.cts +26 -3
- package/dist/actions/list-exchanges.d.cts.map +1 -1
- package/dist/actions/list-exchanges.d.mts +26 -3
- package/dist/actions/list-exchanges.d.mts.map +1 -1
- package/dist/actions/list-exchanges.mjs +5 -5
- package/dist/actions/list-exchanges.mjs.map +1 -1
- package/dist/actions/search-instruments.cjs +10 -10
- package/dist/actions/search-instruments.cjs.map +1 -1
- package/dist/actions/search-instruments.d.cts +39 -3
- package/dist/actions/search-instruments.d.cts.map +1 -1
- package/dist/actions/search-instruments.d.mts +39 -3
- package/dist/actions/search-instruments.d.mts.map +1 -1
- package/dist/actions/search-instruments.mjs +10 -10
- package/dist/actions/search-instruments.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-mutual-funds-data.d.ts
|
|
4
|
-
declare const EodhdApisGetMutualFundsDataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetMutualFundsDataInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
6
|
+
ticker: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
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>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const eodhdApisGetMutualFundsData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
ticker: string;
|
|
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]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { eodhdApisGetMutualFundsData };
|
|
9
23
|
//# sourceMappingURL=get-mutual-funds-data.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-mutual-funds-data.d.cts","names":[],"sources":["../../src/actions/get-mutual-funds-data.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"get-mutual-funds-data.d.cts","names":[],"sources":["../../src/actions/get-mutual-funds-data.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-mutual-funds-data.d.ts
|
|
4
|
-
declare const EodhdApisGetMutualFundsDataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetMutualFundsDataInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
6
|
+
ticker: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
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>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const eodhdApisGetMutualFundsData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
ticker: string;
|
|
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]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { eodhdApisGetMutualFundsData };
|
|
9
23
|
//# sourceMappingURL=get-mutual-funds-data.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-mutual-funds-data.d.mts","names":[],"sources":["../../src/actions/get-mutual-funds-data.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"get-mutual-funds-data.d.mts","names":[],"sources":["../../src/actions/get-mutual-funds-data.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -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.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.").
|
|
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.").
|
|
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.").
|
|
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())
|
|
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
|
|
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"}
|
|
@@ -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.number().describe("Lowest price during the current 1-minute period.").
|
|
11
|
-
code: zod.z.string().describe("Ticker symbol with exchange code (e.g., 'AAPL.US')."),
|
|
12
|
-
high: zod.z.number().describe("Highest price during the current 1-minute period.").
|
|
13
|
-
open: zod.z.number().describe("Opening price for the current 1-minute period.").
|
|
14
|
-
close: zod.z.number().describe("Current/closing price (latest traded price).").
|
|
15
|
-
change: zod.z.number().describe("Absolute price change from previous close.").
|
|
16
|
-
volume: zod.z.number().int().describe("Trading volume for the current 1-minute period.").
|
|
17
|
-
change_p: zod.z.number().describe("Percentage price change from previous close.").
|
|
18
|
-
gmtoffset: zod.z.number().int().describe("GMT offset in seconds for the exchange's timezone."),
|
|
19
|
-
timestamp: zod.z.number().int().describe("Unix timestamp of the last update (seconds since January 1, 1970 UTC)."),
|
|
20
|
-
previousClose: zod.z.number().describe("Previous day's closing price.").
|
|
10
|
+
low: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Lowest price during the current 1-minute period.").optional()),
|
|
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()),
|
|
18
|
+
gmtoffset: zod.z.number().int().describe("GMT offset in seconds for the exchange's timezone.").nullable(),
|
|
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())
|
|
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
|
|
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,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CACvJ,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACpJ,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACnJ,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;CAClJ,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CAC7J,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACtJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACxH,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;AAC9I,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,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,9 +1,72 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-real-time-quote.d.ts
|
|
4
|
-
declare const EodhdApisGetRealTimeQuoteInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetRealTimeQuoteInput: z.ZodObject<{
|
|
5
|
+
s: z.ZodOptional<z.ZodString>;
|
|
6
|
+
fmt: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
json: "json";
|
|
8
|
+
csv: "csv";
|
|
9
|
+
}>>>;
|
|
10
|
+
symbol: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const EodhdApisGetRealTimeQuoteOutput: z.ZodObject<{
|
|
13
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
low: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
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>>;
|
|
22
|
+
gmtoffset: z.ZodNullable<z.ZodNumber>;
|
|
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>>;
|
|
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>>;
|
|
34
|
+
gmtoffset: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
previousClose: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$strip>>]>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const eodhdApisGetRealTimeQuote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
symbol: string;
|
|
41
|
+
s?: string | undefined;
|
|
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]>;
|
|
7
70
|
//#endregion
|
|
8
71
|
export { eodhdApisGetRealTimeQuote };
|
|
9
72
|
//# sourceMappingURL=get-real-time-quote.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-real-time-quote.d.cts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-real-time-quote.d.cts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAkB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,72 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-real-time-quote.d.ts
|
|
4
|
-
declare const EodhdApisGetRealTimeQuoteInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetRealTimeQuoteInput: z.ZodObject<{
|
|
5
|
+
s: z.ZodOptional<z.ZodString>;
|
|
6
|
+
fmt: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
json: "json";
|
|
8
|
+
csv: "csv";
|
|
9
|
+
}>>>;
|
|
10
|
+
symbol: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const EodhdApisGetRealTimeQuoteOutput: z.ZodObject<{
|
|
13
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
low: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
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>>;
|
|
22
|
+
gmtoffset: z.ZodNullable<z.ZodNumber>;
|
|
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>>;
|
|
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>>;
|
|
34
|
+
gmtoffset: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
previousClose: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$strip>>]>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const eodhdApisGetRealTimeQuote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
symbol: string;
|
|
41
|
+
s?: string | undefined;
|
|
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]>;
|
|
7
70
|
//#endregion
|
|
8
71
|
export { eodhdApisGetRealTimeQuote };
|
|
9
72
|
//# sourceMappingURL=get-real-time-quote.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-real-time-quote.d.mts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-real-time-quote.d.mts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAkB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -7,17 +7,17 @@ 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.number().describe("Lowest price during the current 1-minute period.").
|
|
11
|
-
code: z.string().describe("Ticker symbol with exchange code (e.g., 'AAPL.US')."),
|
|
12
|
-
high: z.number().describe("Highest price during the current 1-minute period.").
|
|
13
|
-
open: z.number().describe("Opening price for the current 1-minute period.").
|
|
14
|
-
close: z.number().describe("Current/closing price (latest traded price).").
|
|
15
|
-
change: z.number().describe("Absolute price change from previous close.").
|
|
16
|
-
volume: z.number().int().describe("Trading volume for the current 1-minute period.").
|
|
17
|
-
change_p: z.number().describe("Percentage price change from previous close.").
|
|
18
|
-
gmtoffset: z.number().int().describe("GMT offset in seconds for the exchange's timezone."),
|
|
19
|
-
timestamp: z.number().int().describe("Unix timestamp of the last update (seconds since January 1, 1970 UTC)."),
|
|
20
|
-
previousClose: z.number().describe("Previous day's closing price.").
|
|
10
|
+
low: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Lowest price during the current 1-minute period.").optional()),
|
|
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()),
|
|
18
|
+
gmtoffset: z.number().int().describe("GMT offset in seconds for the exchange's timezone.").nullable(),
|
|
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
21
|
}).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",
|
|
@@ -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
|
|
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"}
|
|
@@ -3,13 +3,13 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-real-time-websocket-forex.ts
|
|
4
4
|
const EodhdApisGetRealTimeWebsocketForexInput = zod.z.object({ symbols: zod.z.array(zod.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.") }).describe("Request model for subscribing to real-time FOREX data via WebSocket.");
|
|
5
5
|
const EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = zod.z.object({
|
|
6
|
-
action: zod.z.string().describe("The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop."),
|
|
7
|
-
symbols: zod.z.string().describe("Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')")
|
|
6
|
+
action: zod.z.string().describe("The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.").nullable(),
|
|
7
|
+
symbols: zod.z.string().describe("Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')").nullable()
|
|
8
8
|
}).describe("Subscription message to send over the WebSocket connection.");
|
|
9
9
|
const EodhdApisGetRealTimeWebsocketForexOutput = zod.z.object({
|
|
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."),
|
|
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
|
-
usage_instructions: zod.z.string().describe("Instructions on how to use the WebSocket connection and what data format to expect.")
|
|
12
|
+
usage_instructions: zod.z.string().describe("Instructions on how to use the WebSocket connection and what data format to expect.").nullable()
|
|
13
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.");
|
|
14
14
|
const eodhdApisGetRealTimeWebsocketForex = require_action.action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_FOREX", {
|
|
15
15
|
slug: "eodhd_apis-get-real-time-websocket-forex",
|
|
@@ -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
|
|
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,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-real-time-websocket-forex.d.ts
|
|
4
|
-
declare const EodhdApisGetRealTimeWebsocketForexInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetRealTimeWebsocketForexInput: z.ZodObject<{
|
|
5
|
+
symbols: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const EodhdApisGetRealTimeWebsocketForexOutput: z.ZodObject<{
|
|
8
|
+
endpoint: z.ZodNullable<z.ZodString>;
|
|
9
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
action: z.ZodNullable<z.ZodString>;
|
|
11
|
+
symbols: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
usage_instructions: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const eodhdApisGetRealTimeWebsocketForex: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { eodhdApisGetRealTimeWebsocketForex };
|
|
9
27
|
//# sourceMappingURL=get-real-time-websocket-forex.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-real-time-websocket-forex.d.cts","names":[],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"get-real-time-websocket-forex.d.cts","names":[],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAOvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;cAMxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-real-time-websocket-forex.d.ts
|
|
4
|
-
declare const EodhdApisGetRealTimeWebsocketForexInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetRealTimeWebsocketForexInput: z.ZodObject<{
|
|
5
|
+
symbols: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const EodhdApisGetRealTimeWebsocketForexOutput: z.ZodObject<{
|
|
8
|
+
endpoint: z.ZodNullable<z.ZodString>;
|
|
9
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
action: z.ZodNullable<z.ZodString>;
|
|
11
|
+
symbols: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
usage_instructions: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const eodhdApisGetRealTimeWebsocketForex: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { eodhdApisGetRealTimeWebsocketForex };
|
|
9
27
|
//# sourceMappingURL=get-real-time-websocket-forex.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-real-time-websocket-forex.d.mts","names":[],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"get-real-time-websocket-forex.d.mts","names":[],"sources":["../../src/actions/get-real-time-websocket-forex.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAOvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;cAMxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-real-time-websocket-forex.ts
|
|
4
4
|
const EodhdApisGetRealTimeWebsocketForexInput = z.object({ 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.") }).describe("Request model for subscribing to real-time FOREX data via WebSocket.");
|
|
5
5
|
const EodhdApisGetRealTimeWebsocketForex_SubscriptionMessageSchema = z.object({
|
|
6
|
-
action: z.string().describe("The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop."),
|
|
7
|
-
symbols: z.string().describe("Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')")
|
|
6
|
+
action: z.string().describe("The WebSocket action to perform. 'subscribe' to start receiving data, 'unsubscribe' to stop.").nullable(),
|
|
7
|
+
symbols: z.string().describe("Comma-separated currency pair symbols to subscribe to (e.g., 'EURUSD,GBPUSD')").nullable()
|
|
8
8
|
}).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",
|
|
@@ -12,9 +12,9 @@ const eodhdApisGetRealTimeWebsocketForex = action("EODHD_APIS_GET_REAL_TIME_WEBS
|
|
|
12
12
|
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.",
|
|
13
13
|
input: EodhdApisGetRealTimeWebsocketForexInput,
|
|
14
14
|
output: z.object({
|
|
15
|
-
endpoint: z.string().describe("WebSocket endpoint URL (wss://) for real-time FOREX data stream. Connect to this URL to establish the WebSocket connection."),
|
|
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
|
-
usage_instructions: z.string().describe("Instructions on how to use the WebSocket connection and what data format to expect.")
|
|
17
|
+
usage_instructions: z.string().describe("Instructions on how to use the WebSocket connection and what data format to expect.").nullable()
|
|
18
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.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
@@ -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
|
|
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"}
|
|
@@ -6,11 +6,11 @@ const EodhdApisGetRealTimeWebsocketUsTradeInput = zod.z.object({
|
|
|
6
6
|
symbols: zod.z.array(zod.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.")
|
|
7
7
|
}).describe("Request parameters for subscribing or unsubscribing to the real-time US trades WebSocket.");
|
|
8
8
|
const EodhdApisGetRealTimeWebsocketUsTrade_WebSocketPayloadSchema = zod.z.object({
|
|
9
|
-
action: zod.z.enum(["subscribe", "unsubscribe"]).describe("The action to perform: 'subscribe' or 'unsubscribe'."),
|
|
10
|
-
symbols: zod.z.string().describe("Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').")
|
|
9
|
+
action: zod.z.enum(["subscribe", "unsubscribe"]).describe("The action to perform: 'subscribe' or 'unsubscribe'.").nullable(),
|
|
10
|
+
symbols: zod.z.string().describe("Comma-separated string of ticker symbols (e.g., 'AAPL,TSLA,MSFT').").nullable()
|
|
11
11
|
}).describe("Payload structure to send over WebSocket for subscription management.");
|
|
12
12
|
const EodhdApisGetRealTimeWebsocketUsTradeOutput = zod.z.object({
|
|
13
|
-
url: zod.z.string().describe("WebSocket endpoint URL for US trades real-time data. Connect to this URL to establish the WebSocket connection."),
|
|
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
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.");
|
|
16
16
|
const eodhdApisGetRealTimeWebsocketUsTrade = require_action.action("EODHD_APIS_GET_REAL_TIME_WEBSOCKET_US_TRADE", {
|
|
@@ -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
|
|
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"}
|