Skip to content

Conversation

dboyliao
Copy link
Collaborator

No description provided.

@dboyliao dboyliao requested a review from c9s April 10, 2025 08:32
@dboyliao dboyliao force-pushed the dboy/xgap-price-collision branch 2 times, most recently from 90ee627 to 2698271 Compare April 10, 2025 08:55
@dboyliao dboyliao marked this pull request as ready for review April 10, 2025 09:01
@@ -394,6 +394,14 @@ func (s *Strategy) placeOrders(ctx context.Context) {

log.Infof("%s adjusted quantity: %f", s.Symbol, quantity.Float64())

bid, ask, _ := s.tradingBook.BestBidAndAsk()
if price.Compare(bid.Price) <= 0 || price.Compare(ask.Price) >= 0 {
log.Infof(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use s.logger.Warnf ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@dboyliao dboyliao force-pushed the dboy/xgap-price-collision branch from da89095 to bc3e61e Compare April 10, 2025 09:06
@dboyliao dboyliao enabled auto-merge April 10, 2025 09:08
@dboyliao dboyliao merged commit 4d4cf80 into main Apr 10, 2025
2 checks passed
@dboyliao dboyliao deleted the dboy/xgap-price-collision branch April 10, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants