Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Obtener La tasa de cambio representativa del mercado (TRM) para Colombia consumiendo el webservice de la Superintentencia Financiera desde Python
#!/usr/bin/env python
from suds.client import Client
import time
date = time.strftime('%Y-%m-%d')
def trm(date):
client = Client(WSDL_URL, location=WSDL_URL, faults=True)
trm = client.service.queryTCRM(date)
except Exception as e:
return str(e)
return trm
print trm(date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment