IbcAlpha / IBC

Automation of Interactive Brokers TWS. You can download the latest release here: https://github.com/ibcalpha/ibc/releases/latest
GNU General Public License v3.0
974 stars 174 forks source link

What are valid `CommandServerPort` commands? #237

Closed gnzsnz closed 5 months ago

gnzsnz commented 7 months ago

I'm wondering how to use the CommandServerPort functionality. is there a list of valid commands?

I could not find anything on the user guide, nor on config.ini. I found some examples on ibcalpha group but not a full list of commands.

Any input would be appreciated. Thanks in advance.

rlktradewright commented 7 months ago

Rather than write it up here, I'll add a section to the User Guide. This has been needed for a long time, so it's about time I did it.

If I haven't said here that's its done after a few days, feel free to remind me!

ownrepo1s commented 6 months ago

@rlktradewright Reminder :D

rlktradewright commented 6 months ago

Thanks. Soon...

gnzsnz commented 5 months ago

kind reminder

rlktradewright commented 5 months ago

Yesterday I added a section on the IBC Command Server to the User Guide. It's near the end of the document.

I also added a set of simple scripts for both Windows and Unix.

These updates will be included in the zips for the next release. I might do a point release if that doesn't happen soon.

In the meantime users can dowload the updated User Guide and the scripts from here. Note that these scripts are standalone: IBC itself doesn't need to be installed on the computer where they are used. Use the links below to navigate to the required file, then click the 'Download raw file' button at the top right, and save to any convenient folder (if IBC is installed, the IBC folder is a sensible place alongside the existing scripts).

User Guide

Windows scripts: You can run these from any Windows computer - it doesn't have to be the one running IBC. The target computer can be either WIndows or Unix.

EnableAPI.bat

ReconnectAccount.bat

ReconnectData.bat

Restart.bat

SendCommand.bat

Stop.bat

Download this one to a subfolder called scripts:

SendIBCCommand.vbs

Unix scripts: You can run these from any Unix computer - it doesn't have to be the one running IBC. The target computer can be either Unix or Windows.

commandsend.sh

enableapi.sh

reconnectaccount.sh

reconnectdata.sh

restart.sh

stop.sh

gnzsnz commented 5 months ago

this is fantastic, thanks a lot