diff --git a/src/components/ftbot/TradeDetail.vue b/src/components/ftbot/TradeDetail.vue
index 0750d24c..e62fb11b 100644
--- a/src/components/ftbot/TradeDetail.vue
+++ b/src/components/ftbot/TradeDetail.vue
@@ -19,10 +19,14 @@ defineProps({
{{ timestampms(trade.open_timestamp) }}
{{ trade.enter_tag }}
- {{ formatPriceCurrency(trade.stake_amount, stakeCurrency) }}
{{ trade.leverage && trade.leverage !== 1 ? `(${trade.leverage}x)` : '' }}
+ {{ formatPriceCurrency(trade.max_stake_amount ?? trade.stake_amount, stakeCurrency) }}
+ {{ trade.leverage && trade.leverage !== 1 ? `(${trade.leverage}x)` : '' }}
{{ trade.amount }}
{{ formatPrice(trade.open_rate) }}
{{
diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue
index d6f79cef..8fc9e6d3 100644
--- a/src/components/ftbot/TradeList.vue
+++ b/src/components/ftbot/TradeList.vue
@@ -36,11 +36,6 @@ const confirmExitText = ref('');
const confirmExitValue = ref(null);
const increasePosition = ref({ visible: false, trade: {} as Trade });
-const openFields: TableField[] = [{ key: 'actions' }];
-const closedFields: TableField[] = [
- { key: 'close_timestamp', label: 'Close date' },
- { key: 'exit_reason', label: 'Close Reason' },
-];
function formatPriceWithDecimals(price) {
return formatPrice(price, botStore.activeBot.stakeCurrencyDecimals);
}
@@ -53,14 +48,26 @@ const rows = computed(() => {
const tableFields = ref([]);
onMounted(() => {
+ const openFields: TableField[] = [{ key: 'actions' }];
+ const closedFields: TableField[] = [
+ { key: 'close_timestamp', label: 'Close date' },
+ { key: 'exit_reason', label: 'Close Reason' },
+ ];
+ const stakeAmountCol: TableField = props.activeTrades
+ ? {
+ key: 'stake_amount',
+ label: 'Stake amount',
+ }
+ : {
+ key: 'max_stake_amount',
+ label: 'Total stake amount',
+ };
+
tableFields.value = [
{ key: 'trade_id', label: 'ID' },
{ key: 'pair', label: 'Pair' },
{ key: 'amount', label: 'Amount' },
- {
- key: 'stake_amount',
- label: 'Stake amount',
- },
+ stakeAmountCol,
{
key: 'open_rate',
label: 'Open rate',