mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
MINOR: add trade id and order id when fee is still processing
This commit is contained in:
parent
a7af2b7002
commit
38d8043e3b
|
@ -14,7 +14,7 @@ func QueryTradesUntilSuccessful(
|
|||
trades, err2 = ex.QueryTrades(ctx, symbol, q)
|
||||
for _, trade := range trades {
|
||||
if trade.FeeProcessing {
|
||||
return fmt.Errorf("there are some trades which trading fee is not ready")
|
||||
return fmt.Errorf("trade fee of #%d (order #%d) is still processing", trade.ID, trade.OrderID)
|
||||
}
|
||||
}
|
||||
return err2
|
||||
|
@ -31,7 +31,7 @@ func QueryTradesUntilSuccessfulLite(
|
|||
trades, err2 = ex.QueryTrades(ctx, symbol, q)
|
||||
for _, trade := range trades {
|
||||
if trade.FeeProcessing {
|
||||
return fmt.Errorf("there are some trades which trading fee is not ready")
|
||||
return fmt.Errorf("trade fee of #%d (order #%d) is still processing", trade.ID, trade.OrderID)
|
||||
}
|
||||
}
|
||||
return err2
|
||||
|
|
Loading…
Reference in New Issue
Block a user