AndreyMashukov / go-crypto-bot

Multithread crypto bot implemented on Golang
MIT License
34 stars 11 forks source link

Incorrect extra buy decision operation #27

Closed AndreyMashukov closed 7 months ago

AndreyMashukov commented 7 months ago

Order based strategy decided to do sell operation instead of buy when extra buy should be done

To Reproduce Steps to reproduce the behavior:

  1. Extra buy time
  2. Can buy is true
  3. Enough budget
  4. OBS decision is SELL

Expected behavior Decision should be BUY, check cache mechanism also

Screenshots IMG_9542 IMG_9543

AndreyMashukov commented 7 months ago

Also the reason could be active manual order

AndreyMashukov commented 7 months ago

https://github.com/AndreyMashukov/go-crypto-bot/blob/9f67c253fcbe8948b85ab18c5eaf92f87118cc0c/src/service/strategy/order_based_strategy.go#L97