Discover/ADVFN API
live

ADVFN APIbr.advfn.com

Access real-time corn (milho) futures quotes from B3/BMF via ADVFN Brazil. Get contract codes, expiration dates, last prices, highs/lows, and volume.

This API takes change requests — .
Endpoint health
monitored
get_corn_futures_quotes
Checks pendingself-healing
Endpoints
1
Updated
3h ago

What is the ADVFN API?

This API exposes corn futures contract data from ADVFN Brazil through a single endpoint, get_corn_futures_quotes, returning up to 8 fields per active contract listed on B3/BMF. Each record includes the contract code, expiration month, last traded price, price variation, daily high and low, and trading volume — delivered as a snapshot of all currently listed contracts in one call.

Try it

No input parameters required.

api.parse.bot/scraper/bfd0e5c2-c850-4e17-ba9d-d9bdf31ab4e6/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/bfd0e5c2-c850-4e17-ba9d-d9bdf31ab4e6/get_corn_futures_quotes' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace br-advfn-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.


"""Walkthrough: ADVFN Brazil Corn Futures SDK — bounded, re-runnable."""
from parse_apis.br_advfn_com_api import AdvfnCornFutures, ParseError

client = AdvfnCornFutures()

# List all active corn futures contracts
for quote in client.quotes.list(limit=3):
    print(quote.code, quote.expiration, quote.last_price, quote.volume)

# Get the nearest contract
nearest = client.quotes.list(limit=1).first()
try:
    print(nearest.code, nearest.expiration, nearest.variation)
except ParseError as e:
    print(f"error: {e.code}")

print("exercised: quotes.list")
All endpoints · 1 totalmissing one? ·

Retrieves all active corn (milho) futures contract quotes from B3/BMF as listed on ADVFN Brazil. Returns one record per contract with code, expiration month, last price, price variation, daily high/low, and volume. Results are a single-page snapshot of all currently listed contracts.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "quotes": "array of corn futures contract quotes"
  },
  "sample": {
    "data": {
      "quotes": [
        {
          "low": null,
          "code": "BMF:CCMU26",
          "high": null,
          "volume": "3.655",
          "variation": "0,62",
          "detail_url": "https://br.advfn.com/bolsa-de-valores/bmf/CCMU26/cotacao",
          "expiration": "Setembro 2026",
          "last_price": "70,64"
        },
        {
          "low": null,
          "code": "BMF:CCMX26",
          "high": null,
          "volume": "1.719",
          "variation": "0,57",
          "detail_url": "https://br.advfn.com/bolsa-de-valores/bmf/CCMX26/cotacao",
          "expiration": "Novembro 2026",
          "last_price": "74,6"
        }
      ]
    },
    "status": "success"
  }
}

About the ADVFN API

What get_corn_futures_quotes Returns

The get_corn_futures_quotes endpoint returns an array of objects under the quotes key, one entry per active corn (milho) futures contract currently listed on B3/BMF as shown on ADVFN Brazil. Each object includes the contract code (e.g., CCM), the expiration month, the last traded price, the price variation from the previous close, the day's high and low prices, and trading volume. No input parameters are required — a single call retrieves the full set of listed contracts.

Data Scope and Freshness

The response reflects a point-in-time snapshot of all active contracts on the board. Because the endpoint takes no inputs, there is no filtering by expiration range, contract month, or minimum volume. All currently listed corn futures contracts are returned together. This makes it straightforward to build a complete view of the corn futures curve as quoted on ADVFN Brazil without assembling multiple requests.

Practical Notes

Price variation is expressed relative to the prior session's close, so intraday moves are visible per contract. Volume figures correspond to the current trading session. Contract codes follow B3 naming conventions, so they map directly to exchange-listed instruments if you need to cross-reference with other B3 data sources.

Reliability & maintenance

The ADVFN API is a managed, monitored endpoint for br.advfn.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when br.advfn.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official br.advfn.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Plot the corn futures price curve across all active expiration months using last-price and expiration-month fields.
  • Monitor intraday price variation per contract to detect unusual session moves in Brazilian corn futures.
  • Compare daily high/low ranges across contract months to assess near-term versus deferred volatility.
  • Track trading volume by contract code to identify which expiration months are most actively traded on B3.
  • Feed corn futures last prices into an agricultural commodity dashboard alongside other crop futures.
  • Alert when price variation for any active contract exceeds a defined threshold in a single session.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does ADVFN Brazil offer an official developer API?+
ADVFN does offer data services and API products through its main platform at advfn.com, primarily aimed at institutional clients. There is no publicly documented free-tier REST API for the Brazilian site's futures data that developers can self-serve against.
What exactly does the quotes array contain for each contract?+
Each element in the quotes array represents one active corn futures contract and includes: contract code, expiration month, last traded price, price variation from the previous close, daily high price, daily low price, and trading volume for the current session.
Does the API support filtering contracts by expiration date or minimum volume?+
The get_corn_futures_quotes endpoint takes no input parameters, so filtering by expiration range or volume threshold is not built in — all listed contracts are returned together. You can fork this API on Parse and revise it to add filtering logic or a parameter that limits results by expiration month or volume floor.
Are futures contracts for other commodities like soybeans or cattle covered?+
This API covers corn (milho) futures only. Soybean, cattle, coffee, and other B3 commodity futures contracts are not included in the current endpoint. You can fork the API on Parse and revise it to add endpoints targeting other ADVFN Brazil commodity futures pages.
How current is the price data returned by get_corn_futures_quotes?+
The data reflects what ADVFN Brazil displays on its corn futures quotes page at the time of the request. ADVFN Brazil's own feed is delayed by 15 minutes for most users, so the returned prices may not represent the real-time last trade on B3 unless you have a live data entitlement on ADVFN.
Page content last updated . Spec covers 1 endpoint from br.advfn.com.
Related APIs in FinanceSee all →
barchart.com API
Monitor live stock quotes and commodity prices, analyze options chains with gamma exposure data, and access historical market time series to track top-performing stocks. Use real-time and historical data to make informed trading and investment decisions across equities and commodities.
infomoney.com.br API
Track Brazilian stocks, currencies, and cryptocurrencies with real-time quotes, historical OHLCV data, fundamentals, and dividends. Access intraday price movements, top B3 movers, exchange rates, and market news from InfoMoney.
statusinvest.com.br API
Search and analyze Brazilian stocks with real-time market data, including detailed financial indicators, historical price movements, and dividend information. Track stock performance and investment metrics all in one place.
investidor10.com.br API
Access comprehensive Brazilian stock and real estate investment fund data including listings, technical indicators, dividend history, and historical price quotes. Search and retrieve detailed information about individual assets to analyze their performance and financial metrics.
agweb.com API
Access real-time agricultural news, commodity futures prices for corn and soybeans, and local cash grain bids to stay informed on market trends and pricing. Search articles by category, view detailed market analysis, and get weekend market reports to make informed farming and trading decisions.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
benzinga.com API
Access real-time stock quotes, company fundamentals, financial news, and analyst ratings all in one place to make informed investment decisions. Track market movements and research companies with up-to-date pricing, ratings, and news coverage.
comexlive.org API
Monitor real-time gold, silver, and platinum prices from COMEX futures markets, and stay updated with the latest commodity news and articles. Get current pricing data for all COMEX commodities and access detailed news coverage to inform your trading and investment decisions.