mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Fix type issue with chart
This commit is contained in:
parent
1653386da9
commit
5378d651e7
|
@ -53,7 +53,7 @@ const balanceChartOptions = computed((): EChartsOption => {
|
|||
backgroundColor: 'rgba(0, 0, 0, 0)',
|
||||
dataset: {
|
||||
dimensions: ['balance', 'currency', 'est_stake', 'free', 'used', 'stake'],
|
||||
source: props.currencies,
|
||||
source: props.currencies as unknown[] as Record<string, number>[],
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
export interface BalanceRecords {
|
||||
[key: string]: string | number;
|
||||
balance: number;
|
||||
currency: string;
|
||||
est_stake: number;
|
||||
|
@ -7,11 +6,11 @@ export interface BalanceRecords {
|
|||
used: number;
|
||||
stake: string;
|
||||
// Properties added in v 2.x
|
||||
// Temporarily disabled to fix type errors
|
||||
// side: string;
|
||||
// leverage: number;
|
||||
// is_position: boolean;
|
||||
// position: number;
|
||||
side: string;
|
||||
leverage: number;
|
||||
is_position: boolean;
|
||||
position: number;
|
||||
bot_managed?: boolean;
|
||||
}
|
||||
|
||||
export interface BalanceInterface {
|
||||
|
|
Loading…
Reference in New Issue
Block a user