Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some problems: #590

Merged
merged 2 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion v2/futures/asset_index_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s *AssetIndexService) Symbol(symbol string) *AssetIndexService {
func (s *AssetIndexService) Do(ctx context.Context, opts ...RequestOption) (res []*AssetIndex, err error) {
r := &request{
method: http.MethodGet,
endpoint: "/futures/v1/assetIndex",
endpoint: "/fapi/v1/assetIndex",
}
if s.symbol != nil {
r.setParam("symbol", *s.symbol)
Expand Down
5 changes: 0 additions & 5 deletions v2/futures/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,6 @@ func (c *Client) NewFundingRateService() *FundingRateService {
return &FundingRateService{c: c}
}

// NewFundingRateHistoryService init funding rate history service
func (c *Client) NewFundingRateHistoryService() *FundingRateHistoryService {
return &FundingRateHistoryService{c: c}
}

// NewFundingRateInfoService init funding rate info service
func (c *Client) NewFundingRateInfoService() *FundingRateInfoService {
return &FundingRateInfoService{c: c}
Expand Down
2 changes: 1 addition & 1 deletion v2/futures/constituents_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (s *ConstituentsService) Symbol(symbol string) *ConstituentsService {
func (s *ConstituentsService) Do(ctx context.Context, opts ...RequestOption) (res *ConstituentsServiceRsp, err error) {
r := &request{
method: http.MethodGet,
endpoint: "/futures/v1/assetIndex",
endpoint: "/fapi/v1/constituents",
}
r.setParam("symbol", s.symbol)

Expand Down
4 changes: 2 additions & 2 deletions v2/futures/data_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ type DeliveryPriceService struct {
}

type DeliveryPrice struct {
DeliveryTime uint64 `json:"DeliveryTime"` // deliveryTime
DeliveryPrice float64 `json:"DeliveryPrice"` // deliveryPrice
DeliveryTime uint64 `json:"deliveryTime"` // deliveryTime
DeliveryPrice float64 `json:"deliveryPrice"` // deliveryPrice
}

func (s *DeliveryPriceService) Pair(pair string) *DeliveryPriceService {
Expand Down
82 changes: 0 additions & 82 deletions v2/futures/funding_rate_history.go

This file was deleted.

59 changes: 0 additions & 59 deletions v2/futures/funding_rate_history_test.go

This file was deleted.

Loading