mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Fix tradingmode filter
This commit is contained in:
parent
cce3c11d1e
commit
47e314d922
|
@ -10,7 +10,7 @@
|
|||
<ValuePair v-if="trade.buy_tag" description="Entry tag">{{ trade.buy_tag }}</ValuePair>
|
||||
<ValuePair description="Stake"
|
||||
>{{ formatPriceCurrency(trade.stake_amount, stakeCurrency) }}
|
||||
{{ trade.leverage ? `(${trade.leverage}x)` : '' }}</ValuePair
|
||||
{{ trade.leverage && trade.leverage !== 1 ? `(${trade.leverage}x)` : '' }}</ValuePair
|
||||
>
|
||||
<ValuePair description="Amount">{{ trade.amount }}</ValuePair>
|
||||
<ValuePair description="Open Rate">{{ formatPrice(trade.open_rate) }}</ValuePair>
|
||||
|
@ -70,7 +70,7 @@
|
|||
<ValuePair v-if="trade.stoploss_last_update_timestamp" description="Stoploss last updated">
|
||||
{{ timestampms(trade.stoploss_last_update_timestamp) }}
|
||||
</ValuePair>
|
||||
<div v-if="trade.trading_mode !== undefined && trade.trading_mode !== 'SPOT'">
|
||||
<div v-if="trade.trading_mode !== undefined && trade.trading_mode !== 'spot'">
|
||||
<h5 class="detail-header">Futures/Margin</h5>
|
||||
<ValuePair description="Direction">
|
||||
{{ trade.is_short ? 'short' : 'long' }} - {{ trade.leverage }}x
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export enum TradingMode {
|
||||
SPOT = 'SPOT',
|
||||
MARGIN = 'MARGIN',
|
||||
FUTURES = 'FUTURES',
|
||||
SPOT = 'spot',
|
||||
MARGIN = 'margin',
|
||||
FUTURES = 'futures',
|
||||
}
|
||||
|
||||
export interface Order {
|
||||
|
@ -96,7 +96,7 @@ export interface Trade {
|
|||
leverage?: number;
|
||||
interest_rate?: number;
|
||||
funding_fees?: number;
|
||||
trading_mode?: string;
|
||||
trading_mode?: TradingMode;
|
||||
orders?: Order[];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user