@@ -27,7 +27,7 @@ type OrderInfo struct {
2727 OrderPriceType string `json:"order_price_type"`
2828 Direction string `json:"direction"`
2929 Offset string `json:"offset"`
30- LeverRate int `json:"lever_rate"`
30+ LeverRate float64 `json:"lever_rate"`
3131 OrderId int64 `json:"order_id"`
3232 ClientOrderId int64 `json:"client_order_id"`
3333 OrderSource string `json:"order_source"`
@@ -184,7 +184,7 @@ func (dm *Hbdm) GetFuturePosition(currencyPair CurrencyPair, contractType string
184184 ProfitRate float64 `json:"profit_rate"`
185185 Profit float64 `json:"profit"`
186186 PositionMargin float64 `json:"position_margin"`
187- LeverRate int `json:"lever_rate"`
187+ LeverRate float64 `json:"lever_rate"`
188188 Direction string `json:"direction"`
189189 }
190190
@@ -234,12 +234,12 @@ func (dm *Hbdm) GetFuturePosition(currencyPair CurrencyPair, contractType string
234234 return positions , nil
235235}
236236
237- func (dm * Hbdm ) PlaceFutureOrder (currencyPair CurrencyPair , contractType , price , amount string , openType , matchPrice , leverRate int ) (string , error ) {
237+ func (dm * Hbdm ) PlaceFutureOrder (currencyPair CurrencyPair , contractType , price , amount string , openType , matchPrice int , leverRate float64 ) (string , error ) {
238238 fOrder , err := dm .PlaceFutureOrder2 (currencyPair , contractType , price , amount , openType , matchPrice , leverRate )
239239 return fOrder .OrderID2 , err
240240}
241241
242- func (dm * Hbdm ) PlaceFutureOrder2 (currencyPair CurrencyPair , contractType , price , amount string , openType , matchPrice , leverRate int , opt ... LimitOrderOptionalParameter ) (* FutureOrder , error ) {
242+ func (dm * Hbdm ) PlaceFutureOrder2 (currencyPair CurrencyPair , contractType , price , amount string , openType , matchPrice int , leverRate float64 , opt ... LimitOrderOptionalParameter ) (* FutureOrder , error ) {
243243 var data struct {
244244 OrderId int64 `json:"order_id"`
245245 COrderId int64 `json:"client_order_id"`
0 commit comments