Code Monkey home page Code Monkey logo

Comments (5)

juanbrujo avatar juanbrujo commented on June 2, 2024 2

pienso cambiar la fuente de la informacion a http://mindicador.cl/api/

from huemul.

gaulatti avatar gaulatti commented on June 2, 2024

Testing: June 10 (Sat) @ 3:23PM
huemul finvox btc
BTC: $1.899.069. La economía seguirá mal para ti, pero no para tu AFP. 💰

from huemul.

gaulatti avatar gaulatti commented on June 2, 2024

La api que se consulta "http://indicadoresdeldia.cl/webservice/indicadores.json" no trae esa info.

from huemul.

gaulatti avatar gaulatti commented on June 2, 2024

Lo que podría hacer, es calcular el dólar en base a la info de los bitcoins:
Desde https://blockchain.info/es/ticker

{
    "USD" : {"15m" : 2871.14, "last" : 2871.14, "buy" : 2870.13, "sell" : 2871.15,  "symbol" : "$"},
    "CLP" : {"15m" : 1905001.39, "last" : 1905001.39, "buy" : 1904331.26, "sell" : 1905008.03,  "symbol" : "$"}
}

Por lo tanto: Si BTC-USD: 2871.14 y BTC-CLP: 1905001.39
USD-CLP: 1905001.39 / 2871.14 = 663.5

Eso significa que usando la info real-time de BTC podriamos convertir entre diversas monedas. No solo USD-CLP.

Makes sense?
@juanbrujo

from huemul.

JoseMCO avatar JoseMCO commented on June 2, 2024

lo otro sería usar la misma api pero en XML, que sí trae la info

<indicadores version="2,6" date="2017-10-01 11:30:04" url="http://indicadoresdeldia.cl/" author="Restart.cl Lab">
    (...)
    <moneda>
        <dolar valor="636.85" nombre="Dólar observado">$636,85</dolar>
        <dolar_clp valor="758.87" nombre="Dólar acuerdo">$758,87</dolar_clp>
        <euro valor="750.47" nombre="Euro">$750,47</euro>
    </moneda>
    <indicador>
        <ivp valor="23686.41" nombre="Indice de valor promedio (IPV)">$23.686,41</ivp>
        <uf valor="26658.56" nombre="Unidad de fomento (UF)">$26.658,56</uf>
        <ipc valor="0.2" nombre="Indice de Precios al Consumidor (IPC)">0,2</ipc>
        <utm valor="46786.00" nombre="Unidad tributaria mensual (UTM)">$46.786,00</utm>
        <imacec valor="2.8" nombre="Indicador mensual de actividad económica (IMACEC)">2,8</imacec>
    </indicador>
    (...)
</indicadores>

from huemul.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.