mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Show relative profit ratio for total / realized profits
This commit is contained in:
parent
9ed40e99be
commit
90855b881f
|
@ -35,7 +35,9 @@ const profitRatio = computed<number | undefined>(() => {
|
|||
case 'default':
|
||||
return props.trade.profit_ratio;
|
||||
case 'total':
|
||||
return undefined;
|
||||
return props.trade.total_profit_ratio;
|
||||
case 'realized':
|
||||
return props.trade.realized_profit_ratio;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
|
|
|
@ -73,6 +73,8 @@ interface TradeBase {
|
|||
profit_abs?: number;
|
||||
/** Absolute, realized profit */
|
||||
realized_profit?: number;
|
||||
/** Relative, realized profit */
|
||||
realized_profit_ratio?: number;
|
||||
|
||||
exit_reason?: string;
|
||||
exit_order_status?: string;
|
||||
|
@ -111,6 +113,7 @@ export interface Trade extends TradeBase {
|
|||
|
||||
total_profit_abs?: number;
|
||||
total_profit_fiat?: number;
|
||||
total_profit_ratio?: number;
|
||||
}
|
||||
|
||||
export interface ClosedTrade extends TradeBase {
|
||||
|
|
Loading…
Reference in New Issue
Block a user