This application provides realtime quotes from your Interactive Brokers terminal for the online option risk calculator www.optionpnl.info. Other data providers currently available (Google and Yahoo Finance) deliver delayed quotes only.
- Download and install node.js.
- Download and unarchive this app.
- Open terminal, navigate to the app directory and run
npm install
to install dependencies.
- Start IB Gateway.
- Run
npm start
from the app's directory (if it crashes, please, make sure port9999
is available). - Open www.optionpnl.info in your browser.
- To stop the service press
Ctrl-C
in a terminal where it was started.
Set them before the launch command, like env LOG_LEVEL=4 npm start
.
Environment variable | Default value |
---|---|
IB_HOST |
127.0.0.1 |
IB_PORT |
7496 |
IB_CLIENTID |
0 |
LOG_LEVEL |
2 |