Trading Assistant API Documentation - v0.1.0
Preparing search index...
components/02-widgets/01_Watchlist/watchlist.store
watchlistStore
Variable watchlistStore
Const
watchlistStore
:
{
subscribe
:
(
this
:
void
,
run
:
Subscriber
<
WatchlistState
>
,
invalidate
?:
Invalidator
<
WatchlistState
>
,
)
=>
Unsubscriber
;
loadWatchlist
:
(
userId
:
string
)
=>
Promise
<
WatchlistData
>
;
addSymbol
:
(
userId
:
string
,
symbol
:
string
,
)
=>
Promise
<
WatchlistSymbol
|
undefined
>
;
removeSymbol
:
(
userId
:
string
,
symbol
:
string
)
=>
Promise
<
void
>
;
searchSymbols
:
(
query
:
string
)
=>
Promise
<
SearchResult
[]
|
undefined
>
;
refreshPrices
:
()
=>
Promise
<
void
>
;
startPriceUpdates
:
(
intervalMs
?:
number
)
=>
void
;
stopPriceUpdates
:
()
=>
void
;
clearError
:
()
=>
void
;
reset
:
()
=>
void
;
symbolCount
:
Readable
<
number
>
;
sortedSymbols
:
Readable
<
WatchlistSymbol
[]
>
;
}
= ...
Type Declaration
subscribe
:
(
this
:
void
,
run
:
Subscriber
<
WatchlistState
>
,
invalidate
?:
Invalidator
<
WatchlistState
>
,
)
=>
Unsubscriber
loadWatchlist
:
(
userId
:
string
)
=>
Promise
<
WatchlistData
>
addSymbol
:
(
userId
:
string
,
symbol
:
string
)
=>
Promise
<
WatchlistSymbol
|
undefined
>
removeSymbol
:
(
userId
:
string
,
symbol
:
string
)
=>
Promise
<
void
>
searchSymbols
:
(
query
:
string
)
=>
Promise
<
SearchResult
[]
|
undefined
>
refreshPrices
:
()
=>
Promise
<
void
>
startPriceUpdates
:
(
intervalMs
?:
number
)
=>
void
stopPriceUpdates
:
()
=>
void
clearError
:
()
=>
void
reset
:
()
=>
void
symbolCount
:
Readable
<
number
>
sortedSymbols
:
Readable
<
WatchlistSymbol
[]
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Trading Assistant API Documentation - v0.1.0
Loading...