@keystrokehq/eodhd_apis 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.map +1 -1
- package/dist/actions/get-id-mapping.d.cts +42 -3
- package/dist/actions/get-id-mapping.d.cts.map +1 -1
- package/dist/actions/get-id-mapping.d.mts +42 -3
- package/dist/actions/get-id-mapping.d.mts.map +1 -1
- 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.map +1 -1
- package/dist/actions/get-mutual-funds-data.d.cts +13 -3
- package/dist/actions/get-mutual-funds-data.d.cts.map +1 -1
- package/dist/actions/get-mutual-funds-data.d.mts +13 -3
- package/dist/actions/get-mutual-funds-data.d.mts.map +1 -1
- package/dist/actions/get-mutual-funds-data.mjs.map +1 -1
- package/dist/actions/get-real-time-quote.cjs +3 -3
- package/dist/actions/get-real-time-quote.cjs.map +1 -1
- package/dist/actions/get-real-time-quote.d.cts +40 -3
- package/dist/actions/get-real-time-quote.d.cts.map +1 -1
- package/dist/actions/get-real-time-quote.d.mts +40 -3
- package/dist/actions/get-real-time-quote.d.mts.map +1 -1
- package/dist/actions/get-real-time-quote.mjs +3 -3
- 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 +14 -3
- package/dist/actions/get-real-time-websocket-forex.d.cts.map +1 -1
- package/dist/actions/get-real-time-websocket-forex.d.mts +14 -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 +21 -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 +21 -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.map +1 -1
- package/dist/actions/get-user-info.d.cts +15 -3
- package/dist/actions/get-user-info.d.cts.map +1 -1
- package/dist/actions/get-user-info.d.mts +15 -3
- package/dist/actions/get-user-info.d.mts.map +1 -1
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/get-ust-yield-rates.cjs.map +1 -1
- package/dist/actions/get-ust-yield-rates.d.cts +24 -3
- package/dist/actions/get-ust-yield-rates.d.cts.map +1 -1
- package/dist/actions/get-ust-yield-rates.d.mts +24 -3
- package/dist/actions/get-ust-yield-rates.d.mts.map +1 -1
- package/dist/actions/get-ust-yield-rates.mjs.map +1 -1
- package/dist/actions/list-exchanges.cjs +4 -4
- package/dist/actions/list-exchanges.cjs.map +1 -1
- package/dist/actions/list-exchanges.d.cts +18 -3
- package/dist/actions/list-exchanges.d.cts.map +1 -1
- package/dist/actions/list-exchanges.d.mts +18 -3
- package/dist/actions/list-exchanges.d.mts.map +1 -1
- package/dist/actions/list-exchanges.mjs +4 -4
- package/dist/actions/list-exchanges.mjs.map +1 -1
- package/dist/actions/search-instruments.cjs +6 -6
- package/dist/actions/search-instruments.cjs.map +1 -1
- package/dist/actions/search-instruments.d.cts +26 -3
- package/dist/actions/search-instruments.d.cts.map +1 -1
- package/dist/actions/search-instruments.d.mts +26 -3
- package/dist/actions/search-instruments.d.mts.map +1 -1
- package/dist/actions/search-instruments.mjs +6 -6
- 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,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-ust-yield-rates.d.ts
|
|
4
|
-
declare const EodhdApisGetUstYieldRatesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetUstYieldRatesInput: z.ZodObject<{
|
|
5
|
+
to: z.ZodOptional<z.ZodString>;
|
|
6
|
+
from: z.ZodOptional<z.ZodString>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
filter_year: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const EodhdApisGetUstYieldRatesOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
tenor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
17
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
to?: string | undefined;
|
|
23
|
+
from?: string | undefined;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
offset?: number | undefined;
|
|
26
|
+
filter_year?: number | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { eodhdApisGetUstYieldRates };
|
|
9
30
|
//# sourceMappingURL=get-ust-yield-rates.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ust-yield-rates.d.cts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-ust-yield-rates.d.cts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-ust-yield-rates.d.ts
|
|
4
|
-
declare const EodhdApisGetUstYieldRatesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisGetUstYieldRatesInput: z.ZodObject<{
|
|
5
|
+
to: z.ZodOptional<z.ZodString>;
|
|
6
|
+
from: z.ZodOptional<z.ZodString>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
filter_year: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const EodhdApisGetUstYieldRatesOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
tenor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
17
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const eodhdApisGetUstYieldRates: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
to?: string | undefined;
|
|
23
|
+
from?: string | undefined;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
offset?: number | undefined;
|
|
26
|
+
filter_year?: number | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { eodhdApisGetUstYieldRates };
|
|
9
30
|
//# sourceMappingURL=get-ust-yield-rates.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ust-yield-rates.d.mts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-ust-yield-rates.d.mts","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ust-yield-rates.mjs","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUstYieldRatesInput
|
|
1
|
+
{"version":3,"file":"get-ust-yield-rates.mjs","names":[],"sources":["../../src/actions/get-ust-yield-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisGetUstYieldRatesInput = z.object({\n to: z.string().describe(\"End date for filtering yield rates in YYYY-MM-DD format. Returns rates up to this date.\").optional(),\n from: z.string().describe(\"Start date for filtering yield rates in YYYY-MM-DD format. Returns rates from this date onwards.\").optional(),\n limit: z.number().int().describe(\"Maximum number of yield rate records to return. Use this to limit the response size when querying large date ranges.\").optional(),\n offset: z.number().int().describe(\"Number of records to skip before returning results. Use together with 'limit' for pagination through large result sets.\").optional(),\n filter_year: z.number().int().describe(\"Filter data by year (e.g., 2023, 2024). Valid range: 1900 to current year + 1. Defaults to current year if not specified.\").optional(),\n}).describe(\"Request parameters for US Treasury yield curve rates API.\");\nconst EodhdApisGetUstYieldRates_YieldRateRecordSchema = z.object({\n date: z.string().describe(\"Observation date in YYYY-MM-DD format.\").nullable().optional(),\n rate: z.number().describe(\"Par yield rate for the given tenor (percentage).\").nullable().optional(),\n tenor: z.string().describe(\"Tenor/maturity period (e.g., '1M' for 1 month, '6M' for 6 months, '1Y' for 1 year, '2Y', '5Y', '10Y', '30Y').\").nullable().optional(),\n}).describe(\"Schema for a single US Treasury yield curve rate record.\");\nconst EodhdApisGetUstYieldRates_MetaInfoSchema = z.object({\n total: z.number().int().describe(\"Total number of yield rate records available.\").nullable().optional(),\n}).describe(\"Metadata information for the response.\");\nexport const EodhdApisGetUstYieldRatesOutput = z.object({\n data: z.array(EodhdApisGetUstYieldRates_YieldRateRecordSchema).describe(\"List of yield rate records with par yields across various tenors/maturities.\").nullable().optional(),\n meta: EodhdApisGetUstYieldRates_MetaInfoSchema.nullable().optional(),\n}).describe(\"Response model for US Treasury yield curve rates API.\\nReturns historical yield curve data across all maturities.\");\n\nexport const eodhdApisGetUstYieldRates = action(\"EODHD_APIS_GET_UST_YIELD_RATES\", {\n slug: \"eodhd_apis-get-ust-yield-rates\",\n name: \"Get US Treasury Yield Rates\",\n description: \"Retrieve US Treasury yield curve rates from EODHD API. Returns historical par yield data across all maturities (1 month, 6 months, 1 year, 2 years, 5 years, 10 years, 30 years, etc.). Use this when you need Treasury yield curve data for financial analysis, economic research, or investment decisions.\",\n input: EodhdApisGetUstYieldRatesInput,\n output: EodhdApisGetUstYieldRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC5H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClK,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACtK,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,2CAA2C,EAAE,OAAO,EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5K,MAAM,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,SAAS,mHAOF;AACV,CAAC"}
|
|
@@ -3,10 +3,10 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-exchanges.ts
|
|
4
4
|
const EodhdApisListExchangesInput = zod.z.object({ fmt: zod.z.enum(["json", "csv"]).describe("Output format for the exchanges list response.").optional() }).describe("Request parameters for listing all supported stock exchanges.");
|
|
5
5
|
const EodhdApisListExchanges_ExchangeInfoSchema = zod.z.object({
|
|
6
|
-
Code: zod.z.string().describe("Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V')."),
|
|
7
|
-
Name: zod.z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange')."),
|
|
8
|
-
Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada')."),
|
|
9
|
-
Currency: zod.z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD')."),
|
|
6
|
+
Code: zod.z.string().describe("Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').").nullable(),
|
|
7
|
+
Name: zod.z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').").nullable(),
|
|
8
|
+
Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').").nullable(),
|
|
9
|
+
Currency: zod.z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').").nullable(),
|
|
10
10
|
OperatingMIC: zod.z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").nullable().optional()
|
|
11
11
|
}).describe("Schema for a single stock exchange record.");
|
|
12
12
|
const EodhdApisListExchangesOutput = zod.z.object({ exchanges: zod.z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe("List of all supported stock exchanges with their details.") }).describe("Response model for listing all supported stock exchanges.\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-exchanges.cjs","names":["z","action"],"sources":["../../src/actions/list-exchanges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisListExchangesInput
|
|
1
|
+
{"version":3,"file":"list-exchanges.cjs","names":["z","action"],"sources":["../../src/actions/list-exchanges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisListExchangesInput = z.object({\n fmt: z.enum([\"json\", \"csv\"]).describe(\"Output format for the exchanges list response.\").optional(),\n}).describe(\"Request parameters for listing all supported stock exchanges.\");\nconst EodhdApisListExchanges_ExchangeInfoSchema = z.object({\n Code: z.string().describe(\"Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').\").nullable(),\n Name: z.string().describe(\"Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').\").nullable(),\n Currency: z.string().describe(\"Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').\").nullable(),\n OperatingMIC: z.string().describe(\"Operating Market Identifier Code (MIC) for the exchange.\").nullable().optional(),\n}).describe(\"Schema for a single stock exchange record.\");\nexport const EodhdApisListExchangesOutput = z.object({\n exchanges: z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe(\"List of all supported stock exchanges with their details.\"),\n}).describe(\"Response model for listing all supported stock exchanges.\\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.\");\n\nexport const eodhdApisListExchanges = action(\"EODHD_APIS_LIST_EXCHANGES\", {\n slug: \"eodhd_apis-list-exchanges\",\n name: \"List Supported Exchanges\",\n description: \"Retrieve a list of all supported stock exchanges from EODHD API. Returns exchange codes, names, countries, and currencies for 70+ global exchanges. Use this when you need to discover available exchanges or verify exchange codes for ticker symbols.\",\n input: EodhdApisListExchangesInput,\n output: EodhdApisListExchangesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,KAAKA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,WAAWA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,SAAS,0JAA0J;AAEtK,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-exchanges.d.ts
|
|
4
|
-
declare const EodhdApisListExchangesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisListExchangesInput: z.ZodObject<{
|
|
5
|
+
fmt: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
json: "json";
|
|
7
|
+
csv: "csv";
|
|
8
|
+
}>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const EodhdApisListExchangesOutput: z.ZodObject<{
|
|
11
|
+
exchanges: z.ZodArray<z.ZodObject<{
|
|
12
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
13
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
Country: z.ZodNullable<z.ZodString>;
|
|
15
|
+
Currency: z.ZodNullable<z.ZodString>;
|
|
16
|
+
OperatingMIC: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
fmt?: "json" | "csv" | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { eodhdApisListExchanges };
|
|
9
24
|
//# sourceMappingURL=list-exchanges.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-exchanges.d.cts","names":[],"sources":["../../src/actions/list-exchanges.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"list-exchanges.d.cts","names":[],"sources":["../../src/actions/list-exchanges.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-exchanges.d.ts
|
|
4
|
-
declare const EodhdApisListExchangesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisListExchangesInput: z.ZodObject<{
|
|
5
|
+
fmt: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
json: "json";
|
|
7
|
+
csv: "csv";
|
|
8
|
+
}>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const EodhdApisListExchangesOutput: z.ZodObject<{
|
|
11
|
+
exchanges: z.ZodArray<z.ZodObject<{
|
|
12
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
13
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
Country: z.ZodNullable<z.ZodString>;
|
|
15
|
+
Currency: z.ZodNullable<z.ZodString>;
|
|
16
|
+
OperatingMIC: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
fmt?: "json" | "csv" | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { eodhdApisListExchanges };
|
|
9
24
|
//# sourceMappingURL=list-exchanges.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-exchanges.d.mts","names":[],"sources":["../../src/actions/list-exchanges.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"list-exchanges.d.mts","names":[],"sources":["../../src/actions/list-exchanges.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,10 +3,10 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-exchanges.ts
|
|
4
4
|
const EodhdApisListExchangesInput = z.object({ fmt: z.enum(["json", "csv"]).describe("Output format for the exchanges list response.").optional() }).describe("Request parameters for listing all supported stock exchanges.");
|
|
5
5
|
const EodhdApisListExchanges_ExchangeInfoSchema = z.object({
|
|
6
|
-
Code: z.string().describe("Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V')."),
|
|
7
|
-
Name: z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange')."),
|
|
8
|
-
Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada')."),
|
|
9
|
-
Currency: z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD')."),
|
|
6
|
+
Code: z.string().describe("Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').").nullable(),
|
|
7
|
+
Name: z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').").nullable(),
|
|
8
|
+
Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').").nullable(),
|
|
9
|
+
Currency: z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').").nullable(),
|
|
10
10
|
OperatingMIC: z.string().describe("Operating Market Identifier Code (MIC) for the exchange.").nullable().optional()
|
|
11
11
|
}).describe("Schema for a single stock exchange record.");
|
|
12
12
|
const eodhdApisListExchanges = action("EODHD_APIS_LIST_EXCHANGES", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-exchanges.mjs","names":[],"sources":["../../src/actions/list-exchanges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisListExchangesInput
|
|
1
|
+
{"version":3,"file":"list-exchanges.mjs","names":[],"sources":["../../src/actions/list-exchanges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisListExchangesInput = z.object({\n fmt: z.enum([\"json\", \"csv\"]).describe(\"Output format for the exchanges list response.\").optional(),\n}).describe(\"Request parameters for listing all supported stock exchanges.\");\nconst EodhdApisListExchanges_ExchangeInfoSchema = z.object({\n Code: z.string().describe(\"Exchange code identifier (e.g., 'US', 'LSE', 'TO', 'V').\").nullable(),\n Name: z.string().describe(\"Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').\").nullable(),\n Currency: z.string().describe(\"Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').\").nullable(),\n OperatingMIC: z.string().describe(\"Operating Market Identifier Code (MIC) for the exchange.\").nullable().optional(),\n}).describe(\"Schema for a single stock exchange record.\");\nexport const EodhdApisListExchangesOutput = z.object({\n exchanges: z.array(EodhdApisListExchanges_ExchangeInfoSchema).describe(\"List of all supported stock exchanges with their details.\"),\n}).describe(\"Response model for listing all supported stock exchanges.\\nReturns a list of 70+ exchanges worldwide with their codes, names, countries, and currencies.\");\n\nexport const eodhdApisListExchanges = action(\"EODHD_APIS_LIST_EXCHANGES\", {\n slug: \"eodhd_apis-list-exchanges\",\n name: \"List Supported Exchanges\",\n description: \"Retrieve a list of all supported stock exchanges from EODHD API. Returns exchange codes, names, countries, and currencies for 70+ global exchanges. Use this when you need to discover available exchanges or verify exchange codes for ticker symbols.\",\n input: EodhdApisListExchangesInput,\n output: EodhdApisListExchangesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,KAAK,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,WAAW,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2DAA2D,EACpI,CAAC,CAAC,CAAC,SAAS,0JAOF;AACV,CAAC"}
|
|
@@ -8,13 +8,13 @@ const EodhdApisSearchInstrumentsInput = zod.z.object({
|
|
|
8
8
|
exchange: zod.z.string().describe("Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.").optional()
|
|
9
9
|
}).describe("Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.");
|
|
10
10
|
const EodhdApisSearchInstruments_InstrumentSearchResultSchema = zod.z.object({
|
|
11
|
-
Code: zod.z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT')."),
|
|
11
|
+
Code: zod.z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').").nullable(),
|
|
12
12
|
ISIN: zod.z.string().describe("International Securities Identification Number. May be null if not available.").nullable().optional(),
|
|
13
|
-
Name: zod.z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation')."),
|
|
14
|
-
Type: zod.z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund')."),
|
|
15
|
-
Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK')."),
|
|
16
|
-
Currency: zod.z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR')."),
|
|
17
|
-
Exchange: zod.z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE')."),
|
|
13
|
+
Name: zod.z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').").nullable(),
|
|
14
|
+
Type: zod.z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').").nullable(),
|
|
15
|
+
Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK').").nullable(),
|
|
16
|
+
Currency: zod.z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR').").nullable(),
|
|
17
|
+
Exchange: zod.z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE').").nullable(),
|
|
18
18
|
isPrimary: zod.z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").nullable().optional(),
|
|
19
19
|
previousClose: zod.z.number().describe("Last closing price of the instrument. May be null if not available.").nullable().optional(),
|
|
20
20
|
previousCloseDate: zod.z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-instruments.cjs","names":["z","action"],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput
|
|
1
|
+
{"version":3,"file":"search-instruments.cjs","names":["z","action"],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput = z.object({\n type: z.string().describe(\"Filter results by instrument type. Available types: 'stock', 'fund', 'etf', 'bond', 'index'. Leave empty to search all types.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. If not specified, API returns all matching results.\").optional(),\n query: z.string().describe(\"Search query to find instruments by ticker symbol, company name, or ISIN. Examples: 'AAPL' (Apple ticker), 'Apple Inc' (company name), 'US0378331005' (ISIN).\"),\n exchange: z.string().describe(\"Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.\").optional(),\n}).describe(\"Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.\");\nconst EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({\n Code: z.string().describe(\"Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').\").nullable(),\n ISIN: z.string().describe(\"International Securities Identification Number. May be null if not available.\").nullable().optional(),\n Name: z.string().describe(\"Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').\").nullable(),\n Type: z.string().describe(\"Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK').\").nullable(),\n Currency: z.string().describe(\"Trading currency (e.g., 'USD', 'GBP', 'EUR').\").nullable(),\n Exchange: z.string().describe(\"Exchange code where the instrument is traded (e.g., 'US', 'LSE').\").nullable(),\n isPrimary: z.boolean().describe(\"Whether this is the primary exchange listing for the instrument. May be null if not available.\").nullable().optional(),\n previousClose: z.number().describe(\"Last closing price of the instrument. May be null if not available.\").nullable().optional(),\n previousCloseDate: z.string().describe(\"Date of the last closing price in YYYY-MM-DD format. May be null if not available.\").nullable().optional(),\n}).describe(\"Schema for a single instrument search result.\");\nexport const EodhdApisSearchInstrumentsOutput = z.object({\n results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe(\"List of instruments matching the search query.\"),\n}).describe(\"Response model for search instruments API returning a list of matching instruments.\");\n\nexport const eodhdApisSearchInstruments = action(\"EODHD_APIS_SEARCH_INSTRUMENTS\", {\n slug: \"eodhd_apis-search-instruments\",\n name: \"Search Instruments\",\n description: \"Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.\",\n input: EodhdApisSearchInstrumentsInput,\n output: EodhdApisSearchInstrumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC1L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACrI,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-instruments.d.ts
|
|
4
|
-
declare const EodhdApisSearchInstrumentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisSearchInstrumentsInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
query: z.ZodString;
|
|
8
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const EodhdApisSearchInstrumentsOutput: z.ZodObject<{
|
|
11
|
+
results: z.ZodArray<z.ZodObject<{
|
|
12
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
13
|
+
ISIN: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
Type: z.ZodNullable<z.ZodString>;
|
|
16
|
+
Country: z.ZodNullable<z.ZodString>;
|
|
17
|
+
Currency: z.ZodNullable<z.ZodString>;
|
|
18
|
+
Exchange: z.ZodNullable<z.ZodString>;
|
|
19
|
+
isPrimary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
previousCloseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const eodhdApisSearchInstruments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
query: string;
|
|
26
|
+
type?: string | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
|
+
exchange?: string | undefined;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { eodhdApisSearchInstruments };
|
|
9
32
|
//# sourceMappingURL=search-instruments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-instruments.d.cts","names":[],"sources":["../../src/actions/search-instruments.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"search-instruments.d.cts","names":[],"sources":["../../src/actions/search-instruments.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAkB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-instruments.d.ts
|
|
4
|
-
declare const EodhdApisSearchInstrumentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const EodhdApisSearchInstrumentsInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
query: z.ZodString;
|
|
8
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const EodhdApisSearchInstrumentsOutput: z.ZodObject<{
|
|
11
|
+
results: z.ZodArray<z.ZodObject<{
|
|
12
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
13
|
+
ISIN: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
Type: z.ZodNullable<z.ZodString>;
|
|
16
|
+
Country: z.ZodNullable<z.ZodString>;
|
|
17
|
+
Currency: z.ZodNullable<z.ZodString>;
|
|
18
|
+
Exchange: z.ZodNullable<z.ZodString>;
|
|
19
|
+
isPrimary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
previousClose: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
previousCloseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const eodhdApisSearchInstruments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
query: string;
|
|
26
|
+
type?: string | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
|
+
exchange?: string | undefined;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { eodhdApisSearchInstruments };
|
|
9
32
|
//# sourceMappingURL=search-instruments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-instruments.d.mts","names":[],"sources":["../../src/actions/search-instruments.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"search-instruments.d.mts","names":[],"sources":["../../src/actions/search-instruments.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAkB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -8,13 +8,13 @@ const EodhdApisSearchInstrumentsInput = z.object({
|
|
|
8
8
|
exchange: z.string().describe("Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.").optional()
|
|
9
9
|
}).describe("Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.");
|
|
10
10
|
const EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({
|
|
11
|
-
Code: z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT')."),
|
|
11
|
+
Code: z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').").nullable(),
|
|
12
12
|
ISIN: z.string().describe("International Securities Identification Number. May be null if not available.").nullable().optional(),
|
|
13
|
-
Name: z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation')."),
|
|
14
|
-
Type: z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund')."),
|
|
15
|
-
Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK')."),
|
|
16
|
-
Currency: z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR')."),
|
|
17
|
-
Exchange: z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE')."),
|
|
13
|
+
Name: z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').").nullable(),
|
|
14
|
+
Type: z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').").nullable(),
|
|
15
|
+
Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK').").nullable(),
|
|
16
|
+
Currency: z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR').").nullable(),
|
|
17
|
+
Exchange: z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE').").nullable(),
|
|
18
18
|
isPrimary: z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").nullable().optional(),
|
|
19
19
|
previousClose: z.number().describe("Last closing price of the instrument. May be null if not available.").nullable().optional(),
|
|
20
20
|
previousCloseDate: z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-instruments.mjs","names":[],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput
|
|
1
|
+
{"version":3,"file":"search-instruments.mjs","names":[],"sources":["../../src/actions/search-instruments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const EodhdApisSearchInstrumentsInput = z.object({\n type: z.string().describe(\"Filter results by instrument type. Available types: 'stock', 'fund', 'etf', 'bond', 'index'. Leave empty to search all types.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. If not specified, API returns all matching results.\").optional(),\n query: z.string().describe(\"Search query to find instruments by ticker symbol, company name, or ISIN. Examples: 'AAPL' (Apple ticker), 'Apple Inc' (company name), 'US0378331005' (ISIN).\"),\n exchange: z.string().describe(\"Filter results by exchange code. Examples: 'US' (United States), 'LSE' (London Stock Exchange), 'TO' (Toronto). Leave empty to search all exchanges.\").optional(),\n}).describe(\"Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.\");\nconst EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({\n Code: z.string().describe(\"Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').\").nullable(),\n ISIN: z.string().describe(\"International Securities Identification Number. May be null if not available.\").nullable().optional(),\n Name: z.string().describe(\"Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').\").nullable(),\n Type: z.string().describe(\"Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').\").nullable(),\n Country: z.string().describe(\"Country where the exchange is located (e.g., 'USA', 'UK').\").nullable(),\n Currency: z.string().describe(\"Trading currency (e.g., 'USD', 'GBP', 'EUR').\").nullable(),\n Exchange: z.string().describe(\"Exchange code where the instrument is traded (e.g., 'US', 'LSE').\").nullable(),\n isPrimary: z.boolean().describe(\"Whether this is the primary exchange listing for the instrument. May be null if not available.\").nullable().optional(),\n previousClose: z.number().describe(\"Last closing price of the instrument. May be null if not available.\").nullable().optional(),\n previousCloseDate: z.string().describe(\"Date of the last closing price in YYYY-MM-DD format. May be null if not available.\").nullable().optional(),\n}).describe(\"Schema for a single instrument search result.\");\nexport const EodhdApisSearchInstrumentsOutput = z.object({\n results: z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe(\"List of instruments matching the search query.\"),\n}).describe(\"Response model for search instruments API returning a list of matching instruments.\");\n\nexport const eodhdApisSearchInstruments = action(\"EODHD_APIS_SEARCH_INSTRUMENTS\", {\n slug: \"eodhd_apis-search-instruments\",\n name: \"Search Instruments\",\n description: \"Search for stocks, ETFs, mutual funds, bonds, and indices by ticker symbol, company name, or ISIN. Use when you need to find instruments by name or identifier, discover available tickers, or look up securities across exchanges. The API searches among active tickers only.\",\n input: EodhdApisSearchInstrumentsInput,\n output: EodhdApisSearchInstrumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC1L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAK3D,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACrI,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const eodhdApisCatalog = {
|
|
|
7
7
|
"category": "Analytics",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/eodhd_apis",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "generic_token": {
|
|
12
|
+
"label": "EODHD API Token",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The API token provided upon registration, used to authenticate API requests."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.eodhdApisCatalog = eodhdApisCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const eodhdApisCatalog = {\n \"slug\": \"eodhd_apis\",\n \"name\": \"EODHD APIs\",\n \"description\": \"EODHD APIs provide comprehensive financial data, including historical stock market data, live stock prices, fundamental data, and more, accessible via REST and WebSocket APIs.\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/eodhd_apis\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const eodhdApisCatalog = {\n \"slug\": \"eodhd_apis\",\n \"name\": \"EODHD APIs\",\n \"description\": \"EODHD APIs provide comprehensive financial data, including historical stock market data, live stock prices, fundamental data, and more, accessible via REST and WebSocket APIs.\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/eodhd_apis\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_token\": {\n \"label\": \"EODHD API Token\",\n \"secret\": true,\n \"description\": \"The API token provided upon registration, used to authenticate API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,iBAAiB;EACf,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const eodhdApisCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/eodhd_apis";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly generic_token: {
|
|
13
|
+
readonly label: "EODHD API Token";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The API token provided upon registration, used to authenticate API requests.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { eodhdApisCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const eodhdApisCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/eodhd_apis";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly generic_token: {
|
|
13
|
+
readonly label: "EODHD API Token";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The API token provided upon registration, used to authenticate API requests.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { eodhdApisCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const eodhdApisCatalog = {
|
|
|
7
7
|
"category": "Analytics",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/eodhd_apis",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "generic_token": {
|
|
12
|
+
"label": "EODHD API Token",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The API token provided upon registration, used to authenticate API requests."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { eodhdApisCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const eodhdApisCatalog = {\n \"slug\": \"eodhd_apis\",\n \"name\": \"EODHD APIs\",\n \"description\": \"EODHD APIs provide comprehensive financial data, including historical stock market data, live stock prices, fundamental data, and more, accessible via REST and WebSocket APIs.\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/eodhd_apis\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const eodhdApisCatalog = {\n \"slug\": \"eodhd_apis\",\n \"name\": \"EODHD APIs\",\n \"description\": \"EODHD APIs provide comprehensive financial data, including historical stock market data, live stock prices, fundamental data, and more, accessible via REST and WebSocket APIs.\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/eodhd_apis\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_token\": {\n \"label\": \"EODHD API Token\",\n \"secret\": true,\n \"description\": \"The API token provided upon registration, used to authenticate API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,iBAAiB;EACf,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/eodhd_apis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|