Skip to content

Commit e0f49e5

Browse files
authored
Merge pull request #69 from Bisonai/fix/fix-wrong-http-method
fix: fix wrong method
2 parents 9fc352e + 0d4466c commit e0f49e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crypto_loan.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
func (s *BybitClientRequest) GetBorrowableCoins(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) {
1111
r := &request{
12-
method: http.MethodPost,
12+
method: http.MethodGet,
1313
endpoint: "/v5/crypto-loan-common/loanable-data",
1414
secType: secTypeNone,
1515
}
@@ -19,7 +19,7 @@ func (s *BybitClientRequest) GetBorrowableCoins(ctx context.Context, opts ...Req
1919

2020
func (s *BybitClientRequest) GetCollateralCoins(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) {
2121
r := &request{
22-
method: http.MethodPost,
22+
method: http.MethodGet,
2323
endpoint: "/v5/crypto-loan-common/collateral-data",
2424
secType: secTypeNone,
2525
}
@@ -29,7 +29,7 @@ func (s *BybitClientRequest) GetCollateralCoins(ctx context.Context, opts ...Req
2929

3030
func (s *BybitClientRequest) GetMaxCollateralAmount(ctx context.Context, opts ...RequestOption) (res *ServerResponse, err error) {
3131
r := &request{
32-
method: http.MethodPost,
32+
method: http.MethodGet,
3333
endpoint: "/v5/crypto-loan-common/max-collateral-amount",
3434
secType: secTypeSigned,
3535
}

0 commit comments

Comments
 (0)