Use Finnhub with intelligent Stonks sampling
This commit is contained in:
parent
98e59fa703
commit
c53de28865
5 changed files with 410 additions and 53 deletions
|
|
@ -1,6 +1,7 @@
|
|||
param(
|
||||
[int] $Port = 8802,
|
||||
[string] $StateDir = "E:\Projects\Stonks\scratch\stonks",
|
||||
[string] $FinnhubTokenFile = "E:\Projects\Stonks\finnhub-oauth.txt",
|
||||
[switch] $Foreground
|
||||
)
|
||||
|
||||
|
|
@ -26,10 +27,12 @@ if (Test-Path $pidPath) {
|
|||
}
|
||||
|
||||
$env:NODE_PATH = "E:\Projects\CultLib\packages"
|
||||
$env:STONKS_FINNHUB_TOKEN_FILE = $FinnhubTokenFile
|
||||
$args = @(
|
||||
$scriptPath,
|
||||
"--port", "$Port",
|
||||
"--stateDir", $StateDir
|
||||
"--stateDir", $StateDir,
|
||||
"--finnhubTokenFile", $FinnhubTokenFile
|
||||
)
|
||||
|
||||
if ($Foreground) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue