NAV
javascript

Metals

Get metal data

This endpoint retrieves metals data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/metals/?metal=gold&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-03-25",
      "time": "06:25:00",
      "open": null,
      "close": 1731.47,
      "high": null,
      "low": null
    },
    {
      "date": "2021-03-24",
      "time": "12:00:00",
      "open": null,
      "close": 1736.7,
      "high": null,
      "low": null
    }
  ]
}
Parameter Default Description
metal null Can be gold, silver, copper, platinum, palladium or iron.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Covid Stats

Get covid stats data

This endpoint retrieves covid data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/covid_stats/?country=brazil&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-03-24",
      "country": "Brazil",
      "confirmed": 12220011,
      "deaths": 300685,
      "recovered": 10750131,
      "active": 1169195
    },
    {
      "date": "2021-03-23",
      "country": "Brazil",
      "confirmed": 12130019,
      "deaths": 298676,
      "recovered": 10665161,
      "active": 1166182
    }
  ]
}
Parameter Default Description
country null Can be brazil, usa, china, italy, portugal, france, india, germany, japan or russia.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Stock Exchanges

Get stock exchange data

This endpoint retrieves stock exchanges data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/stock_exchanges/?stock=dji&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-03-24",
      "time": "00:00:00",
      "stock": "DJI       ",
      "open": 32470.88,
      "high": 32787.99,
      "low": 32418.15,
      "close": 32420.06,
      "adjClose": 32420.06,
      "volume": 3993
    },
    {
      "date": "2021-03-23",
      "time": "00:00:00",
      "stock": "DJI       ",
      "open": 32691.5,
      "high": 32753.77,
      "low": 32356.28,
      "close": 32423.15,
      "adjClose": 32423.15,
      "volume": 3858
    }
  ]
}
Parameter Default Description
stock null Can be dji, ibovespa, nikkei_225, sep_500 or sse.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Oils

Get oil data

This endpoint retrieves oils data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/oils/?oil=brent&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-03-25T00:00:00",
      "oil": "brent",
      "open": 64.15,
      "high": 64.15,
      "low": 62.99,
      "close": 63.67,
      "volume": 5564
    },
    {
      "date": "2021-03-24T00:00:00",
      "oil": "brent",
      "open": 60.35,
      "high": 64.56,
      "low": 60.34,
      "close": 64.41,
      "volume": 43200
    }
  ]
}
Parameter Default Description
oil null Can be brent or crude.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Big Mac Index

Get big mac index data

This endpoint retrieves big mac index data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/big_mac/?country=brazil&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-01-01T00:00:00",
      "countryCode": "BRA",
      "currencyCode": "BRL",
      "countryName": "Brazil",
      "localPrice": 21.9,
      "dollarEx": 5.5046,
      "dollarPrice": 3.97849071685499,
      "usdRaw": -0.29709,
      "eurRaw": -0.22957,
      "gbpRaw": -0.10348,
      "jpyRaw": 0.06394,
      "cnyRaw": 0.15005,
      "gdpDollar": 8751.381,
      "adjustedPrice": 3.21778192537769,
      "usdAdjusted": 0.20101,
      "eurAdjusted": 0.06636,
      "gbpAdjusted": 0.27461,
      "jpyAdjusted": 0.48431,
      "cnyAdjusted": 0.17219
    },
    {
      "date": "2020-07-01T00:00:00",
      "countryCode": "BRA",
      "currencyCode": "BRL",
      "countryName": "Brazil",
      "localPrice": 20.9,
      "dollarEx": 5.34045,
      "dollarPrice": 3.91352788622682,
      "usdRaw": -0.31462,
      "eurRaw": -0.18232,
      "gbpRaw": -0.08505,
      "jpyRaw": 0.07647,
      "cnyRaw": 0.26306,
      "gdpDollar": 8958.576,
      "adjustedPrice": 2.97800388981275,
      "usdAdjusted": 0.1909,
      "eurAdjusted": 0.16771,
      "gbpAdjusted": 0.33581,
      "jpyAdjusted": 0.52339,
      "cnyAdjusted": 0.2738
    }
  ]
}
Parameter Default Description
country null Can be brazil, usa, china, australia, europe, india, japan, russia or hong_kong.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

PIB Monitors

Get pib monitor data

This endpoint retrieves pib monitors data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/pib_monitors/?country=brazil&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "country": "Brasil",
      "date": "2021-03-03",
      "period": "4 trim. 2020",
      "actual": 3.2,
      "forecast": 7,
      "previous": 7.7
    },
    {
      "country": "Brasil",
      "date": "2020-12-03",
      "period": "3 trim. 2020",
      "actual": 7.7,
      "forecast": -10.4,
      "previous": -9.7
    }
  ]
}
Parameter Default Description
country null Can be brazil, usa, china, germany, australia, europe, south_africa, japan, united_kingdom or hong_kong.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Coffees

Get coffee data

This endpoint retrieves coffees data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/coffees/?coffee=robusta&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-02-05",
      "real": 424.72,
      "dollar": 78.86
    },
    {
      "date": "2021-02-04",
      "real": 425.91,
      "dollar": 78.09
    }
  ]
}
Parameter Default Description
coffee null Can be arabica or robusta.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

ICVA

Get ICVA data

This endpoint retrieves ICVA data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/icva/limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-02-01",
      "nominal": -9.9,
      "nominalAdjusted": -7.199999999999999,
      "deflated": -17.1,
      "deflatedAdjusted": -12.1
    },
    {
      "date": "2021-01-01",
      "nominal": -6.3,
      "nominalAdjusted": -3.9,
      "deflated": -12.6,
      "deflatedAdjusted": -10.3
    }
  ]
}
Parameter Default Description
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

ICS & ICR

Get ICS & ICR data

This endpoint retrieves ICS & ICR data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/ics_icr/?type=ics&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-03-04",
      "type": "ics",
      "estabelecimento": 99.1633561908453,
      "estabelecimentoImpact": 0.6334891384894625,
      "volume": 78.8166049306892,
      "volumeImpact": -20.25847206485667,
      "valor": 90.8975498433553,
      "valorImpact": -12.26485275280212
    },
    {
      "date": "2021-03-03",
      "type": "ics",
      "estabelecimento": 99.1633561908453,
      "estabelecimentoImpact": 0.6334891384894625,
      "volume": 78.8166049306892,
      "volumeImpact": -20.25847206485667,
      "valor": 90.8975498433553,
      "valorImpact": -12.26485275280212
    }
  ]
}
Parameter Default Description
type null Can be ics or icr.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

IPCA

Get IPCA data

This endpoint retrieves IPCA data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/ipca/?category=indice_geral&limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "year": 2021,
      "month": 2,
      "category": "Índice Geral",
      "monthVariation": null,
      "yearVariation": null,
      "monthWeight": null
    },
    {
      "year": 2021,
      "month": 1,
      "category": "Índice Geral",
      "monthVariation": 0.25,
      "yearVariation": 0.25,
      "monthWeight": 100
    }
  ]
}
Parameter Default Description
category null Can be indice_geral, alimentacao_e_bebidas, artigos_de_residencia, comunicacao, despesas_pessoais, educacao, habitacao, saude_e_cuidados_pessoais, transportes or vestuario.
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Savings Report

Get savings report data

This endpoint retrieves savings report data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/savings_report/?limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-03-18",
      "deposit": 7831461,
      "withdraw": 8612846,
      "netCapital": -781385,
      "yield": 50565,
      "balance": 1011003860
    },
    {
      "date": "2021-03-17",
      "deposit": 8037367,
      "withdraw": 9224633,
      "netCapital": -1187266,
      "yield": 48901,
      "balance": 1011734679
    }
  ]
}
Parameter Default Description
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Steel

Get steel data

This endpoint retrieves steel data.

Exemplo Request

fetch("https://www.plataformago.dragonflyinteligencia.com/api/steel/?limit=2", {
  "method": "GET",
  "headers": {}
})
.then(response => { console.log(response); })
.catch(err => { console.error(err); });

Exemplo Resposta

{
  "success": true,
  "content": [
    {
      "date": "2021-02-01",
      "production": 7700523,
      "productionRolledFlat": 1211463,
      "productionRolledLong": 838785,
      "productionSemifinishedSlab": 537701,
      "productionSemifinishedIngotBloomBillet": 19243,
      "productionPigIron": 2248147,
      "domesticSales": 1882947,
      "domesticSalesRolledFlat": 1090464,
      "domesticSalesRolledLong": 756890,
      "domesticSalesSemifinishedSlab": 13147,
      "domesticSalesSemifinishedIngotBloomBillet": 22446,
      "foreignMarket": 657043,
      "foreignMarketRolledFlat": 79576,
      "foreignMarketRolledLong": 61060,
      "foreignMarketSemifinishedSlab": 513623,
      "foreignMarketSemifinishedIngotBloomBillet": 2784,
      "exports": 765572,
      "exportsRolledFlat": 58394,
      "exportsRolledLong": 89533,
      "exportsSemifinishedSlab": 617598,
      "exportsSemifinishedIngotBloomBillet": 47,
      "imports": 333870,
      "importsRolledFlat": 133079,
      "importsRolledLong": 102509,
      "importsSemifinished": 333870,
      "apparentConsumption": 2125371,
      "apparentConsumptionFlat": 1237750,
      "apparentConsumptionLong": 887621
    },
    {
      "date": "2021-01-01",
      "production": 8220748,
      "productionRolledFlat": 1293969,
      "productionRolledLong": 872758,
      "productionSemifinishedSlab": 596597,
      "productionSemifinishedIngotBloomBillet": 24384,
      "productionPigIron": 2429518,
      "domesticSales": 1923804,
      "domesticSalesRolledFlat": 1134115,
      "domesticSalesRolledLong": 760218,
      "domesticSalesSemifinishedSlab": 8502,
      "domesticSalesSemifinishedIngotBloomBillet": 20969,
      "foreignMarket": 565529,
      "foreignMarketRolledFlat": 56711,
      "foreignMarketRolledLong": 73213,
      "foreignMarketSemifinishedSlab": 433273,
      "foreignMarketSemifinishedIngotBloomBillet": 2332,
      "exports": 531149,
      "exportsRolledFlat": 45998,
      "exportsRolledLong": 119227,
      "exportsSemifinishedSlab": 363490,
      "exportsSemifinishedIngotBloomBillet": 2434,
      "imports": 324474,
      "importsRolledFlat": 200906,
      "importsRolledLong": 74515,
      "importsSemifinished": 324474,
      "apparentConsumption": 2211070,
      "apparentConsumptionFlat": 1344807,
      "apparentConsumptionLong": 866263
    }
  ]
}
Parameter Default Description
limit null How many results should be returned. If null returns all.
offset null How many results should be skiped. If null skips 0.

Errors

The Dragonfly API uses the following error codes:

Error Code Meaning
4xx Bad Request -- Your request is invalid.
5xx Internal Server Error -- We had a problem with our server. Try again later.