# endOfDayStockPrices

**Identifier:** `marketstack_endOfDayStockPrices`

**Provider:** [Marketstack](https://kirha.com/providers/marketstack.md)

Get end-of-day stock prices for a specific symbol. Returns OHLCV (Open, High, Low, Close, Volume) data for the specified date range. Returns the latest trading day if no date range is provided. dateFrom alone ends today; dateTo alone starts one day earlier. Maximum date range is 30 days.

## Run it with the CLI

```bash
kirha tools run marketstack_endOfDayStockPrices \
  --input '{
    "symbol": "DG.XPAR for Vinci SA on Paris Exchange"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "marketstack_endOfDayStockPrices",
  "input": {
    "symbol": "DG.XPAR for Vinci SA on Paris Exchange"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "dateFrom": {
      "description": "Start date in YYYY-MM-DD format",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "dateTo": {
      "description": "End date in YYYY-MM-DD format",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "symbol": {
      "description": "Stock symbol (e.g., DG.XPAR for Vinci SA on Paris Exchange)",
      "type": "string"
    }
  },
  "required": [
    "symbol"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "stockPrices": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "adjClose": {
            "type": "number"
          },
          "close": {
            "type": "number"
          },
          "date": {
            "type": "string"
          },
          "dividend": {
            "type": "number"
          },
          "exchange": {
            "type": "string"
          },
          "high": {
            "type": "number"
          },
          "low": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "open": {
            "type": "number"
          },
          "priceCurrency": {
            "type": "string"
          },
          "splitFactor": {
            "type": "number"
          },
          "symbol": {
            "type": "string"
          },
          "volume": {
            "type": "number"
          }
        },
        "required": [
          "date",
          "symbol"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "stockPrices"
  ],
  "type": "object"
}
```

-----

[All Marketstack tools](https://kirha.com/providers/marketstack.md) · [< Back to tools list](https://kirha.com/tools.md)