Error code 200 IB API

Discussion in 'Trading Software' started by Soon2Bgreat, Jan 9, 2008.

  1. Hello i just recently downloaded IB's API and am having trouble getting market data.

    It tells me i have error code 200 which is no security definition is found for this request.

    Does this mean i've input the symbol information incorrect, or it's a technical (software, harware) security issue.

    I tried getting data from their sample symbols, which are already setup and i get the same error message...so i don't think i've input the symbol incorrectly.

    I'd appreciate any input or a point towards the right direction.

    Thank you for any help.
     
  2. It means the symbol (or rather Contract) information is incorrect or incomplete.

    Small java sample:

    Code:
    Contract contract = new com.ib.client.Contract (
        ticker, 
        contractType, 
        expiry, 
        0, 
        "", 
        "", 
        exchange, 
        currency, 
        "", 
        null, 
        "");
    
    Where contractType is "STK" or "FUT".

    eg
    Code:
    Contract contract = new com.ib.client.Contract (
        "ES", 
        "FUT"
        "200803", 
        0, 
        "", 
        "", 
        "GLOBEX",
        "USD",
        "", 
        null, 
        "");
    

    You will need to fill in some of the other arguments for an option contract.