mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
binance: replace emptyTime with IsZero
This commit is contained in:
parent
0118f33bfc
commit
9346e7d1f6
|
@ -595,8 +595,7 @@ func (e *Exchange) QueryWithdrawHistory(ctx context.Context, asset string, since
|
|||
}
|
||||
|
||||
func (e *Exchange) QueryDepositHistory(ctx context.Context, asset string, since, until time.Time) (allDeposits []types.Deposit, err error) {
|
||||
var emptyTime = time.Time{}
|
||||
if since == emptyTime {
|
||||
if since.IsZero() {
|
||||
since, err = getLaunchDate()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user