@keystrokehq/eodhd_apis 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.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 +14 -31
- package/dist/actions/get-id-mapping.d.mts +14 -31
- package/dist/actions/get-id-mapping.mjs +13 -13
- package/dist/actions/get-id-mapping.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 +4 -8
- package/dist/actions/get-mutual-funds-data.d.mts +4 -8
- 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 +8 -8
- package/dist/actions/get-real-time-quote.cjs.map +1 -1
- package/dist/actions/get-real-time-quote.d.cts +17 -43
- package/dist/actions/get-real-time-quote.d.mts +17 -43
- package/dist/actions/get-real-time-quote.mjs +8 -8
- package/dist/actions/get-real-time-quote.mjs.map +1 -1
- package/dist/actions/get-real-time-websocket-forex.d.cts +1 -8
- package/dist/actions/get-real-time-websocket-forex.d.mts +1 -8
- package/dist/actions/get-real-time-websocket-us-trade.d.cts +1 -7
- package/dist/actions/get-real-time-websocket-us-trade.d.mts +1 -7
- 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 +8 -16
- package/dist/actions/get-user-info.d.mts +8 -16
- 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 +7 -16
- package/dist/actions/get-ust-yield-rates.d.mts +7 -16
- 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 +1 -1
- package/dist/actions/list-exchanges.cjs.map +1 -1
- package/dist/actions/list-exchanges.d.cts +2 -10
- package/dist/actions/list-exchanges.d.mts +2 -10
- package/dist/actions/list-exchanges.mjs +1 -1
- package/dist/actions/list-exchanges.mjs.map +1 -1
- package/dist/actions/search-instruments.cjs +4 -4
- package/dist/actions/search-instruments.cjs.map +1 -1
- package/dist/actions/search-instruments.d.cts +5 -18
- package/dist/actions/search-instruments.d.mts +5 -18
- package/dist/actions/search-instruments.mjs +4 -4
- package/dist/actions/search-instruments.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -13,20 +13,12 @@ declare const EodhdApisListExchangesOutput: z.ZodObject<{
|
|
|
13
13
|
Name: z.ZodNullable<z.ZodString>;
|
|
14
14
|
Country: z.ZodNullable<z.ZodString>;
|
|
15
15
|
Currency: z.ZodNullable<z.ZodString>;
|
|
16
|
-
OperatingMIC: z.
|
|
16
|
+
OperatingMIC: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
fmt?: "json" | "csv" | undefined;
|
|
21
|
-
},
|
|
22
|
-
exchanges: {
|
|
23
|
-
Code: string | null;
|
|
24
|
-
Name: string | null;
|
|
25
|
-
Country: string | null;
|
|
26
|
-
Currency: string | null;
|
|
27
|
-
OperatingMIC?: string | undefined;
|
|
28
|
-
}[];
|
|
29
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
22
|
//#endregion
|
|
31
23
|
export { eodhdApisListExchanges };
|
|
32
24
|
//# sourceMappingURL=list-exchanges.d.cts.map
|
|
@@ -13,20 +13,12 @@ declare const EodhdApisListExchangesOutput: z.ZodObject<{
|
|
|
13
13
|
Name: z.ZodNullable<z.ZodString>;
|
|
14
14
|
Country: z.ZodNullable<z.ZodString>;
|
|
15
15
|
Currency: z.ZodNullable<z.ZodString>;
|
|
16
|
-
OperatingMIC: z.
|
|
16
|
+
OperatingMIC: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const eodhdApisListExchanges: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
fmt?: "json" | "csv" | undefined;
|
|
21
|
-
},
|
|
22
|
-
exchanges: {
|
|
23
|
-
Code: string | null;
|
|
24
|
-
Name: string | null;
|
|
25
|
-
Country: string | null;
|
|
26
|
-
Currency: string | null;
|
|
27
|
-
OperatingMIC?: string | undefined;
|
|
28
|
-
}[];
|
|
29
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
22
|
//#endregion
|
|
31
23
|
export { eodhdApisListExchanges };
|
|
32
24
|
//# sourceMappingURL=list-exchanges.d.mts.map
|
|
@@ -7,7 +7,7 @@ const EodhdApisListExchanges_ExchangeInfoSchema = z.object({
|
|
|
7
7
|
Name: z.string().describe("Full name of the exchange (e.g., 'US NYSE and NASDAQ', 'London Stock Exchange').").nullable(),
|
|
8
8
|
Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK', 'Canada').").nullable(),
|
|
9
9
|
Currency: z.string().describe("Currency code used by the exchange (e.g., 'USD', 'GBP', 'CAD').").nullable(),
|
|
10
|
-
OperatingMIC: z.
|
|
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", {
|
|
13
13
|
slug: "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 = 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.
|
|
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"}
|
|
@@ -9,15 +9,15 @@ const EodhdApisSearchInstrumentsInput = zod.z.object({
|
|
|
9
9
|
}).describe("Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.");
|
|
10
10
|
const EodhdApisSearchInstruments_InstrumentSearchResultSchema = zod.z.object({
|
|
11
11
|
Code: zod.z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').").nullable(),
|
|
12
|
-
ISIN: zod.z.
|
|
12
|
+
ISIN: zod.z.string().describe("International Securities Identification Number. May be null if not available.").nullable().optional(),
|
|
13
13
|
Name: zod.z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').").nullable(),
|
|
14
14
|
Type: zod.z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').").nullable(),
|
|
15
15
|
Country: zod.z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK').").nullable(),
|
|
16
16
|
Currency: zod.z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR').").nullable(),
|
|
17
17
|
Exchange: zod.z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE').").nullable(),
|
|
18
|
-
isPrimary: zod.z.
|
|
19
|
-
previousClose: zod.z.
|
|
20
|
-
previousCloseDate: zod.z.
|
|
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
|
+
previousClose: zod.z.number().describe("Last closing price of the instrument. May be null if not available.").nullable().optional(),
|
|
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()
|
|
21
21
|
}).describe("Schema for a single instrument search result.");
|
|
22
22
|
const EodhdApisSearchInstrumentsOutput = zod.z.object({ results: zod.z.array(EodhdApisSearchInstruments_InstrumentSearchResultSchema).describe("List of instruments matching the search query.") }).describe("Response model for search instruments API returning a list of matching instruments.");
|
|
23
23
|
const eodhdApisSearchInstruments = require_action.action("EODHD_APIS_SEARCH_INSTRUMENTS", {
|
|
@@ -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 = 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.
|
|
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"}
|
|
@@ -10,15 +10,15 @@ declare const EodhdApisSearchInstrumentsInput: z.ZodObject<{
|
|
|
10
10
|
declare const EodhdApisSearchInstrumentsOutput: z.ZodObject<{
|
|
11
11
|
results: z.ZodArray<z.ZodObject<{
|
|
12
12
|
Code: z.ZodNullable<z.ZodString>;
|
|
13
|
-
ISIN: z.
|
|
13
|
+
ISIN: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
Name: z.ZodNullable<z.ZodString>;
|
|
15
15
|
Type: z.ZodNullable<z.ZodString>;
|
|
16
16
|
Country: z.ZodNullable<z.ZodString>;
|
|
17
17
|
Currency: z.ZodNullable<z.ZodString>;
|
|
18
18
|
Exchange: z.ZodNullable<z.ZodString>;
|
|
19
|
-
isPrimary: z.
|
|
20
|
-
previousClose: z.
|
|
21
|
-
previousCloseDate: z.
|
|
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
22
|
}, z.core.$strip>>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
declare const eodhdApisSearchInstruments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -26,20 +26,7 @@ declare const eodhdApisSearchInstruments: import("@keystrokehq/action").Workflow
|
|
|
26
26
|
type?: string | undefined;
|
|
27
27
|
limit?: number | undefined;
|
|
28
28
|
exchange?: string | undefined;
|
|
29
|
-
},
|
|
30
|
-
results: {
|
|
31
|
-
Code: string | null;
|
|
32
|
-
Name: string | null;
|
|
33
|
-
Type: string | null;
|
|
34
|
-
Country: string | null;
|
|
35
|
-
Currency: string | null;
|
|
36
|
-
Exchange: string | null;
|
|
37
|
-
ISIN?: string | undefined;
|
|
38
|
-
isPrimary?: boolean | undefined;
|
|
39
|
-
previousClose?: number | undefined;
|
|
40
|
-
previousCloseDate?: string | undefined;
|
|
41
|
-
}[];
|
|
42
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
30
|
//#endregion
|
|
44
31
|
export { eodhdApisSearchInstruments };
|
|
45
32
|
//# sourceMappingURL=search-instruments.d.cts.map
|
|
@@ -10,15 +10,15 @@ declare const EodhdApisSearchInstrumentsInput: z.ZodObject<{
|
|
|
10
10
|
declare const EodhdApisSearchInstrumentsOutput: z.ZodObject<{
|
|
11
11
|
results: z.ZodArray<z.ZodObject<{
|
|
12
12
|
Code: z.ZodNullable<z.ZodString>;
|
|
13
|
-
ISIN: z.
|
|
13
|
+
ISIN: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
Name: z.ZodNullable<z.ZodString>;
|
|
15
15
|
Type: z.ZodNullable<z.ZodString>;
|
|
16
16
|
Country: z.ZodNullable<z.ZodString>;
|
|
17
17
|
Currency: z.ZodNullable<z.ZodString>;
|
|
18
18
|
Exchange: z.ZodNullable<z.ZodString>;
|
|
19
|
-
isPrimary: z.
|
|
20
|
-
previousClose: z.
|
|
21
|
-
previousCloseDate: z.
|
|
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
22
|
}, z.core.$strip>>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
declare const eodhdApisSearchInstruments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -26,20 +26,7 @@ declare const eodhdApisSearchInstruments: import("@keystrokehq/action").Workflow
|
|
|
26
26
|
type?: string | undefined;
|
|
27
27
|
limit?: number | undefined;
|
|
28
28
|
exchange?: string | undefined;
|
|
29
|
-
},
|
|
30
|
-
results: {
|
|
31
|
-
Code: string | null;
|
|
32
|
-
Name: string | null;
|
|
33
|
-
Type: string | null;
|
|
34
|
-
Country: string | null;
|
|
35
|
-
Currency: string | null;
|
|
36
|
-
Exchange: string | null;
|
|
37
|
-
ISIN?: string | undefined;
|
|
38
|
-
isPrimary?: boolean | undefined;
|
|
39
|
-
previousClose?: number | undefined;
|
|
40
|
-
previousCloseDate?: string | undefined;
|
|
41
|
-
}[];
|
|
42
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
30
|
//#endregion
|
|
44
31
|
export { eodhdApisSearchInstruments };
|
|
45
32
|
//# sourceMappingURL=search-instruments.d.mts.map
|
|
@@ -9,15 +9,15 @@ const EodhdApisSearchInstrumentsInput = z.object({
|
|
|
9
9
|
}).describe("Request parameters for searching stocks, ETFs, mutual funds, bonds, and indices.");
|
|
10
10
|
const EodhdApisSearchInstruments_InstrumentSearchResultSchema = z.object({
|
|
11
11
|
Code: z.string().describe("Ticker symbol of the instrument (e.g., 'AAPL', 'MSFT').").nullable(),
|
|
12
|
-
ISIN: z.
|
|
12
|
+
ISIN: z.string().describe("International Securities Identification Number. May be null if not available.").nullable().optional(),
|
|
13
13
|
Name: z.string().describe("Full name of the instrument (e.g., 'Apple Inc', 'Microsoft Corporation').").nullable(),
|
|
14
14
|
Type: z.string().describe("Asset classification (e.g., 'Common Stock', 'ETF', 'Mutual Fund').").nullable(),
|
|
15
15
|
Country: z.string().describe("Country where the exchange is located (e.g., 'USA', 'UK').").nullable(),
|
|
16
16
|
Currency: z.string().describe("Trading currency (e.g., 'USD', 'GBP', 'EUR').").nullable(),
|
|
17
17
|
Exchange: z.string().describe("Exchange code where the instrument is traded (e.g., 'US', 'LSE').").nullable(),
|
|
18
|
-
isPrimary: z.
|
|
19
|
-
previousClose: z.
|
|
20
|
-
previousCloseDate: z.
|
|
18
|
+
isPrimary: z.boolean().describe("Whether this is the primary exchange listing for the instrument. May be null if not available.").nullable().optional(),
|
|
19
|
+
previousClose: z.number().describe("Last closing price of the instrument. May be null if not available.").nullable().optional(),
|
|
20
|
+
previousCloseDate: z.string().describe("Date of the last closing price in YYYY-MM-DD format. May be null if not available.").nullable().optional()
|
|
21
21
|
}).describe("Schema for a single instrument search result.");
|
|
22
22
|
const eodhdApisSearchInstruments = action("EODHD_APIS_SEARCH_INSTRUMENTS", {
|
|
23
23
|
slug: "eodhd_apis-search-instruments",
|
|
@@ -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 = 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.
|
|
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"}
|