federico123579 / XTBApi

Api for XBT trading platform.
MIT License
63 stars 30 forks source link

Description error message when Command failed has occured #5

Open Blackout76 opened 3 years ago

Blackout76 commented 3 years ago

According to the doc: http://developers.xstore.pro/documentation/#output-data-format Can you integrate the description of the command failed instead of simple "command failed" message?

In: XTBApi/exceptions.py l18 self.msg = "command failed" to self.msg =response['errorDescr']

Example: If I use client.check_if_market_open(['FB']) that will return me only "Command failed" and that is not help to undestand why its failed

Thx.