Back to homeRenato Probst
Case study · Mobile app · Website

Cotações FAEP

SISTEMA FAEP/SENAR-PR

Mobile app · Website

Live commodity prices for farmers in Paraná, from CBOT, B3, CMA, Deral and regional sites no API covered. I built the crawlers and the NestJS middleware that feed the app and the website.

  • NestJS
  • Node.js
  • React
  • React Native
  • Firebase Firestore
  • Web crawlers
  • CMA API
  • PostgreSQL
  • Cron jobs
Read the full case

See it live

  • App Store
  • Google Play
5

price sources in one feed: CBOT, B3, CMA, Deral and web crawlers

6

categories: soy, corn, wheat, beans, cattle and currency

4

units to convert between, from cent US$/bushel to R$/60kg

$ cat README.md

The full case

On this page

  • Overview
  • Company
  • Multi-Source Commodity Prices
  • Unit Conversion Tools
  • NestJS Data Aggregation Middleware
  • Web Integration

Overview

Cotacoes FAEP is a dedicated mobile application and web module that provides Brazilian farmers and agricultural professionals with real-time access to commodity market data from multiple authoritative sources. In a country where agriculture is the backbone of the economy and timely market information can make the difference between profit and loss, this tool gives producers the data they need to make informed selling and buying decisions. The application aggregates stock market and commodity pricing data from CBOT (Chicago Board of Trade), B3 (Bolsa do Brasil), CMA (a leading Brazilian financial data provider), websites using custom web crawlers, and Deral futures market data. I designed and built the NestJS middleware that fetches, normalizes, and stores this data from multiple heterogeneous sources into Firebase Firestore, providing a unified API that both the mobile app and the website can consume in a single request. One of the most technically challenging aspects of this project was the data aggregation layer. Standard financial data APIs did not cover regional agricultural commodities important to Parana state farmers. To solve this, I built custom web crawlers that extract pricing data from specialized websites and combine it with structured API data, creating a comprehensive market data feed that was previously unavailable in any single source.

Company

SISTEMA FAEP/SENAR-PR is the Federation of Agriculture of the State of Parana, one of the most important agricultural organizations in southern Brazil. It serves farmers, agricultural professionals, and students with market data, professional training, weather information, and institutional support.

Fig. 01 · Company

Multi-Source Commodity Prices

The app displays commodity prices organized by product category — soy, corn, wheat, beans, cattle, and currency exchange rates. Each commodity shows data from multiple exchanges and sources (CBOT, B3, CMA), with futures contract prices, date ranges, and variation percentages. Users can see how prices have changed over time and compare data across different sources to make better-informed decisions about when and where to sell their production.

Unit Conversion Tools

Agricultural commodities are traded in different units depending on the exchange and market convention. The app includes built-in conversion tools that allow users to switch between units like cent US$/bushel, US$/ton, R$/ton, and R$/60kg. This removes the friction of manual conversions and helps farmers quickly understand prices in the units most relevant to their operations.

NestJS Data Aggregation Middleware

The technical core of the system is a NestJS backend service that runs on scheduled jobs (cron) to fetch stock market data from multiple sources. The middleware normalizes data formats, handles error recovery, and pushes updated prices to Firebase Firestore. The web frontend and mobile app both consume this data through a unified API, ensuring consistency across platforms. The architecture was designed for reliability, with fallback mechanisms when individual data sources are temporarily unavailable.

Web Integration

The commodity prices module is embedded in the Sistema FAEP website as a fully responsive React component. It uses Bootstrap for the layout grid and React for interactive features like tabbed navigation between commodity categories, price conversion dropdowns, and real-time data updates. The web version shares the same Firebase Firestore data source as the mobile app.

Fig. 05 · Web Integration
Up next

Weather FAEP

Next projectBack to home