mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Use splitTradePair function for trade visualization
This commit is contained in:
parent
0d0fc2a4d8
commit
b48fe5b241
|
@ -1,4 +1,4 @@
|
|||
import { formatPercent, formatPriceCurrency } from '@/shared/formatters';
|
||||
import { formatPercent, formatPriceCurrency, splitTradePair } from '@/shared/formatters';
|
||||
import { roundTimeframe } from '@/shared/timemath';
|
||||
import { Order, PairHistory, Trade, BTOrder } from '@/types';
|
||||
import { ScatterSeriesOption } from 'echarts';
|
||||
|
@ -68,7 +68,7 @@ export function getTradeEntries(dataset: PairHistory, trades: Trade[]) {
|
|||
if (trade.orders) {
|
||||
for (let i = 0; i < trade.orders.length; i++) {
|
||||
const order: Order | BTOrder = trade.orders[i];
|
||||
const quoteCurrency = trade.quote_currency ?? '<stake_currency>';
|
||||
const { quoteCurrency } = splitTradePair(trade.quote_currency ?? trade.pair ?? '');
|
||||
if (
|
||||
order.order_filled_timestamp &&
|
||||
roundTimeframe(dataset.timeframe_ms ?? 0, order.order_filled_timestamp) <=
|
||||
|
|
Loading…
Reference in New Issue
Block a user