Please add this str_security in IBridgePy/security_info.csv

I have installed the Spider and Anaconda and I’m testing the functionalities available, specifically if I’m able to get the price of a futures contract.



I’m trying to use the show_real_time_price.py with the following modified print statement:

    print ("ES ask_price=", show_real_time_price(symbol('ES'), 'ask_price'))



however I’m getting the following error:

   Exchange of STK PINS is missing.

   Please add this str_security in IBridgePy/security_info.csv



The values I have in security_info.csv are the default ones that come with the IBridgePy install:

   NQ,GLOBEX,FUT,USD,GLOBEX,

   ES,GLOBEX,FUT,USD,GLOBEX,

   YM,ECBOT,FUT,USD,



Are futures contracts available for algo trading with IBridgePy?

If so what is wrong with the entry in security_info.csv?

Also can I add an additional future contract like MES?





 

Hi John,



The error "Exchange of STK PINS is missing" generally occurs when the information entered in the security_info.csv is incorrect.



You can find the details of any security here.



The details that you need to enter in the security_info.csv are symbol name, exchange, contract type, currency.







Are futures contracts available for algo trading with IBridgePy?



Yes, futures contracts are available for algo trading with IBridgePy.  You can check on IB TWS at Ticker lookup tab.