Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
for param in params:
investpy.get_bond_information(bond=param['bond'], as_json=param['as_json'])
params = [
{
'country': 'united states',
'as_json': True,
},
{
'country': 'united kingdom',
'as_json': False,
}
]
for param in params:
investpy.get_bonds_overview(country=param['country'], as_json=param['as_json'])
investpy.search_bonds(by='name', value='Spain')
'country': ['error'],
'as_json': False,
},
{
'country': 'spain',
'as_json': None,
},
{
'country': 'error',
'as_json': False,
}
]
for param in params:
try:
investpy.get_bonds_overview(country=param['country'], as_json=param['as_json'])
except:
pass
params = [
{
'by': None,
'value': 'Argentina',
},
{
'by': ['error'],
'value': 'Argentina',
},
{
'by': 'error',
'value': 'Argentina',
},