Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Obtener la tasa de cambio representativa del mercado para Colombia con PHP
<?php
$date = date("Y-m-d");
try {
$soap = new soapclient("https://www.superfinanciera.gov.co/SuperfinancieraWebServiceTRM/TCRMServicesWebService/TCRMServicesWebService?WSDL", array(
'soap_version' => SOAP_1_1,
'trace' => 1,
"location" => "http://www.superfinanciera.gov.co/SuperfinancieraWebServiceTRM/TCRMServicesWebService/TCRMServicesWebService",
));
$response = $soap->queryTCRM(array('tcrmQueryAssociatedDate' => $date));
$response = $response->return;
if($response->success){
echo $response->value;
}
} catch(Exception $e){
echo $e->getMessage();
}
?>
@melimestiza

This comment has been minimized.

Copy link

@melimestiza melimestiza commented May 18, 2016

Sabes como podría acceder a cualquier tasa de cambio no solo el dólar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment