# ETF Prices by Finmap.io (`finmap/etf-prices`) Actor

Generates the accurate current price and historical prices of ETFs, at a low cost.
Historical intervals: Daily, weekly, and monthly.

We are committed to offering accurate financial data straight from the robust finmap.io API.
Contact us if you have any questions.

- **URL**: https://apify.com/finmap/etf-prices.md
- **Developed by:** [finmap.io](https://apify.com/finmap) (community)
- **Categories:** AI, News, Developer tools
- **Features:** Full permissions
- **Stats:** 8 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 pay per row of results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ETF Price API by Finmap.io 📈

Retrieve the **current and historical price data of ETFs**, in preferred intervals.
This actor is ideal for startups, developers, AI agents, and market analysts who need accurate asset prices on demand, at affordable rates.
Pay only for what you need! Current rate is: $0.0005/row of results. Further discount for members applies.

***

### Features

🕒 Fetch current ETF price.

📅 Fetch historical ETF price data by date range.

⚙️ Select interval: `daily`, `weekly`, or `monthly`.

🌎 Find ETFs from 62+ countries.

🧾 Clean output with structured fields.

⬇️ Export as CSV or preferred file format.

💬 24h customer support for all subscribers.

💸 Avoid overspending by only paying $0.0005/row of result.

***

### Input Schema

| Field        | Type   | Required | Description |
|--------------|--------|----------|-------------|
| `exchange`   | string | ✅       | Choose between `"I Don't Know"` |
| `price_type` | string | ✅       | Choose between `"latest"` or `"historical"` |
| `symbols`    | array  | ✅       | Supported values: `BTCUSDT`, `ETHUSDT` |
| `startDate`  | string | ❌       | Required for `historical` pricing (`YYYY-MM-DD`) |
| `endDate`    | string | ❌       | Required for `historical` pricing (`YYYY-MM-DD`) |
| `interval`   | string | ❌       | One of: `daily`, `weekly`, `monthly` (used only for historical) |
| `order`      | boolean| ❌       | Switch: `true` or `false` (default) (used only for historical) |

***

### Example Latest Price

#### Input Schema

```json
{
  "exchange": "None",
  "order": false,
  "price_type": "latest",
  "symbols": [
    "SPY",
    "QQQ",
    "TLT"
  ]
}
```

#### Output Schema

```json
[
  {
    "symbol": "SPY",
    "open": 661.47,
    "close": 660,
    "high": 661.78,
    "low": 659.21,
    "volume": 61168953,
    "datetime": "2025-09-17 06:41:40+00:00"
  },
  {
    "symbol": "QQQ",
    "open": 592.61,
    "close": 591.18,
    "high": 592.86,
    "low": 590.49,
    "volume": 36942130,
    "datetime": "2025-09-17 06:41:39+00:00"
  },
  {
    "symbol": "TLT",
    "open": 90.09,
    "close": 90.35,
    "high": 90.495,
    "low": 90.04,
    "volume": 26794226,
    "datetime": "2025-09-17 06:41:39+00:00"
  }
]
```

### Example Historical Price

#### Input Schema

```json
{
  "endDate": "2025-04-01",
  "exchange": "AMEX",
  "interval": "31",
  "order": false,
  "price_type": "historical",
  "startDate": "2025-01-01",
  "symbols": [
    "SPY"
  ]
}
```

#### Output Schema

```json
[
  {
    "symbol": "SPY",
    "open": 589.39,
    "close": 584.64,
    "high": 591.13,
    "low": 580.5,
    "volume": 50203975,
    "datetime": "2025-01-02"
  },
  {
    "symbol": "SPY",
    "open": 592.67,
    "close": 597.77,
    "high": 600.29,
    "low": 590.49,
    "volume": 65857248,
    "datetime": "2025-02-03"
  },
  {
    "symbol": "SPY",
    "open": 596.18,
    "close": 583.77,
    "high": 597.34,
    "low": 579.9,
    "volume": 74249199,
    "datetime": "2025-03-03"
  },
  {
    "symbol": "SPY",
    "open": 557.45,
    "close": 560.97,
    "high": 562.94,
    "low": 553.68,
    "volume": 54609641,
    "datetime": "2025-04-01"
  }
]
```

***

#### Terms of Service

This actor is designed to provide users with accurate and reliable market data.
However, the information and services provided by this tool are not intended as, and should not be construed as,
financial or investment advice. We are not responsible for any investment decisions made based on the data provided,
nor for any losses resulting from market fluctuations, errors, or inaccuracies in the data.

# Actor input Schema

## `exchange` (type: `string`):

Choose the exchange.

## `symbols` (type: `array`):

Please input your ETF symbol(s) here. Max 5 symbols are allowed. Example: SPY

## `price_type` (type: `string`):

Choose whether to get the latest price or historical price data.

## `startDate` (type: `string`):

For historical price data, select the start date (YYYY-MM-DD).

## `endDate` (type: `string`):

For historical price data, select the end date (YYYY-MM-DD)

## `interval` (type: `string`):

Price interval for weekly, the value should be 7, for monthly the value should be 31.

## `order` (type: `boolean`):

Historical price data order. Switch off for assending order.

## Actor input object example

```json
{
  "exchange": "None",
  "symbols": [
    "SPY",
    "QQQ",
    "TLT"
  ],
  "price_type": "latest",
  "startDate": "2025-05-01",
  "endDate": "2025-08-01",
  "interval": "7",
  "order": false
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "symbols": [
        "SPY",
        "QQQ",
        "TLT"
    ],
    "order": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("finmap/etf-prices").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "symbols": [
        "SPY",
        "QQQ",
        "TLT",
    ],
    "order": False,
}

# Run the Actor and wait for it to finish
run = client.actor("finmap/etf-prices").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "symbols": [
    "SPY",
    "QQQ",
    "TLT"
  ],
  "order": false
}' |
apify call finmap/etf-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,finmap/etf-prices"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4I2dOsEOh0358NYXz/builds/Oc5KEdVmyvJncznyu/openapi.json
