Closed nubonics closed 11 months ago
Heres a temp hotfix though
def list_item(yaml_file, item_details):
try:
api = Trading(config_file=yaml_file, siteid='0')
# Hardcoding values for testing
hardcoded_item_details = item_details.copy() # Make a copy of item_details
hardcoded_item_details['Currency'] = 'USD' # Hardcoded currency
hardcoded_item_details['Country'] = 'US' # Hardcoded country
hardcoded_item_details['ListingDuration'] = 'GTC' # Hardcoded listing duration
response = api.execute('AddItem', {'Item': hardcoded_item_details})
return response.dict()
except ConnectionError as e:
print(e)
return e.response.dict()
Not sure why it says that the country code and currency are missing, ive included them, been trying to find a solution for a day or so, but no such luck.