mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 03:33:50 +00:00
Add support for has_open_orders
This commit is contained in:
parent
943bafacfe
commit
f4766c41e0
|
@ -37,7 +37,7 @@
|
||||||
<i-mdi-close-box-multiple class="me-1" />Forceexit partial
|
<i-mdi-close-box-multiple class="me-1" />Forceexit partial
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-if="botApiVersion >= 2.24 && trade.open_order_id"
|
v-if="botApiVersion >= 2.24 && (trade.open_order_id || trade.has_open_orders)"
|
||||||
class="btn-xs text-start mt-1"
|
class="btn-xs text-start mt-1"
|
||||||
size="sm"
|
size="sm"
|
||||||
title="Cancel open orders"
|
title="Cancel open orders"
|
||||||
|
|
|
@ -40,11 +40,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template #cell(pair)="row">
|
<template #cell(pair)="row">
|
||||||
<span>
|
<span>
|
||||||
{{
|
{{ `${row.item.pair}${row.item.open_order_id || row.item.has_open_orders ? '*' : ''}` }}
|
||||||
`${row.item.pair}${
|
|
||||||
row.item.open_order_id === undefined || row.item.open_order_id === null ? '' : '*'
|
|
||||||
}`
|
|
||||||
}}
|
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(trade_id)="row">
|
<template #cell(trade_id)="row">
|
||||||
|
|
|
@ -92,7 +92,10 @@ interface TradeBase {
|
||||||
initial_stop_loss_ratio?: number;
|
initial_stop_loss_ratio?: number;
|
||||||
initial_stop_loss_pct?: number;
|
initial_stop_loss_pct?: number;
|
||||||
|
|
||||||
|
/** deprecated, to be replaced with "has_open_orders" */
|
||||||
open_order_id?: string;
|
open_order_id?: string;
|
||||||
|
/** Added only recently, replaces open_order_id */
|
||||||
|
has_open_orders?: boolean;
|
||||||
/** Short properties - only available in API versions 2.x and up */
|
/** Short properties - only available in API versions 2.x and up */
|
||||||
is_short?: boolean;
|
is_short?: boolean;
|
||||||
leverage?: number;
|
leverage?: number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user