File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -420,3 +420,8 @@ func (c *Client) NewMarginRepayService() *MarginRepayService {
420420 c : c ,
421421 }
422422}
423+
424+ func (c * Client ) NewGetIncomeHistoryServiceUM () * GetIncomeHistoryServiceUM {
425+ fc := c .newFutureClient ()
426+ return & GetIncomeHistoryServiceUM {Fs : fc .NewGetIncomeHistoryService ()}
427+ }
Original file line number Diff line number Diff line change 1+ package portfolio
2+
3+ import (
4+ "context"
5+
6+ "github.com/photon-storage/go-binance/v2/futures"
7+ )
8+
9+ type GetIncomeHistoryServiceUM struct {
10+ Fs * futures.GetIncomeHistoryService
11+ }
12+
13+ func (s * GetIncomeHistoryServiceUM ) Do (
14+ ctx context.Context ,
15+ opts ... futures.RequestOption ,
16+ ) ([]* futures.IncomeHistory , error ) {
17+ opts = append (opts , futures .WithEndpoint ("/papi/v1/um/income" ))
18+ return s .Fs .Do (ctx , opts ... )
19+ }
You can’t perform that action at this time.
0 commit comments