LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
683 stars 164 forks source link

Fixed exception that thrown when api key is real but was deleted from… #96

Closed Flowelfox closed 4 years ago

Flowelfox commented 4 years ago

Description

When api key is real but was deleted from binance account then api returns dict with code -2008 and message "Invalid Api-Key ID". To prevent library throw AttributeError on parsing uri, which is dict when this error occurs, i've added another filter to crush thread

Related Issue

Sorry, i didn't create issue. You can check this bug fast before accepting or declining my pull request.

Motivation and Context

It fixes unexpected behavior.

How Has This Been Tested

It was tested on trading application.

Types of changes

Checklist