# Brazil B3 Stock Quotes: Price, Open, Range & Volume (`mrdoe/brazil-b3-stock-quotes`) Actor

B3 (Brasil Bolsa Balcao) stock quotes from public market data: price, change, open, day range, average price, volume and security type for any B3 ticker such as PETR4, VALE3, ITUB4.

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

## Pricing

from $3.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

![Brazil B3 Stock Quotes: Price, Open, Range & Volume - Brazil B3 stock quotes API with price, change percent and day range](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/brazil-b3-stock-quotes--hero.png)

### What does Brazil B3 Stock Quotes: Price, Open, Range & Volume do?

Brazil B3 Stock Quotes returns one row per B3 ticker from public exchange market data. Each row has the last price in reais, the percent change and a derived previous close, open, day low and day high, the volume-weighted average price for the session, traded volume, the security type read from the ticker's numeric suffix (common, preferred, or a unit/fund), the market segment and the company name. Give it any B3 ticker such as PETR4 (Petrobras preferred), VALE3 (Vale common) or ITUB4 (Itau Unibanco preferred).

### Why use Brazil B3 Stock Quotes: Price, Open, Range & Volume?

- Works for any ticker on the exchange, not a fixed list.
- Derives the previous close from the percent change, so you get a full picture from one call.
- Unknown tickers return a clean not-available response and are skipped without stopping the run.
- Reads the exchange's own public quotation service, no account or API key.
- Bulk tickers per run, billed only for rows returned.

### What makes this different

Public, free B3 quotes usually mean scraping a broker page per ticker. This Actor reads B3's own quotation service directly and returns tidy rows for a whole watchlist in one run.

### Who can use the Brazil B3 Stock Quotes and how?

- **Quant researchers:** collect B3 price and volume features for models.
- **Retail investors:** check prices for a Brazilian watchlist in one run.
- **Newsletter writers:** publish a daily B3 table.
- **Fintech apps:** show Brazilian quotes without a data contract.
- **Advisers:** track client holdings in reais.
- **AI agent builders:** let an assistant answer what a B3 stock trades at.
- **Analysts:** monitor a sector across many tickers.
- **Students:** free Brazilian market data for coursework.

### How it works

![Brazil B3 Stock Quotes: Price, Open, Range & Volume workflow: your input, collection, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/brazil-b3-stock-quotes--how-it-works.png)

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

### What data can you extract?

The dataset has 20 fields per row:

| Field            | Type   | Description                              |
| ---------------- | ------ | ---------------------------------------- |
| `record_type`    | string | quote or bar.                            |
| `ticker`         | string | Ticker symbol.                           |
| `name`           | string | Company or fund name.                    |
| `security_type`  | string | Security type.                           |
| `market`         | string | Market.                                  |
| `currency`       | string | Trading currency.                        |
| `price`          | number | Last price.                              |
| `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.                                |
| `average_price`  | number | Average price.                           |
| `volume`         | number | Volume in shares.                        |
| `quote_time`     | string | Quote time.                              |
| `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.                           |

### How to use Brazil B3 Stock Quotes: Price, Open, Range & Volume

![Brazil B3 Stock Quotes: Price, Open, Range & Volume input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/brazil-b3-stock-quotes--input.png)

1. Open the Actor and go to the **Input** tab.
2. Enter **Tickers** as B3 codes (for example `PETR4`, `VALE3`, `ITUB4`, `BBAS3`) and run.
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       | `["PETR4","VALE3","ITUB4"]` | B3 tickers, one per line, for example PETR4, VALE3, ITUB4, BBAS3. |
| `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

![Brazil B3 Stock Quotes: Price, Open, Range & Volume dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/brazil-b3-stock-quotes--output.png)

`price`, `previous_close` (derived from `change_pct`), `open`, `day_low`, `day_high` and `average_price` are in Brazilian reais. `change_pct` is percent versus the previous close. `volume` is shares traded. `security_type` reads the ticker's numeric suffix: 3 is common (ON), 4 is preferred (PN), 11 is typically a unit or fund.

![Brazil B3 Stock Quotes: Price, Open, Range & Volume field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/brazil-b3-stock-quotes--fields.png)

A real dataset item:

```json
{
    "record_type": "quote",
    "ticker": "PETR4",
    "name": "PETROBRAS PN N2",
    "security_type": "PN (preferred)",
    "market": "Vista",
    "currency": "BRL",
    "price": 47.97,
    "change_pct": -2.6187576,
    "previous_close": 49.26,
    "open": 48.8,
    "day_low": 47.92,
    "day_high": 48.87,
    "average_price": 48.224,
    "volume": 39796,
    "quote_time": "2026-09-27 03:17:24",
    "as_of": "2026-09-27T06:17:24.808Z",
    "fetch_path": "b3_public_api",
    "source": "b3_public_market_data",
    "scraped_at": "2026-09-27T06:17:24.809Z",
    "actor_version": "1.0.0"
}
```

### How to read and use the results

1. **Read price and change_pct**.
2. **Check day_low, day_high and average_price** for the session's range.
3. **Use security_type** to tell common from preferred shares.
4. **Read volume** for liquidity.
5. **Schedule runs** to build your own history.
6. **Watch the log** for unknown tickers.

### Usage Examples

#### Petrobras, Vale, Itau

```json
{
    "tickers": ["PETR4", "VALE3", "ITUB4"]
}
```

#### More banks and the exchange itself

```json
{
    "tickers": ["BBAS3", "BBDC4", "B3SA3"]
}
```

#### WEG, Ambev, Magazine Luiza

```json
{
    "tickers": ["WEGE3", "ABEV3", "MGLU3"]
}
```

### Tips for Best Results

- Schedule the Actor after the close and keep each run to build your own price history.
- Keep tickers in one run: many tickers per run cost less than many runs.
- The ticker's last digit is a quick read on the security type: 3 common, 4 preferred, 11 unit/fund.
- previous_close is derived from the percent change; treat it as an estimate, not an exchange-published figure.
- 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                                                    |
| ---------------------------- | ------ | ------------------- | -------------------------------------------------------- |
| Quotes for listed B3 tickers | ✅     | No                  | Public B3 quotation service.                             |
| Previous close               | 🟡     | No                  | Derived from the percent change, not published directly. |
| Daily price history          | ❌     | -                   | Not available from this source.                          |
| Real-time tick data          | ❌     | -                   | End-of-day and delayed snapshots.                        |

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

### Known Limitations

- This Actor returns quotes only; daily OHLC history is not available from the public service it reads.
- previous_close is derived from the percent change rather than read directly from the exchange.
- Outside trading hours or on non-trading days, the quote is the last session's snapshot.
- Fundamentals such as P/E or market cap are not part of this quote service.
- 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?

B3's own public quotation service, which needs no login.

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

No.

#### How fresh are the prices?

Snapshots of the last trade; outside trading hours it is the last session close.

#### 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 B3 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 B3 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 B3.

# Actor input Schema

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

B3 tickers, one per line, for example PETR4, VALE3, ITUB4, BBAS3.

## `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": [
    "PETR4",
    "VALE3",
    "ITUB4"
  ],
  "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": [
        "PETR4",
        "VALE3",
        "ITUB4"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/brazil-b3-stock-quotes").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": [
        "PETR4",
        "VALE3",
        "ITUB4",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/brazil-b3-stock-quotes").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": [
    "PETR4",
    "VALE3",
    "ITUB4"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call mrdoe/brazil-b3-stock-quotes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/brazil-b3-stock-quotes"
        }
    }
}
```

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/40WwPOVqhaz83i5dh/builds/ueL0PmgkmafdaQgIC/openapi.json
