Jump to content

Indicadores financieros


Recommended Posts

Con este código:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Valor de - UF, DOLAR, UTM, EURO en pesos chilenos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verify-v1" content="bLAgPGNbzTOSzA2PfhEQ0639SjerEm7Dh253YZZeyiI=" />
<link rel="shortcut icon" href="favicon.ico" />
<!--<meta name="keywords" content="valor, UF, utm, ipsa, dolar, euro, merval, ipc, restriccion, vehicular" /> -->
<meta name="description" content="Valor de la UF, Valor de la UTM, Valor del dolar, Valor del Euro, Tasa IPC, Indice Merval, restriccion vehicular" />
<script type="text/javascript" src="http://www.bci.cl/common/include/valores.js"></script>
</head>
<body>
<div class="contenedor">
 <h1>VALOR DEL EURO, DOLAR, UTM, UF Y OTROS</h1>
 <div class="left">
   <div class="indicadoresshadowr">
  <div class="indicadores">
    <h3>
	  <script language="javascript" type="text/javascript" src="js/time.js"></script>
    </h3>
    <table width="90%" border="0" align="center">
	  <tr>
	    <td align="left">UF</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[4].valor2));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">UTM</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[5].valor2));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">Dolar Observado</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
  if(typeof(arrValores[55])=="object")
   document.write(formatear_numero(arrValores[55].valor2));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">Euro</td>
	    <td align="right">$
		  <script type="text/javascript" src="js/euro.js"></script></td>
	  </tr>
	  <tr>
	    <td align="left">IPC</td>
	    <td align="right"><script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[23].valor2 + '%'));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">Indice Merval</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[2].valor2));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">YEN Japones</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[9].valor2));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">Cobre</td>
	    <td align="right">¢
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[13].valor2));
   </script></td>
	  </tr>
    </table>
    <h3>Bolsa de Comercio</h3>
    <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td align="left">IGPA-Santiago Stock Exch.</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[1].valor2));
   </script></td>
	  </tr>
	  <tr>
	    <td align="left">IPSA</td>
	    <td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[19].valor2));
   </script></td>
	  </tr>
    </table>
    <em>se han detectado problemas mostrando esta información en <strong>Internet Explorer 6</strong></em> </div>
 </body>
</html>

 

Nos colgamos de este js http://www.bci.cl/common/include/valores.js y funciona ok....inclúyelo en tu web y ve que tal funciona.

 

 

Saludos :krider:

Link to comment
Share on other sites

yo hace tiempo tambien necesitaba de esos datos por lo que cree un webservice que va recogiendo los datos del banco central y los entrega en formato json para ser utilizados en cualquier parte.

te dejo el link por si te interesa. saludos,

 

http://184.72.228.125/indicadores/json

Excelente...una pregunta, como lo hiciste??...alguna pista?

Link to comment
Share on other sites

  • 2 weeks later...

Con este código:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Valor de - UF, DOLAR, UTM, EURO en pesos chilenos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verify-v1" content="bLAgPGNbzTOSzA2PfhEQ0639SjerEm7Dh253YZZeyiI=" />
<link rel="shortcut icon" href="favicon.ico" />
<!--<meta name="keywords" content="valor, UF, utm, ipsa, dolar, euro, merval, ipc, restriccion, vehicular" /> -->
<meta name="description" content="Valor de la UF, Valor de la UTM, Valor del dolar, Valor del Euro, Tasa IPC, Indice Merval, restriccion vehicular" />
<script type="text/javascript" src="http://www.bci.cl/common/include/valores.js"></script>
</head>
<body>
<div class="contenedor">
 <h1>VALOR DEL EURO, DOLAR, UTM, UF Y OTROS</h1>
 <div class="left">
<div class="indicadoresshadowr">
  <div class="indicadores">
	<h3>
	  <script language="javascript" type="text/javascript" src="js/time.js"></script>
	</h3>
	<table width="90%" border="0" align="center">
	  <tr>
		<td align="left">UF</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[4].valor2));
</script></td>
	  </tr>
	  <tr>
		<td align="left">UTM</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[5].valor2));
</script></td>
	  </tr>
	  <tr>
		<td align="left">Dolar Observado</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
  if(typeof(arrValores[55])=="object")
   document.write(formatear_numero(arrValores[55].valor2));
</script></td>
	  </tr>
	  <tr>
		<td align="left">Euro</td>
		<td align="right">$
		  <script type="text/javascript" src="js/euro.js"></script></td>
	  </tr>
	  <tr>
		<td align="left">IPC</td>
		<td align="right"><script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[23].valor2 + '%'));
</script></td>
	  </tr>
	  <tr>
		<td align="left">Indice Merval</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[2].valor2));
</script></td>
	  </tr>
	  <tr>
		<td align="left">YEN Japones</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[9].valor2));
</script></td>
	  </tr>
	  <tr>
		<td align="left">Cobre</td>
		<td align="right">¢
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[13].valor2));
</script></td>
	  </tr>
	</table>
	<h3>Bolsa de Comercio</h3>
	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td align="left">IGPA-Santiago Stock Exch.</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[1].valor2));
</script></td>
	  </tr>
	  <tr>
		<td align="left">IPSA</td>
		<td align="right">$
		  <script type="text/javascript">
 if(typeof(arrValores) != "undefined")
 if(typeof(arrValores[4])=="object")
 document.write(formatear_numero(arrValores[19].valor2));
</script></td>
	  </tr>
	</table>
	<em>se han detectado problemas mostrando esta información en <strong>Internet Explorer 6</strong></em> </div>
 </body>
</html>

 

Nos colgamos de este js http://www.bci.cl/co...lude/valores.js y funciona ok....inclúyelo en tu web y ve que tal funciona.

 

 

Saludos :krider:

 

 

Gracias!!! :D me salvaste

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...