For some unclear reason, kmm is not able to access url on my computer to get online quote. I debugged for quite a while and was not able to fix it.
Inspired by user manual, i’m trying to develop a work around to use a powershell script to get online quote, as user manual mentioned:
“Note that the URL can also be a file: URL… Your URL would be “file:/path/to/getquote.sh %1”.”
I made a ps script, it takes a stock symbol as argument, and access yahoo finance api, and then forward whatever it gets to console. I expect this ps script can work as a bridge. however i’m not able to make it work.
I tested my script, it is good and can get json from yahoo finance and print it to console. but it does not work with kmm.
here is the url in online quote config:
file:D:\test\fetch.ps1 %1
Other settings are exactly same as built in yahoo finance config
here is error message:
Executing D:\test\fetch.ps1 BTC…
Unable to launch: D:\test\fetch.ps1 BTC
Unable to update price for BTC (empty quote data)
Any idea how to fix it?
Thanks!
i’m using win11, kmm version is 5.1.3-eef04f1