alpacahq / alpaca-py

The Official Python SDK for Alpaca API
https://alpaca.markets/sdks/python/getting_started.html
Apache License 2.0
491 stars 122 forks source link

Added message property to APIError #432

Open kwilsonmg opened 3 months ago

kwilsonmg commented 3 months ago

Given that the APIError object returns both a code and message, both should be readily accessible to the end user. The end user can already access this by accessing the protected variable _error, but that isn't best practice.

This would address #431