Closed lordkebab closed 5 years ago
Idea to add parameter constants to avoid typos when calling functions.
Example:
class cbpro: ORDER_LIMIT = 'limit' ...
Then when calling the buy or sell method:
buy
sell
auth_client.buy(order_type=cbpro.LIMIT)
A = auth_client.buy(order_type="limit") is less clunky in my opinion. What kind of typos are there with such sort names?
Looking through the API, they are all pretty short. Probably no need for it.
Idea to add parameter constants to avoid typos when calling functions.
Example:
Then when calling the
buy
orsell
method: