Page 1 of 1

Function ibgSYMBOL_INFO

Posted: Fri Dec 10, 2021 8:31 am
by Tuco
Hello,

I feel the documentation related to the function ibgSYMBOL_INFO is not correct:

In order to get a returned value, must be entered ibgSYMBOL_INFO (conid, Enumeration ID); Running a quick test on He(fut) I get the following:

0) Symbolroot
1)Exchange
2)currency
3)Asset Class
4)Expiration
5-6 empty values
7) conid ???
8)symbol with month year
9-10 empty values

Re: Function ibgSYMBOL_INFO

Posted: Thu Jan 27, 2022 1:05 pm
by Tuco
Hello,

Can You please let me know if we can get the last trading day for a specific futures symbol via the enumerationID of the function ibgSYMBOL_INFOl? What happened today was an order rejected even though IB still consider the FEB contract on micro gold tradable rejected with the following reason:

order rejected - reason:this order does not comply with our order handling rules for derivatives subject to ibkr near-expiration and physical delivery risk policies.

The idea is to see if I am able to do a preventive check during the initialization in order to avoid this stupid issues caused by IB.

THX

Re: Function ibgSYMBOL_INFO

Posted: Fri Jan 28, 2022 2:17 pm
by board_admin
Sorry, there is in fact a problem with the documentation,
but It seems you already figured this out.

0=underlying
1=exchange
2=currency
3=type
4=expiry <<<<<<<
5=right
6=strike
7=conid
8=symbol

Re: Function ibgSYMBOL_INFO

Posted: Mon Jan 31, 2022 5:15 am
by Tuco
Thank You for your answer; Are You aware of a way to detect what IB calls LONG/SHORT FUTURES LIQUIDATION?

https://www.interactivebrokers.com/en/i ... p=physical


That day de-facto means the last trading day for a specific contract. Unfortunately IB changes those dates quite often and It's difficult to track them. In other words rather then expiry of a contract for futures would be very handy to know in advance when the last trading day is.

Re: Function ibgSYMBOL_INFO

Posted: Mon Jan 31, 2022 12:40 pm
by board_admin
Problably 40. Please give it a try.
Or just make a loop from 0-100 and check which numbers return what you are looking for.

Re: Function ibgSYMBOL_INFO

Posted: Mon Jan 31, 2022 7:37 pm
by Tuco
I get -2147483642 - Unknown Enumeration ID with setting to 40. It seems after 10 E.ID the function doesn't retrieve any value unfortunately.

Re: Function ibgSYMBOL_INFO

Posted: Mon Feb 21, 2022 3:03 pm
by board_admin
Did you map the the HE future?
In order to get information about HE, it should be known in the system.
For this, you use the Admin Tool to add HE future to the database of your configuration.
This is explained in one the plugin videos:

https://youtu.be/anCcZpmr_kQ?list=PLYD3 ... dcECuxa954