Skip to content

Commit

Permalink
fix: endpoint url
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokisan committed Dec 4, 2021
1 parent e805617 commit 179e08a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ res, err := client.Wallet().Balance(bybit.CoinBTC)

- `/spot/v1/order`
- `/spot/v1/order/fast`
- `/spot/v1/order/batch-cancel`
- `/spot/v1/order/batch-fast-cancel`
- `/spot/order/batch-cancel`
- `/spot/order/batch-fast-cancel`
- `/spot/order/batch-cancel-by-ids`

### Wallet Data Endpoints
Expand Down
4 changes: 2 additions & 2 deletions account_spot.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ type SpotOrderBatchCancelResult struct {
func (s *AccountService) SpotOrderBatchCancel(param SpotOrderBatchCancelParam) (*SpotOrderBatchCancelResponse, error) {
var res SpotOrderBatchCancelResponse

url, err := s.Client.BuildPrivateURL("/spot/v1/order/batch-cancel", param.build())
url, err := s.Client.BuildPrivateURL("/spot/order/batch-cancel", param.build())
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -357,7 +357,7 @@ type SpotOrderBatchFastCancelResult struct {
func (s *AccountService) SpotOrderBatchFastCancel(param SpotOrderBatchFastCancelParam) (*SpotOrderBatchFastCancelResponse, error) {
var res SpotOrderBatchFastCancelResponse

url, err := s.Client.BuildPrivateURL("/spot/v1/order/batch-fast-cancel", param.build())
url, err := s.Client.BuildPrivateURL("/spot/order/batch-fast-cancel", param.build())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 179e08a

Please sign in to comment.