View as Markdown
EODHD APIs icon

EODHD APIs ACTION

Retrieve Stock Prices

Fetch historical stock prices for a given symbol and time period. See the docs here
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's EODHD APIs account once, then configure and run Retrieve Stock Prices from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "eodhd_apis-retrieve-stock-prices",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    eodhd_apis: { authProvisionId: "apn_xxxxxxx" },
    exchangeCode: "Exchange Code",
    symbolCode: "Ticker (Exchange Symbols)",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Retrieve Stock Prices inputs
Property Type Description
exchangeCode Exchange Code string
The code of the exchange you want to retrieve.
Required Dynamic
symbolCode Ticker (Exchange Symbols) string
The symbol you want to retrieve.
Required Dynamic
fmt Format string
The output format.
Required
period Period string
Use d for daily, w for weekly, m for monthly prices. By default, daily prices will be shown.
Optional
order Order string
Use a for ascending dates (from old to new), d for descending dates (from new to old). By default, dates are shown in ascending order.
Optional
from From string
The format is YYYY-MM-DD. If you need data from Jan 5, 2017, you should use from = 2017-01-05.
Optional
to To string
The format is YYYY-MM-DD. If you need data to Feb 10, 2017, you should use to = 2017-02-10.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
eodhd_apis-retrieve-stock-prices
Version
0.0.2
App
EODHD APIs
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes