{
  "id": 3368237,
  "title": "Modeling three markets (BR / US / Crypto) with a single rebalancing engine",
  "url": "https://urgent.news/2026/08/25/modelando-tres-mercados-br-us-cripto-com-um-so-motor-de",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-25T22:02:57.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/diegocard117/modelando-tres-mercados-br-us-cripto-com-um-so-motor-de-rebalanceamento-33ih"
  },
  "original_language": "pt",
  "account": "The Balance app, a portfolio rebalancing tool, was initially developed for the Brazilian market, then expanded to US stocks and cryptocurrencies. To avoid creating separate apps for each market, the developer designed a single app with a core that remains unchanged across markets, and specific features that branch out from a single field, \"market\". The app's code differs across markets in four areas: price source, currency symbol, tax rules, and quantity precision. The rebalancing engine, which makes up 90% of the app's logic, remains largely shared across markets, with only minor adjustments for cryptocurrencies.",
  "summary": "Parte de uma série sobre construir o Balance , um app de rebalanceamento de carteira, como dev solo. O Balance começou como um app só do Brasil: tickers da B3, preços em reais, IR brasileiro. Depois vieram ações dos EUA. Depois cripto. O caminho ingênuo teria sido três apps colados — três buscadores de preço, três conjuntos de formulários, três motores de rebalanceamento. Em vez disso, tudo gira…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}