|
|
@@ -284,12 +284,12 @@ const formRules: { [key in keyof Proto.OrderReq]?: FieldRule[] } = {
|
|
|
}],
|
|
|
}
|
|
|
|
|
|
-const onPriceModeChanged = () => {
|
|
|
- if (formData.PriceMode === PriceMode.Limit) {
|
|
|
- const { ask = 0, bid = 0 } = quote.value ?? {}
|
|
|
- formData.OrderPrice = formData.BuyOrSell === BuyOrSell.Buy ? ask : bid
|
|
|
- }
|
|
|
-}
|
|
|
+// const onPriceModeChanged = () => {
|
|
|
+// if (formData.PriceMode === PriceMode.Limit) {
|
|
|
+// const { ask = 0, bid = 0 } = quote.value ?? {}
|
|
|
+// formData.OrderPrice = formData.BuyOrSell === BuyOrSell.Buy ? ask : bid
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
const onBeforeSubmit = (buildType: BuildType) => {
|
|
|
formData.BuildType = buildType
|