custom indicators fixed
This commit is contained in:
17
web/src/stores/indicatorTypes.ts
Normal file
17
web/src/stores/indicatorTypes.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
import type { CustomIndicatorMetadata } from './indicators'
|
||||
|
||||
export interface CustomIndicatorType {
|
||||
pandas_ta_name: string
|
||||
display_name: string
|
||||
description?: string
|
||||
metadata: CustomIndicatorMetadata
|
||||
created_at: number
|
||||
modified_at: number
|
||||
}
|
||||
|
||||
export const useIndicatorTypesStore = defineStore('indicator_types', () => {
|
||||
const types = ref<Record<string, CustomIndicatorType>>({})
|
||||
return { types }
|
||||
})
|
||||
Reference in New Issue
Block a user