Skip to content

Commit

Permalink
Merge pull request #1344 from Drakkar-Software/dev
Browse files Browse the repository at this point in the history
[Coinbase] add PermissionDenied error handling
  • Loading branch information
GuillaumeDSM authored Aug 26, 2024
2 parents 6d6a04a + e199f98 commit faaa62b
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 faaa62b

Please sign in to comment.