|
|
|
@ -43,10 +43,10 @@
|
|
|
|
validators: zod(percentSchema),
|
|
|
|
validators: zod(percentSchema),
|
|
|
|
onSubmit: ({}) => {
|
|
|
|
onSubmit: ({}) => {
|
|
|
|
copy(
|
|
|
|
copy(
|
|
|
|
json5.stringify(
|
|
|
|
JSON.stringify(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
...$percentFormData,
|
|
|
|
...$percentFormData,
|
|
|
|
entryPrice: '{"trigger_entry_value"}',
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
takeProfitPercent:
|
|
|
|
takeProfitPercent:
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
@ -297,7 +297,7 @@
|
|
|
|
<JsonView
|
|
|
|
<JsonView
|
|
|
|
json={{
|
|
|
|
json={{
|
|
|
|
...$percentFormData,
|
|
|
|
...$percentFormData,
|
|
|
|
entryPrice: '{"trigger_entry_value"}',
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
takeProfitPercent:
|
|
|
|
takeProfitPercent:
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
|