Skip to content
Octo × Stocks and charts PT Request an assessment

Octo for stock analysis

Octo calculates and draws. Deciding what to do with it is up to you.

The CVM (Brazil's securities regulator) publishes the financial statements of every listed company as open data; B3, the Brazilian stock exchange, publishes its quote history back to 1986. Octo turns those files into candlestick charts, moving averages and volume, into margins, ROE, debt and P/E with the source of every number, and into a comparison of companies in the same sector in a notebook that runs again and gives the same result. It does not say what to buy: stock analysis published to third parties is the job of an accredited analyst.

The Octo panel with its eight arms next to a candlestick chart, moving averages, volume and RSI of a fictional ticker Daily chart of 34 sessions of the fictional ticker AAAA3, with hollow green up candles and filled amber down candles, the 9-session moving average as a solid cyan line and the 21-session one as a dashed line, the volume bars and, below, the 14-session RSI with the 30 and 70 bands. Last fictional close: R$ 19.43. The footer notes that the indicator is a calculation, not a buy or sell signal. On the left, the Octo panel shows the Octo mark and the eight arms in a list, each with a green status dot: Discovery, Data, Security, Architecture, Development, Review, Release and Documentation. All data are fictional. grafico_AAAA3.png · fictional data AAAA3 (fictional) · daily · R$ · volume — ma9- - ma21 RSI 14 (fictional) · 0 to 100 7030 computed indicator; not a buy or sell signal Octo · 8 arms Discovery Data Security Architecture Development Review Release Documentation
Illustration: the Octo panel with its eight arms next to candles, 9- and 21-session averages, volume and RSI of a fictional ticker; fictional data
CVM open dataODbLDFP and ITR, updated weekly, checked on 12 Nov 2026
B3 quotes1986COTAHIST history, downloaded by a person
AnalystCVM 20analysis for third parties is reserved to accredited analysts (art. 2)
Sources10listed at the end of the page
01

What Octo does with market data.

Six possible deliverables, taken from the survey. All start from a public file with source and date, and all leave the decision with the investor or with the registered professional who signs.

Technical chart

Candles, moving averages, volume and RSI of a ticker, with the numbers behind the drawing in a CSV alongside.

Deliverable: grafico_<ticker>.png and indicadores.csv

Reading COTAHIST

The quotes file you downloaded from B3, read field by field using the official layout, with a warning on any jump that looks like a split.

Deliverable: precos_<ticker>.csv with the sha256 of the source

CVM ratios

Margins, ROE, EBITDA, net debt and trailing-12-month P/E, computed from the consolidated statements.

Deliverable: indicadores.csv and origem.csv

Source of each number

Each value points to the file, the account (CD_CONTA), the reference date and the filing version. Checking it against the PDF becomes easy.

Deliverable: audit trail in CSV

Sector comparison

Companies in the same sector side by side, with the group median, no "good" and "bad" colours and no buy ranking.

Deliverable: table, chart and HTML report

Source and licence kept apart

What is open data (CVM), what belongs to B3 under terms of use, what is a community library (yfinance) and what requires a contract.

Deliverable: project source sheet
02

What Octo delivers, in charts.

Examples of the material that comes out of public data, with fictional data. Illustration, not recommendation: a person reads and decides.

Technical chart

From the downloaded COTAHIST to the chart of candles, averages and volume

Candlestick chart of a fictional ticker, AAAA3, with 40 sessions from 31 August to 23 October 2026 between 23 and 26 reais; hollow green up candles and filled amber down candles; the 9-session moving average as a solid cyan line and the 21-session one as a dashed line; three crossovers of the averages marked as events on 16 Sep, 18 Sep and 19 Oct; below, the volume bars; in the footer, the note that an event is recorded data, not a buy or sell signal 23.00 24.00 25.00 events 16 Sep and 18 Sep event 19 Oct AAAA3 (fictional) · R$ · not adjusted for payouts — ma9- - ma21▯ up vol. 31/08 14/09 28/09 12/10 23/10 event = crossover recorded in the CSV with date and values; not a buy or sell signal
Illustration: candles, 9- and 21-session moving averages and volume of a fictional ticker; fictional data.
Fundamentals

Trailing-12-month margins, ROE and debt, straight from CVM open data

Left-to-right flow: the CVM Open Data Portal delivers DFP, ITR and FCA zips under the ODbL licence; pandas keeps the highest version of each filing, the ÚLTIMO (current) fiscal year and the consolidated statements, and converts the MIL (thousands) scale; the trailing-12-month calculation adds the 2025 annual figure to the 2026 year-to-date and subtracts the 2025 year-to-date; out come indicadores.csv and origem.csv; the analyst checks against the PDF and, if publishing, signs as an accredited analyst; below, a separate branch notes that B3's COTAHIST comes in downloaded by a person CVM data open dfp_…_2025.zip itr_…_2026.zip fca_…_2026.zip ODbL pandas: clean VERSAO = max ORDEM = ÚLTIMO *_con_* consolidated MIL × 1000 ticker → CNPJ (FCA) trailing 12 months (TTM) annual 2025 + Jan–Sep 2026 − Jan–Sep 2025 ITR has no 4th quarter: it comes from the DFP origem.csv (one row per value) ratio account version revenue 3.01 2 profit 3.11.01 2 deprec. 7.04.01 2 indicadores.csv · AAAA3 (fictional) net margin 9.8% ROE 14.2% net debt/EBITDA 1.6x P/E 8.9 analyst checks the PDF; published to others: signs P/E price: B3 COTAHIST, downloaded by a person (no bot)
Illustration: from the CVM zips to the ratio with its source account; fictional data.
Sector comparison

Three companies in the same sector in a notebook that runs again and gives the same result

Comparison table of three fictional companies in the same sector, AAAA3, BBBB4 and CCCC3, with the group median: gross margin 32.4, 27.1 and 35.8 percent; net margin 9.8, 6.3 and 12.1 percent; ROE 14.2, 11.0 and 18.5 percent; net debt to EBITDA 1.6, 2.8 and 0.7 times; P/E 8.9, 11.4 and 13.2; each cell has a horizontal bar of the same colour and a median mark; below, the notebook footer with versions, sha256 of the inputs and the note that the table is not a buy ranking ratio (TTM) AAAA3 BBBB4 CCCC3 median gross margin net margin ROE net debt/EBITDA P/E 32.4%27.1%35.8%32.4% 9.8%6.3%12.1%9.8% 14.2%11.0%18.5%14.2% 1.6x2.8x0.7x1.6x 8.911.413.211.4 parameters: CODIGOS, DATA_BASE = 2026-09-30 · a single cell environment: python, pandas, matplotlib (versions printed) inputs: indicadores.csv 4be1… origem.csv 90c2… same colour for all; tick = median; not a buy ranking
Illustration: comparison table of ratios for three fictional companies; fictional data.
03

Eight arms, one traceable number.

The same Octo cycle, applied to quotes and financial statements. Each arm has a narrow role; the people decide and the people sign.

  1. Discovery

    Surveys the sources

    Which files exist, who owns them, under which licence and with what delay: open CVM, B3 under terms, community library.

  2. Data

    Understands the format

    CVM data dictionary, COTAHIST layout, scale, restatement version, current and prior fiscal year.

  3. Security

    Looks after access and data

    No broker password or API key in a file; portfolios and client data under the LGPD (Brazil's data protection law), kept out of external services unless someone decides otherwise.

  4. Architecture

    Chooses the path

    Public bulk file, community library for study only, or a data contract when the use is commercial or real-time.

  5. Development

    Writes the scripts

    Reading, calculation and charting kept separate, with parameters, output to a new folder and a sha256 manifest.

  6. Review

    Checks by content

    Consistent candles, TTM matching the PDF, banks left out of margins, empty P/E when earnings are negative.

  7. Release

    Prepares the delivery

    PNG, CSV and report with source, date and disclaimer. Publishing to third parties is for someone registered to do so.

  8. Documentation

    Records the assumptions

    Formulas, accounts used, library and data versions, and what changed from one run to the next.

Octo does not recommend buying or selling, does not build model portfolios and does not sign analysis reports. It calculates, draws and shows where every number came from.

04

Each piece of data, its source and its terms.

The criteria Octo uses to choose where to get the data, and what changes when the use is no longer personal.

DataSourceNote
Balance sheet, income, cash flow, value addedCVM: DFP and ITR as open dataODbL, weekly; consolidated and individual in separate files
Ticker and sectorCVM: FCA and registryCodigo_Negociacao, Setor_Atividade, SETOR_ATIV
Share count and treasury sharesCVM: capital composition (DFP/ITR)Basis for market value in the P/E
Historical closing priceB3: COTAHIST, downloaded by a personNot adjusted for payouts; automated collection prohibited by B3
Real-time or up-to-15-minute quotesContract with B3 or a distributorLicensed; Octo does not replace the contract
Quick personal studyyfinance (community, Apache-2.0)Not affiliated with Yahoo; personal use under Yahoo's terms
Investor's spreadsheetLibreOffice, Excel, Google SheetsSee Portfolio and income tax
Report for clientsCVM-registered professionalSee Regulation and ethics
05

From one ticker's chart to a traceable base.

Three steps. Each only makes sense after the previous one has shown results in your own use.

A proposal, not a promise

1 Today

Chart from the file

Octo reads the COTAHIST you downloaded and returns the chart and the numbers, with no third-party screen.

  • Candles, averages, volume, RSI
  • Checked candles
  • Corporate event warning
Gain: a chart you know the source of
2 Next

CVM fundamentals

Trailing-12-month ratios with the source account, to check against the PDF in minutes.

  • DFP, ITR and FCA
  • Version and scale handled
  • Source trail
Gain: no more "every site shows a different P/E"
3 Later

Reproducible sector comparison

Notebook with parameters, versions and fingerprints; the registered professional uses it as a base and signs.

  • Group median
  • Report with assumptions
  • Same input, same output
Gain: analysis someone else can redo
06

Confirmed at the source, and the limit of the law.

What has a source is stated as fact, with the reference beside it. And what the law reserves to registered professionals stays with them.

6

points with a published source, each with its reference alongside.

Octo calculates and shows; it does not recommend. It does not say "buy" or "sell", does not point to the "best stock" and does not build model portfolios. A text, study, video or presentation about a specific stock or issuer that may influence third parties' decisions is an analysis report, an activity reserved to securities analysts accredited by an entity authorised by the CVM (CVM Resolution 20/2021, arts. 1 and 2), and the report is signed by the analyst (art. 20). Personalised advice to a client is the job of a securities consultant (CVM Resolution 19/2021). The investor decides; client data follows the LGPD.

ConfirmedCVM open data
DFP and ITR under the ODbL licence, updated weekly; DFP files from 2010 to 2026 in the data directory.Source: dados.cvm.gov.br, datasets cia_aberta-doc-dfp and -itr (12 Nov 2026)
ConfirmedVersion and fiscal year
Each row carries VERSAO, ORDEM_EXERC (ÚLTIMO and PENÚLTIMO) and ESCALA_MOEDA (MIL or UNIDADE); the ITR carries the standalone quarter and the year to date.Source: DFP 2025 and ITR 2026 files read on 12 Nov 2026
ConfirmedB3 prohibits automated collection
The historical quotes page says the data are "strictly for informational consultation" and prohibits automated collection, including by AI.Source: b3.com.br, Historical quotes (12 Nov 2026)
ConfirmedReal-time data is licensed
A distribution contract is required for real-time data or data delayed by up to 15 minutes.Source: B3, market data distributor FAQ (12 Nov 2026)
ConfirmedAccredited analyst
Securities analysis is reserved to accredited analysts; APIMEC has been a CVM-authorised accrediting entity since 4 Sep 2018.Source: CVM Resolution 20/2021, arts. 1, 2 and 20; Board decision of 4 Sep 2018
Confirmedyfinance
1.8.0 of 3 Nov 2026, Apache-2.0; the project states it is not affiliated with Yahoo and refers to Yahoo's terms of use.Source: PyPI (12 Nov 2026)
07

What Octo does and what stays with you.

Octo prepares everything, but it does not sign. The document of record stays with whoever is accountable for it.

Drawing of an investor and a friend sitting at a table, looking at a candlestick chart on a laptop; she reads the chart and decides for herself
Illustration: the investor shows the chart to her friend; she is the one who decides

Octo prepares

Collects the public data, calculates, checks and puts the material together: spreadsheets, charts, reproducible notebooks, calculation records and draft reports, with the source and date of every number.

Deliverable: material ready to check

Your team checks

Whoever is accountable for the portfolio, the tax or the report checks what Octo delivered before using it. If something does not add up, it goes back to Octo with the correction.

Step: checked by the person accountable

Who signs and decides

Octo does not recommend investments and does not sign. The decision to invest belongs to the investor; recommendations to third parties, analysis reports and suitability stay with the CVM-registered professional; the tax stays with the taxpayer and the accountant.

Decision: the investor and the CVM-registered professional
08

Sources.

CVM Open Data Portal, CVM resolutions, B3 pages and layout, PyPI and Yahoo's terms, consulted on 12 Nov 2026.

Your stock studies, with numbers you know the source of.

The diagnosis starts with a ticker and a balance sheet you already follow. You get the chart, the ratios with their source accounts and the questions only you can answer, and you decide with that in hand.