mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03: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)',
|
backgroundColor: 'rgba(0, 0, 0, 0)',
|
||||||
dataset: {
|
dataset: {
|
||||||
dimensions: ['balance', 'currency', 'est_stake', 'free', 'used', 'stake'],
|
dimensions: ['balance', 'currency', 'est_stake', 'free', 'used', 'stake'],
|
||||||
source: props.currencies,
|
source: props.currencies as unknown[] as Record<string, number>[],
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
export interface BalanceRecords {
|
export interface BalanceRecords {
|
||||||
[key: string]: string | number;
|
|
||||||
balance: number;
|
balance: number;
|
||||||
currency: string;
|
currency: string;
|
||||||
est_stake: number;
|
est_stake: number;
|
||||||
|
@ -7,11 +6,11 @@ export interface BalanceRecords {
|
||||||
used: number;
|
used: number;
|
||||||
stake: string;
|
stake: string;
|
||||||
// Properties added in v 2.x
|
// Properties added in v 2.x
|
||||||
// Temporarily disabled to fix type errors
|
side: string;
|
||||||
// side: string;
|
leverage: number;
|
||||||
// leverage: number;
|
is_position: boolean;
|
||||||
// is_position: boolean;
|
position: number;
|
||||||
// position: number;
|
bot_managed?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BalanceInterface {
|
export interface BalanceInterface {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user