Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'order': 'ascending',
'interval': ['error']
},
{
'bond': 'Argentina 3Y',
'from_date': '01/01/2019',
'to_date': '01/03/2019',
'as_json': False,
'order': 'ascending',
'interval': 'error'
},
]
for param in params:
try:
investpy.get_bond_historical_data(bond=param['bond'],
from_date=param['from_date'],
to_date=param['to_date'],
as_json=param['as_json'],
order=param['order'],
interval=param['interval'])
except:
pass
params = [
{
'bond': None,
'as_json': False
},
{
'bond': ['error'],
'as_json': False
'as_json': True,
'order': 'descending',
},
{
'as_json': False,
'order': 'descending',
},
]
for param in params:
investpy.get_bond_recent_data(bond='Spain 30Y',
as_json=param['as_json'],
order=param['order'],
interval='Daily')
investpy.get_bond_historical_data(bond='Spain 30Y',
from_date='01/01/1990',
to_date='01/01/2019',
as_json=param['as_json'],
order=param['order'],
interval='Daily')
params = [
{
'bond': 'spain 30y',
'as_json': False
},
{
'bond': 'argentina 3y',
'as_json': True
},
{