API de cotação da ação BBDC4 em JSON
Consulte BBDC4 (Banco Bradesco) via REST: cotação e fundamentos em JSON, com exemplos em curl, Python e Node.
Indicadores de BBDC4
| Nome | Banco Bradesco |
|---|---|
| Último fechamento | R$ 14,34 (04/12/2026) |
| P/VP | 0,85 |
| Dividend yield | 10,65% |
| P/L | 6,26 |
| ROE | 13,62% |
curl
curl -H "Authorization: Bearer $SLDX_TOKEN" \ https://api.sldx.com.br/stock-price/BBDC4
Exige um token grátis: criar chave. O plano Free inclui este endpoint.
Python
import os
import requests
r = requests.get("https://api.sldx.com.br/stock-price/BBDC4", headers={"Authorization": f"Bearer {os.environ['SLDX_TOKEN']}"}, timeout=10)
r.raise_for_status()
print(r.json())
Node.js 18+
const r = await fetch("https://api.sldx.com.br/stock-price/BBDC4", { headers: { Authorization: `Bearer ${process.env.SLDX_TOKEN}` } });
console.log(await r.json());
Formato da resposta
{
"success": true,
"result": {
"bbdc4": {
"exchange_code": "BVMF",
"name": "Banco Bradesco",
"current_price": number,
"high_24h": number,
"low_24h": number,
"change_24h": number,
"lastUpdated": unix timestamp
}
}
}
Também: GET /stock-fundamentals/BBDC4 (Free) e GET /stock-dividends/BBDC4 (plano pago). Detalhes na documentação.