mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Simplify Futures detail page
This commit is contained in:
parent
bc1728394b
commit
27fe412a17
|
@ -70,8 +70,9 @@
|
|||
</ValuePair>
|
||||
<div v-if="trade.trading_mode !== undefined && trade.trading_mode !== 'SPOT'">
|
||||
<h5 class="detail-header">Futures/Margin</h5>
|
||||
<ValuePair description="Short"> {{ trade.is_short ? 'short' : 'long' }} </ValuePair>
|
||||
<ValuePair description="Leverage"> {{ trade.leverage }} </ValuePair>
|
||||
<ValuePair description="Direction">
|
||||
{{ trade.is_short ? 'short' : 'long' }} - {{ trade.leverage }}x
|
||||
</ValuePair>
|
||||
<ValuePair v-if="trade.funding_fees !== undefined" description="Funding fees">
|
||||
{{ formatPrice(trade.funding_fees) }}
|
||||
</ValuePair>
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
export interface BalanceRecords {
|
||||
[key: string]: string | number;
|
||||
[key: string]: string | number | boolean | undefined;
|
||||
balance: number;
|
||||
currency: string;
|
||||
est_stake: number;
|
||||
free: number;
|
||||
used: number;
|
||||
stake: string;
|
||||
// Properties added in v 2.x
|
||||
side?: string;
|
||||
leverage?: number;
|
||||
is_position: boolean;
|
||||
position?: number;
|
||||
}
|
||||
|
||||
export interface BalanceInterface {
|
||||
|
|
Loading…
Reference in New Issue
Block a user