add ExchangeWithdrawalService interface

This commit is contained in:
c9s 2021-05-12 01:21:21 +08:00
parent ff7ead9bdf
commit 1e3e570edb

View File

@ -7,6 +7,8 @@ import (
"fmt"
"strings"
"time"
"github.com/c9s/bbgo/pkg/fixedpoint"
)
const DateFormat = "2006-01-02"
@ -100,6 +102,10 @@ type ExchangeTransferService interface {
QueryWithdrawHistory(ctx context.Context, asset string, since, until time.Time) (allWithdraws []Withdraw, err error)
}
type ExchangeWithdrawalService interface {
Withdrawal(ctx context.Context, asset string, amount fixedpoint.Value, address string) error
}
type ExchangeRewardService interface {
QueryRewards(ctx context.Context, startTime time.Time) ([]Reward, error)
}