From 2e202c70610c1b2089e0a92303e330a5ffb82704 Mon Sep 17 00:00:00 2001 From: one230six <723682061@qq.com> Date: Wed, 13 Mar 2024 17:57:20 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: one230six <723682061@qq.com> --- v2/delivery/position_service.go | 2 +- v2/futures/order_service.go | 2 +- v2/futures/position_service.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/delivery/position_service.go b/v2/delivery/position_service.go index 0a7faa3b..8a5c89e1 100644 --- a/v2/delivery/position_service.go +++ b/v2/delivery/position_service.go @@ -119,7 +119,7 @@ func (s *UpdatePositionMarginService) Amount(amount string) *UpdatePositionMargi return s } -// Type set action type: 1: Add postion margin,2: Reduce postion margin +// Type set action type: 1: Add position margin,2: Reduce position margin func (s *UpdatePositionMarginService) Type(actionType int) *UpdatePositionMarginService { s.actionType = actionType return s diff --git a/v2/futures/order_service.go b/v2/futures/order_service.go index 89a6ff2e..5a484f85 100644 --- a/v2/futures/order_service.go +++ b/v2/futures/order_service.go @@ -226,7 +226,7 @@ type CreateOrderResponse struct { ClosePosition bool `json:"closePosition"` // if Close-All PriceProtect bool `json:"priceProtect"` // if conditional order trigger is protected PriceMatch string `json:"priceMatch"` // price match mode - SelfTradePreventionMode string `json:"selfTradePreventionMode"` // self trading preventation mode + SelfTradePreventionMode string `json:"selfTradePreventionMode"` // self trading presentation mode GoodTillDate int64 `json:"goodTillDate"` // order pre-set auto cancel time for TIF GTD order CumQty string `json:"cumQty"` // OrigType OrderType `json:"origType"` // diff --git a/v2/futures/position_service.go b/v2/futures/position_service.go index 37c5bf55..a9708e1b 100644 --- a/v2/futures/position_service.go +++ b/v2/futures/position_service.go @@ -119,7 +119,7 @@ func (s *UpdatePositionMarginService) Amount(amount string) *UpdatePositionMargi return s } -// Type set action type: 1: Add postion margin,2: Reduce postion margin +// Type set action type: 1: Add position margin,2: Reduce position margin func (s *UpdatePositionMarginService) Type(actionType int) *UpdatePositionMarginService { s.actionType = actionType return s