New IBPlugin Version

IBPlugin is further development of TWSLink.It is focused for the useage with MetaTrader. But as it is a DLL, you can use it everywhere on Windows which supports DLL, e.g. in Trade Station or C++ applications or make wrapper for Perl, Python etc.

Users who just registered, please write an email to
with your username mentioned.
So we can distinguish you from bots.
Thank you
Post Reply
Site Admin
Posts: 244
Joined: Mon Apr 24, 2017 3:24 pm

New IBPlugin Version

Post by board_admin »

Hello community,
there is a new IBPlugin version 1511.
Product Page:

Download: ... p=drive_fs

Release Notes: ... ase-notes/


- IBPlugin is now capable to query contract data and to save a contract from query result along with unique custom symbol
name to database, so you can get conid/uidc from function

Code: Select all

Similar to position data, the query creates a snapshot list with affected contract and returns the number of contracts.
This is the MetaTrader code snippet, how to use it:

Code: Select all

    // --------------------------------------------
	// [#8] Do a contract query:
	Print("+++ contract query START");
	// create a snapshot of all HE FUT contracts.  Timeout 5 seconds
	Print("##contracts=",total_objects );
	// list all returned contracts with symbol and conid
	for(int idx=0;idx < total_objects;++idx)
        // file:///C:/Program%20Files/
        int uid = ibgCONTRACT_INFO_INT(idx, 7);
        string symbol = ibgCONTRACT_INFO_STR(idx, 8);
        // if this is the contract you are looking for, use
        // this function to add it to internal database along
        // with unique symbol name
        // uid = ibgADD_CONTRACT_IDX( idx, "my_unique_symbol_name");
        // so you can access contract 
        // by calling function:
        // ibgNAME_TO_UID("my_unique_symbol_name");
		PrintFormat("[%d] symbol=%s uidc=%d",idx,symbol,uid);
	Print("--- contract query END");
- Market data request and access extended.
The market data request allows generic ticks argument.
It is now possible to retrieve Option data, like delta,vega,etc. tick EFP, tick generic, tick string.
Market data are stored in circular arrays. So there is a certain tick history store during runtime and can be accessed by index, where
index=0 denotes latest tick.

Example for TradeStation / MultiCharts

Code: Select all

      // subscribe to realtime data
      ticker=    ibgSUBSCRIBE_REALTIME_DATA(connection_id,  conid, "", "");

	For idx = 200 to 207 begin
        // subtype identifier (idx)
        // ---------------------------
	option_value=ibgGET_REALTIME_DATA(connection_id, ticker, 21,   idx, 0);

Post Reply