API de cotação da ação WEGE3 em JSON
Consulte WEGE3 (WEG SA) via REST: cotação e fundamentos em JSON, com exemplos em curl, Python e Node.
Indicadores de WEGE3
| Nome | WEG SA |
|---|---|
| Último fechamento | R$ 49,59 (04/12/2026) |
| P/VP | 10,43 |
| Dividend yield | 3,13% |
| P/L | 33,20 |
| ROE | 31,41% |
curl
curl -H "Authorization: Bearer $SLDX_TOKEN" \ https://api.sldx.com.br/stock-price/WEGE3
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/WEGE3", 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/WEGE3", { headers: { Authorization: `Bearer ${process.env.SLDX_TOKEN}` } });
console.log(await r.json());
Formato da resposta
{
"success": true,
"result": {
"wege3": {
"exchange_code": "BVMF",
"name": "WEG SA",
"current_price": number,
"high_24h": number,
"low_24h": number,
"change_24h": number,
"lastUpdated": unix timestamp
}
}
}
Também: GET /stock-fundamentals/WEGE3 (Free) e GET /stock-dividends/WEGE3 (plano pago). Detalhes na documentação.