Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Loading Indices (VIX Index) not working

    General Code/Help
    1
    2
    222
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chewbacca last edited by

      Has anyone here been using any sort of INDEX in BT?

      I have live data subscription for the VIX Index, I see realtime data in TWS, however, I've tried a 100 different ways to load it in BT - all failed.

      I've tried:
      dataname='VIX-IND-CBOE-USD'
      dataname='VIX-IND-CBOE-USD-1000'

      I've also tried by requesting it a different way (the same way as described in the IBApi):
      symbol="VIX",
      sectype="IND",
      exchange="CBOE",
      currency='USD',

      All I get is:
      makecontract() called by init, symbol: VIX, sectype: IND, exchange: CBOE, currency: USD, expiry: None, strike: None, right: None, mult: , localSymbol: None (mult is ''), also tried with 1 and 1000, no difference

      getContractDetails() returns:
      ContractID: 13455763 | Category: Volatility Index | Contract Month: None | Industry: Indices | Long name: CBOE Volatility Index
      Market Name: None | Currency: USD | Exchange: CBOE | Multiplier: None | Expiry: None
      Local symbol: VIX | Sec type: IND | Symbol: VIX | Trading class: None
      Liquid Hours: 20201215:0215-20201215:0815;20201215:0830-20201215:1515;20201216:0215-20201216:0815;20201216:0830-20201216:1515;20201217:0215-20201217:0815;20201217:0830-20201217:1515;20201218:0215-20201218:0815;20201218:0830-20201218:1515
      Trading Hours: 20201215:0215-20201215:0815;20201215:0830-20201215:1515;20201216:0215-20201216:0815;20201216:0830-20201216:1515;20201217:0215-20201217:0815;20201217:0830-20201217:1515;20201218:0215-20201218:0815;20201218:0830-20201218:1515
      Valid Exchanges: CBOE

      So - it returns a "valid" contract, but - no live data? I've not set session filters.

      1 Reply Last reply Reply Quote 0
      • C
        chewbacca last edited by

        For some reason - it started working only after enabling rtbar=True.
        The VIX Futures however seem to work without it.

        Has anyone have any idea on this?

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors