UPetit / python-binance-profit

Script to submit a buy order followed by an automatic sell OCO order
MIT License
47 stars 15 forks source link

[BUG] Order does not exist #8

Closed UPetit closed 3 years ago

UPetit commented 3 years ago

Describe the bug When the buy order has been executed, it's sometimes not possible to fetch the order (due to Binance network maybe?) and the API returns: binance.exceptions.BinanceAPIException: APIError(code=-2013): Order does not exist.

To Reproduce Run the scripe execute_orders.py

Expected behavior The buy order should be fetched using the order id previously stored.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

UPetit commented 3 years ago

Adding few retries should work for both this issue and #1

UPetit commented 3 years ago

Fixed in last commits