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.
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.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/bfd0e5c2-c850-4e17-ba9d-d9bdf31ab4e6/get_corn_futures_quotes' \ -H 'X-API-Key: $PARSE_API_KEY'
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")
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.
No input parameters required.
{
"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.
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?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- 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.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 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.
Does ADVFN Brazil offer an official developer API?+
What exactly does the quotes array contain for each contract?+
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?+
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.