Skip to content

Commit b286444

Browse files
authored
add missing file (#39)
1 parent 8259ff4 commit b286444

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

v2/portfolio/dust_service.go

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package portfolio
2+
3+
import (
4+
"context"
5+
6+
"github.com/photon-storage/go-binance/v2"
7+
)
8+
9+
type DustTransferService struct {
10+
Ms *binance.DustTransferService
11+
}
12+
13+
func (s *DustTransferService) Asset(asset []string) *DustTransferService {
14+
s.Ms.Asset(asset)
15+
return s
16+
}
17+
18+
func (s *DustTransferService) MarginAccount() *DustTransferService {
19+
s.Ms.MarginAccount()
20+
return s
21+
}
22+
23+
func (s *DustTransferService) Do(
24+
ctx context.Context,
25+
opts ...binance.RequestOption,
26+
) (*binance.DustTransferResponse, error) {
27+
return s.Ms.Do(ctx)
28+
}
29+
30+
type DustListService struct {
31+
Ms *binance.ListDustService
32+
}
33+
34+
func (s *DustListService) MarginAccount() *DustListService {
35+
s.Ms.MarginAccount()
36+
return s
37+
}
38+
39+
func (s *DustListService) Do(
40+
ctx context.Context,
41+
opts ...binance.RequestOption,
42+
) (*binance.ListDustResponse, error) {
43+
return s.Ms.Do(ctx)
44+
}

0 commit comments

Comments
 (0)