|
|
|
@ -29,6 +29,7 @@
|
|
|
|
type: 'Flat',
|
|
|
|
type: 'Flat',
|
|
|
|
...$formData,
|
|
|
|
...$formData,
|
|
|
|
qty: $formData.qty.toString(),
|
|
|
|
qty: $formData.qty.toString(),
|
|
|
|
|
|
|
|
leverage: $formData.leverage.toString(),
|
|
|
|
takeProfit: $formData.takeProfit.toString(),
|
|
|
|
takeProfit: $formData.takeProfit.toString(),
|
|
|
|
stopLoss: $formData.stopLoss.toString(),
|
|
|
|
stopLoss: $formData.stopLoss.toString(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -54,6 +55,7 @@
|
|
|
|
...$percentFormData,
|
|
|
|
...$percentFormData,
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
|
|
|
|
leverage: $percentFormData.leverage.toString(),
|
|
|
|
takeProfitPercent:
|
|
|
|
takeProfitPercent:
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
stopLossPercent:
|
|
|
|
stopLossPercent:
|
|
|
|
@ -169,6 +171,19 @@
|
|
|
|
<Form.Description>Quantity</Form.Description>
|
|
|
|
<Form.Description>Quantity</Form.Description>
|
|
|
|
<Form.FieldErrors />
|
|
|
|
<Form.FieldErrors />
|
|
|
|
</Form.Field>
|
|
|
|
</Form.Field>
|
|
|
|
|
|
|
|
<Form.Field {form} name="leverage">
|
|
|
|
|
|
|
|
<Form.Control>
|
|
|
|
|
|
|
|
{#snippet children({ props })}
|
|
|
|
|
|
|
|
<Form.Label>Leverage</Form.Label>
|
|
|
|
|
|
|
|
<Input
|
|
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
|
|
{...props}
|
|
|
|
|
|
|
|
bind:value={$formData.leverage} />
|
|
|
|
|
|
|
|
{/snippet}
|
|
|
|
|
|
|
|
</Form.Control>
|
|
|
|
|
|
|
|
<Form.Description>Leverage</Form.Description>
|
|
|
|
|
|
|
|
<Form.FieldErrors />
|
|
|
|
|
|
|
|
</Form.Field>
|
|
|
|
<Form.Field {form} name="takeProfit">
|
|
|
|
<Form.Field {form} name="takeProfit">
|
|
|
|
<Form.Control>
|
|
|
|
<Form.Control>
|
|
|
|
{#snippet children({ props })}
|
|
|
|
{#snippet children({ props })}
|
|
|
|
@ -203,6 +218,7 @@
|
|
|
|
type: 'Flat',
|
|
|
|
type: 'Flat',
|
|
|
|
...$formData,
|
|
|
|
...$formData,
|
|
|
|
qty: $formData.qty.toString(),
|
|
|
|
qty: $formData.qty.toString(),
|
|
|
|
|
|
|
|
leverage: $formData.leverage.toString(),
|
|
|
|
takeProfit: $formData.takeProfit.toString(),
|
|
|
|
takeProfit: $formData.takeProfit.toString(),
|
|
|
|
stopLoss: $formData.stopLoss.toString(),
|
|
|
|
stopLoss: $formData.stopLoss.toString(),
|
|
|
|
}} />
|
|
|
|
}} />
|
|
|
|
@ -286,6 +302,19 @@
|
|
|
|
max={100}
|
|
|
|
max={100}
|
|
|
|
step={0.1} />
|
|
|
|
step={0.1} />
|
|
|
|
</Form.Field>
|
|
|
|
</Form.Field>
|
|
|
|
|
|
|
|
<Form.Field {form} name="leverage">
|
|
|
|
|
|
|
|
<Form.Control>
|
|
|
|
|
|
|
|
{#snippet children({ props })}
|
|
|
|
|
|
|
|
<Form.Label>Leverage</Form.Label>
|
|
|
|
|
|
|
|
<Input
|
|
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
|
|
{...props}
|
|
|
|
|
|
|
|
bind:value={$percentFormData.leverage} />
|
|
|
|
|
|
|
|
{/snippet}
|
|
|
|
|
|
|
|
</Form.Control>
|
|
|
|
|
|
|
|
<Form.Description>Leverage</Form.Description>
|
|
|
|
|
|
|
|
<Form.FieldErrors />
|
|
|
|
|
|
|
|
</Form.Field>
|
|
|
|
<Form.Field form={percentForm} name="takeProfitPercent">
|
|
|
|
<Form.Field form={percentForm} name="takeProfitPercent">
|
|
|
|
<Form.Control>
|
|
|
|
<Form.Control>
|
|
|
|
{#snippet children({ props })}
|
|
|
|
{#snippet children({ props })}
|
|
|
|
@ -333,6 +362,7 @@
|
|
|
|
...$percentFormData,
|
|
|
|
...$percentFormData,
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
qtyPercent: $percentFormData.qtyPercent.toString(),
|
|
|
|
|
|
|
|
leverage: $percentFormData.leverage.toString(),
|
|
|
|
takeProfitPercent:
|
|
|
|
takeProfitPercent:
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
$percentFormData.takeProfitPercent.toString(),
|
|
|
|
stopLossPercent:
|
|
|
|
stopLossPercent:
|
|
|
|
@ -384,7 +414,6 @@
|
|
|
|
json={{
|
|
|
|
json={{
|
|
|
|
type: 'Close Position',
|
|
|
|
type: 'Close Position',
|
|
|
|
...$closePositionFormData,
|
|
|
|
...$closePositionFormData,
|
|
|
|
entryPrice: '{trigger_entry_value}',
|
|
|
|
|
|
|
|
}} />
|
|
|
|
}} />
|
|
|
|
</Tabs.Content>
|
|
|
|
</Tabs.Content>
|
|
|
|
</Tabs.Root>
|
|
|
|
</Tabs.Root>
|
|
|
|
|