Skip to content

Instantly share code, notes, and snippets.

View gasiferox's full-sized avatar
🎯
Focused

Gustavo Romero gasiferox

🎯
Focused
View GitHub Profile
@cdiaz
cdiaz / TrmSoapClient.py
Last active July 20, 2024 19:22
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
WSDL_URL = 'https://www.superfinanciera.gov.co/SuperfinancieraWebServiceTRM/TCRMServicesWebService/TCRMServicesWebService?WSDL'
date = time.strftime('%Y-%m-%d')
def trm(date):
try:
client = Client(WSDL_URL, location=WSDL_URL, faults=True)