Skip to content

Commit

Permalink
[Coinbase] add PermissionDenied error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Aug 26, 2024
1 parent 0883626 commit e199f98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Trading/Exchange/coinbase/coinbase_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ class Coinbase(exchanges.RestExchange):
# ex when trading WBTC/USDC with and account that can't trade it:
# ccxt.base.errors.BadRequest: target is not enabled for trading
("target is not enabled for trading", ),
# ccxt.base.errors.PermissionDenied: coinbase {"error":"PERMISSION_DENIED","error_details":
# "User is not allowed to convert crypto","message":"User is not allowed to convert crypto"}
("user is not allowed to convert crypto", ),
]

@classmethod
Expand Down

0 comments on commit e199f98

Please sign in to comment.