Veröffentlicht am

IBPlugin neue Version 1511

Hallo Community,
es gibt eine neue IBPlugin Version 1511.

Product Page:

IBPlugin – Universal Interactive Brokers API Plugin

Download Link

 

Release Notes:

IBPlugin Release Notes

Änderungen:
– IBPlugin kann nun Kontrakt Daten anfordern und in einer temporären Snapshotliste speichern.
Durch diese Liste kann man iterieren und bei Bedarf den gesuchten Kontrakt in der internen Datenbank
zusammen mit einem eindeutigen Symbolnamen speichern.  Man kann dann die conid erhalten durch
den Aufruf der Funtkion:

ibgNAME_TO_UID(“my_unique_symbol_name”)

MetaTrader Code Schnipsel:
// ——————————————–
// [#8] Do a contract query:
Print(“+++ contract query START”);
// create a snapshot of all HE FUT contracts. Timeout 5 seconds
total_objects=ibgCONTRACT_QUERY(“UDL=HE#SET=FUT”,5000);
Print(“##contracts=”,total_objects );
// list all returned contracts with symbol and conid
for(int idx=0;idx < total_objects;++idx)
{
// file:///C:/Program%20Files/trade-commander.com/IBPlugin/documentation/tbl_symbol_info.html
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”);

Marktdaten Anfrage und Zugriff erweitert.
Die Anfrage erlaubt nun das sog. generic ticks Argument..
So ist es nun möglich z.B. Options Daten, wie deltavegaetc. ,  tick EFP,  tick generic,  tick string  abzufragen.
Die Ticks werden in zirkularen Buffern gespeichert. Damit hat meine bestimmte Tickhistorie (Laufzeit) und fragt
den jeweils letzten Tick mit dem Index=0 ab.

TradeStation / MultiCharts Code Schnipsel:
// subscribe to realtime data
ticker= ibgSUBSCRIBE_REALTIME_DATA(connection_id, conid, “”, “”);
ibgSLEEP(2000);

For idx = 200 to 207 begin
// subtype identifier (idx)
// —————————
//implied_vola=200
//delta=201
//opt_price=202
//pv_dividend=203
//gamma=204
//vega=205
//theta=206
//und_price=207

option_value=ibgGET_REALTIME_DATA(connection_id, ticker, 21, idx, 0);
Print(“option-val[“,idx,”]=”,option_value);