Fix trade log inconsistency when slip occurs #314

Merged
lilianchiassai merged 5 commits from trade-logs into master 2021-01-25 12:47:46 -08:00
lilianchiassai commented 2021-01-16 18:41:09 -08:00 (Migrated from github.com)
No description provided.
scionaltera (Migrated from github.com) reviewed 2021-01-19 09:44:41 -08:00
@ -76,23 +76,27 @@ public class NotificationServiceImpl implements NotificationService {
BigDecimal longLimitPrice, BigDecimal shortVolume,
scionaltera (Migrated from github.com) commented 2021-01-19 09:44:40 -08:00

Is it important to have the difference and the original amount in the message or would it be sufficient to just replace the difference with the original value?

Is it important to have the difference _and_ the original amount in the message or would it be sufficient to just replace the difference with the original value?
lilianchiassai (Migrated from github.com) reviewed 2021-01-19 13:31:42 -08:00
@ -76,23 +76,27 @@ public class NotificationServiceImpl implements NotificationService {
BigDecimal longLimitPrice, BigDecimal shortVolume,
lilianchiassai (Migrated from github.com) commented 2021-01-19 13:31:42 -08:00

I think it would be useful to have both original values (price and volume*price) as the original values are the ones used by the bot to decide to trade or not.

I think it would be useful to have both original values (price and volume*price) as the original values are the ones used by the bot to decide to trade or not.
scionaltera commented 2021-01-22 13:08:10 -08:00 (Migrated from github.com)

The build failed due to failing unit tests. It looks like you changed the signature of TradingService.getLimitPrice() but didn't refactor the tests to match.

The build failed due to failing unit tests. It looks like you changed the signature of `TradingService.getLimitPrice()` but didn't refactor the tests to match.
scionaltera (Migrated from github.com) reviewed 2021-01-25 12:16:28 -08:00
@ -76,23 +76,27 @@ public class NotificationServiceImpl implements NotificationService {
BigDecimal longLimitPrice, BigDecimal shortVolume,
scionaltera (Migrated from github.com) commented 2021-01-25 12:16:28 -08:00

Sure, I was just thinking we have some redundant information now:

Never mind, I wasn't reading carefully enough. I see it now. :)

~Sure, I was just thinking we have some redundant information now:~ Never mind, I wasn't reading carefully enough. I see it now. :)
Commenting is not possible because the repository is archived.
No description provided.