-
-
Notifications
You must be signed in to change notification settings - Fork 199
Open
Labels
env/corekind/improvementRefactorings, improvements and tunningRefactorings, improvements and tunning
Description
In the discussion #130, @DavidXiao suggest to use Binance user stream instead of orders polling.
When we have orders with status PENDNG, the bot will poll from Binance the order status each second. It can be replaced by a stream that receive updates from Binance.
We found the logic here:
Lines 278 to 287 in 1a3585b
| ticker := time.NewTicker(c.tickerInterval) | |
| for { | |
| select { | |
| case <-ticker.C: | |
| c.updateOrders() | |
| case <-c.finish: | |
| ticker.Stop() | |
| return | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
env/corekind/improvementRefactorings, improvements and tunningRefactorings, improvements and tunning