mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
add ExchangeWithdrawalService interface
This commit is contained in:
parent
ff7ead9bdf
commit
1e3e570edb
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user