mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 23:16:52 +00:00
Fix OKEX match_price logic
Fixes https://github.com/thrasher-/gocryptotrader/issues/116
This commit is contained in:
@@ -562,8 +562,10 @@ func (o *OKEX) PlaceContractOrders(symbol, contractType, position string, levera
|
||||
values.Set("type", position)
|
||||
if matchPrice {
|
||||
values.Set("match_price", "1")
|
||||
} else {
|
||||
values.Set("match_price", "0")
|
||||
}
|
||||
values.Set("match_price", "0")
|
||||
|
||||
if leverageRate != 10 && leverageRate != 20 {
|
||||
return 0, errors.New("leverage rate can only be 10 or 20")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user