mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
move local func
This commit is contained in:
parent
8922ed78bf
commit
e26156d77b
|
@ -913,6 +913,14 @@ func (e *Exchange) QueryDepositHistory(
|
|||
}
|
||||
}
|
||||
|
||||
toRawStatusStr := func(d maxapi.Deposit) string {
|
||||
if len(d.StateReason) > 0 {
|
||||
return fmt.Sprintf("%s (%s: %s)", d.Status, d.State, d.StateReason)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s (%s)", d.Status, d.State)
|
||||
}
|
||||
|
||||
for startTime.Before(until) {
|
||||
// startTime ~ endTime must be in 90 days
|
||||
endTime := startTime.AddDate(0, 0, 60)
|
||||
|
@ -937,14 +945,6 @@ func (e *Exchange) QueryDepositHistory(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
toRawStatusStr := func(d maxapi.Deposit) string {
|
||||
if len(d.StateReason) > 0 {
|
||||
return fmt.Sprintf("%s (%s: %s)", d.Status, d.State, d.StateReason)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s (%s)", d.Status, d.State)
|
||||
}
|
||||
|
||||
for i := len(deposits) - 1; i >= 0; i-- {
|
||||
d := deposits[i]
|
||||
if _, ok := txIDs[d.TxID]; ok {
|
||||
|
|
Loading…
Reference in New Issue
Block a user