Real-time stock tickers from the command-line based on Java
- Java 10+
- Dependencies
- org.apache.httpcomponents:httpclient:4.5.9
- org.json:json:20180813
First, build the project to generate the jar file.
# Single symbol with refresh interval 500 millis:
$ java -jar ./java-stock-ticker.jar 500 207760.KQ
# Multiple symbols with refresh interval 500 millis:
$ java -jar ./java-stock-ticker.jar 500 ^KS11 ^KQ11 GOOG AAPL BTC-USD 207760.KQ 263750.KQ
Data on the US stock market is updated in real time, but most other countries has delays(10~20min). link
Inspired by ticker.sh