erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.83k stars 767 forks source link

Futures for S&P 500 #514

Closed piotrgolawski closed 1 year ago

piotrgolawski commented 2 years ago

Hi guys, I am performing


    bars = ib.reqHistoricalData(
        contract=contract,
        endDateTime='',
        durationStr='2 Y',
        barSizeSetting='1 day',
        whatToShow='TRADES',
        useRTH=False,
        formatDate=1,
        keepUpToDate=False,
        chartOptions=[]
    )

And receiving "Error 162, reqId 3: Historical Market Data Service error message:No market data permissions for GLOBEX FUT, contract: Future(symbol='ES', lastTradeDateOrContractMonth='202212', exchange='GLOBEX')" 

    I have subscribed for global -> CUSIP but nothing have changed.

    My goal is to fetch history and live data for S&P 500, could you please help me?
zdytch commented 2 years ago

You need to subscribe to "CME Real-Time" in order to fetch ES data

This is not related to ib_insync

piotrgolawski commented 2 years ago

Are you sure this is this one? It cost 123$ / month!

zdytch commented 2 years ago

I use it myself, so I'm sure. It costs $1.25/mo, please check the market subscription prices from the "User settings" page: https://take.ms/rX05Y

piotrgolawski commented 2 years ago

https://ibb.co/rsvcPNf Is it this?

zdytch commented 2 years ago

Level 1 (enough to get historical data) costs $1.25 for me: https://take.ms/c7tXr Level 1 and Level 2 subscription costs $11: https://take.ms/TJmqBZ

Maybe you are qualified as a professional, so the prices are higher for you

piotrgolawski commented 2 years ago

Yeah, you are right! I had changed that for now. Thanks for help