# Canada TSX & TSXV Stock Prices: Quotes and Daily History (`mrdoe/canada-tsx-stock-prices`) Actor

TSX and TSXV stock and ETF quotes and daily OHLCV history from public TMX Money data: price, change, 52-week range, market cap, P/E, EPS, dividend yield and sector. Bulk tickers, no API key.

- **URL**: https://apify.com/mrdoe/canada-tsx-stock-prices.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

![Canada TSX & TSXV Stock Prices: Quotes and Daily History - Canada TSX stock price API returning quotes and daily OHLCV history](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/canada-tsx-stock-prices--hero.png)

### What does Canada TSX & TSXV Stock Prices: Quotes and Daily History do?

Canada TSX Stock Prices returns quotes and daily price history for stocks and ETFs listed on the Toronto Stock Exchange and TSX Venture Exchange, from public TMX Money data. In quotes mode each ticker gives one row with the last price in Canadian dollars, change and percent change, previous close, open, day range and volume, the 52-week range and where the price sits in it, market capitalisation, price to earnings ratio, earnings per share, dividend yield and frequency, ex-dividend and payment dates, sector and industry. In history mode each ticker gives one row per trading day with open, high, low, close, volume, the daily return and the day's range.

### Why use Canada TSX & TSXV Stock Prices: Quotes and Daily History?

- Canadian stocks and ETFs on TSX and TSXV, quotes and history in one Actor.
- Fundamentals in every quote: P/E, EPS, dividend yield, market cap and sector.
- Derived features: 52-week range position, daily returns and day range.
- Unknown tickers are skipped without stopping the run.
- No API key or login, bulk tickers per run, billed only for rows returned.

### What makes this different

Canadian price data usually sits behind broker logins or paid feeds. This Actor returns TMX quotes and history for whole watchlists as tidy rows, ready for screens, reports and models.

### Who can use the Canada TSX Stock Prices and how?

- **Quant researchers:** collect Canadian OHLCV and fundamentals for models.
- **Retail investors:** screen banks, energy and dividend payers.
- **Newsletter writers:** publish a daily TSX table.
- **Fintech and portfolio apps:** show Canadian quotes without a data contract.
- **Backtesting:** pull years of daily bars.
- **AI agent builders:** let an assistant answer what a TSX stock trades at.
- **Advisers:** track client holdings and dividend dates.
- **Students:** get free Canadian market data.

### How it works

![Canada TSX & TSXV Stock Prices: Quotes and Daily History workflow: your input, collection, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/canada-tsx-stock-prices--how-it-works.png)

1. **Your input** — list the tickers (or ISINs).
2. **The Actor collects it** — the Actor reads TMX public market data for each one.
3. **Your output** — you get one row per stock with price, change, range position and fundamentals, or one row per trading day in history mode.

### What data can you extract?

The dataset has 36 fields per row:

| Field                    | Type   | Description                                                                   |
| ------------------------ | ------ | ----------------------------------------------------------------------------- |
| `record_type`            | string | quote or bar.                                                                 |
| `ticker`                 | string | Ticker symbol.                                                                |
| `name`                   | string | Company or fund name.                                                         |
| `exchange`               | string | Exchange.                                                                     |
| `currency`               | string | Trading currency.                                                             |
| `price`                  | number | Last price.                                                                   |
| `change`                 | number | Change from the previous close.                                               |
| `change_pct`             | number | Change from the previous close, percent.                                      |
| `previous_close`         | number | Previous close.                                                               |
| `open`                   | number | Open.                                                                         |
| `day_low`                | number | Day low.                                                                      |
| `day_high`               | number | Day high.                                                                     |
| `volume`                 | number | Volume in shares.                                                             |
| `week52_low`             | number | 52-week low.                                                                  |
| `week52_high`            | number | 52-week high.                                                                 |
| `range_position_52w_pct` | number | Where the price sits in its 52-week range, 0 = at the low, 100 = at the high. |
| `market_cap`             | number | Market capitalisation.                                                        |
| `pe_ratio`               | number | Price to earnings ratio.                                                      |
| `eps`                    | number | Earnings per share.                                                           |
| `dividend_yield_pct`     | number | Dividend yield, percent.                                                      |
| `dividend_frequency`     | string | Dividend frequency.                                                           |
| `ex_dividend_date`       | string | Ex-dividend date.                                                             |
| `dividend_pay_date`      | string | Dividend payment date.                                                        |
| `sector`                 | string | Sector.                                                                       |
| `industry`               | string | Industry.                                                                     |
| `as_of`                  | string | When the data was read.                                                       |
| `fetch_path`             | string | How the data was obtained.                                                    |
| `source`                 | string | Data source.                                                                  |
| `scraped_at`             | string | Timestamp.                                                                    |
| `actor_version`          | string | Actor version.                                                                |
| `date`                   | string | Trading date, YYYY-MM-DD.                                                     |
| `high`                   | number | High.                                                                         |
| `low`                    | number | Low.                                                                          |
| `close`                  | number | Close.                                                                        |
| `daily_return_pct`       | number | Return versus the previous bar, percent.                                      |
| `range_pct`              | number | High-low range as percent of the low.                                         |

### How to use Canada TSX & TSXV Stock Prices: Quotes and Daily History

![Canada TSX & TSXV Stock Prices: Quotes and Daily History input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/canada-tsx-stock-prices--input.png)

1. Open the Actor and go to the **Input** tab.
2. Enter **Tickers** (for example `RY`, `TD`, `SHOP`, `RCI.B`, `XIU`) and run for quotes. Switch **Mode** to history and set a date range or lookback for daily bars. Schedule daily to store your own history.
3. Optionally set filters and a **Max results** limit.
4. Click **Start**. A default run finishes in under a minute.
5. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter            | Type    | Required | Default                   | Description                                                                |
| -------------------- | ------- | -------- | ------------------------- | -------------------------------------------------------------------------- |
| `tickers`            | array   | No       | `["RY","TD","SHOP"]`      | TSX or TSXV symbols, one per line, for example RY, TD, SHOP, RCI.B, XIU.   |
| `mode`               | string  | No       | `"quotes"`                | quotes returns one row per stock; history returns one row per trading day. |
| `startDate`          | string  | No       | —                         | First date for history mode, YYYY-MM-DD. Leave empty to use the lookback.  |
| `endDate`            | string  | No       | —                         | Last date for history mode, YYYY-MM-DD. Leave empty for today.             |
| `lookbackDays`       | integer | No       | `30`                      | Used in history mode when no start date is set.                            |
| `newestFirst`        | boolean | No       | `true`                    | History order. Turn off for chronological.                                 |
| `maxItems`           | integer | No       | `0`                       | Cap on returned rows. Set 0 for no limit.                                  |
| `proxyConfiguration` | object  | No       | `{"useApifyProxy":false}` | Optional proxy. The data works without one.                                |

### Output Data

![Canada TSX & TSXV Stock Prices: Quotes and Daily History dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/canada-tsx-stock-prices--output.png)

Quote rows are in Canadian dollars: `price`, `change_pct`, `previous_close`, `open`, `day_low`, `day_high`, `volume`, `week52_low`, `week52_high`, `range_position_52w_pct`, `market_cap`, `pe_ratio`, `eps`, `dividend_yield_pct`, `dividend_frequency`, `ex_dividend_date` and `sector`. History rows have `date`, `open`, `high`, `low`, `close`, `volume`, `daily_return_pct` and `range_pct`.

![Canada TSX & TSXV Stock Prices: Quotes and Daily History field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/canada-tsx-stock-prices--fields.png)

A real dataset item:

```json
{
    "record_type": "bar",
    "ticker": "ENB",
    "date": "2026-09-25",
    "open": 66.85,
    "high": 67.02,
    "low": 65.76,
    "close": 66.13,
    "volume": 6577259,
    "daily_return_pct": -1.284,
    "range_pct": 1.916,
    "as_of": "2026-09-27T05:06:25.334Z",
    "fetch_path": "tmx_public_graphql",
    "source": "tmx_money_public_data",
    "scraped_at": "2026-09-27T05:06:25.334Z",
    "actor_version": "1.0.0"
}
```

### How to read and use the results

1. **Read price and change_pct** for the picture today.
2. **Use pe_ratio and dividend_yield_pct** for value and income screens.
3. **Use range_position_52w_pct** for momentum.
4. **Use history mode** for OHLCV and returns.
5. **Schedule runs** to build history.
6. **Watch the log** for unknown tickers.

### Usage Examples

#### Big Canadian banks

```json
{
    "tickers": ["RY", "TD", "BNS", "BMO", "CM"]
}
```

#### One year of daily history

```json
{
    "mode": "history",
    "tickers": ["XIU", "SHOP"],
    "lookbackDays": 365
}
```

#### Energy stocks

```json
{
    "tickers": ["ENB", "TRP", "CNQ", "SU"]
}
```

### Tips for Best Results

- Schedule the Actor after the close and keep each run to build your own price history.
- range_position_52w_pct is 0 at the 52-week low and 100 at the high, a quick momentum and mean-reversion feature.
- Keep tickers in one run: many tickers per run cost less than many runs.
- Class shares use a dot, for example RCI.B; suffixes like .TO are removed for you.
- Default is 5 results for a fast test. Set the max to 0 to return everything available.

### Reliability by mode

| Mode                      | Status | Needs login or key? | Notes                             |
| ------------------------- | ------ | ------------------- | --------------------------------- |
| TSX and TSXV stock quotes | ✅     | No                  | Public TMX Money data.            |
| Daily history             | ✅     | No                  | Daily bars.                       |
| ETF fundamentals          | 🟡     | No                  | Fewer fields for funds.           |
| Real-time tick data       | ❌     | -                   | End-of-day and delayed snapshots. |

✅ works as described, 🟡 works with caveats, ❌ not supported.

### Known Limitations

- Prices are delayed exchange data, not real-time ticks.
- Some TSXV symbols and very thin stocks may return partial fundamentals.
- The first bar of a history range has no daily return because the previous day is outside the range.
- Only Canadian-listed symbols are covered; US-listed stocks belong in the US Actor.
- This is information, not financial advice.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### Where does the data come from?

Public TMX Money data for stocks and ETFs listed on the TSX and TSX Venture Exchange.

#### Does it need an API key or account?

No.

#### How fresh are the prices?

Quotes are delayed exchange data.

#### What if a ticker is wrong?

It is skipped and named in the log; the other tickers still return.

#### Can I run it on a schedule?

Yes. Schedule it and store each run to build your own price history.

#### Am I charged for tickers that return nothing?

No, only for rows returned.

#### Do I need an account or login?

No. The Actor reads public TMX market data and needs no account or API key.

#### Am I charged for failed runs or empty results?

You are only charged for results that are actually written to the dataset.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console. With monitor mode on, each scheduled run returns only what changed since the previous one.

### Changelog

- **2026-09-27:** First release.

### Enterprise and custom work

Need higher volumes, a custom output schema, dedicated scheduling or a no-breaking-changes commitment for a production pipeline? Open an issue on the Actor page and describe your use case. Bulk terms and custom builds are available.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

This Actor reads publicly available TMX market data. You are responsible for how you use it and for complying with the source's terms. It is not financial advice and not affiliated with TMX.

# Actor input Schema

## `tickers` (type: `array`):

TSX or TSXV symbols, one per line, for example RY, TD, SHOP, RCI.B, XIU.

## `mode` (type: `string`):

quotes returns one row per stock; history returns one row per trading day.

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

First date for history mode, YYYY-MM-DD. Leave empty to use the lookback.

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

Last date for history mode, YYYY-MM-DD. Leave empty for today.

## `lookbackDays` (type: `integer`):

Used in history mode when no start date is set.

## `newestFirst` (type: `boolean`):

History order. Turn off for chronological.

## `maxItems` (type: `integer`):

Cap on returned rows. Set 0 for no limit.

## `proxyConfiguration` (type: `object`):

Optional proxy. The data works without one.

## Actor input object example

```json
{
  "tickers": [
    "RY",
    "TD",
    "SHOP"
  ],
  "mode": "quotes",
  "lookbackDays": 30,
  "newestFirst": true,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "tickers": [
        "RY",
        "TD",
        "SHOP"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/canada-tsx-stock-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 = {
    "tickers": [
        "RY",
        "TD",
        "SHOP",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/canada-tsx-stock-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 '{
  "tickers": [
    "RY",
    "TD",
    "SHOP"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call mrdoe/canada-tsx-stock-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/canada-tsx-stock-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/AbI2ldEZScBVlksCH/builds/SNokrXuD7O0BvNiw5/openapi.json
