MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / requestCvmFile

Function requestCvmFile

services/cvm/corretoras.js:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const LINE_BREAK = '\r\n';
5
6async function requestCvmFile() {
7 const fileUrl =
8 'https://dados.cvm.gov.br/dados/INTERMED/CAD/DADOS/cad_intermed.zip';
9 return axios.get(fileUrl, {
10 responseType: 'arraybuffer',
11 });
12}
13
14function getIntermediatorsFromZip(data) {
15 const zip = new AdmZip(data);

Callers 1

getExchangesDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected