Navigation

    Backtrader Community

    • Register
    • 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/

    Warrant in Backtrader with IBStore

    General Discussion
    2
    2
    91
    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.
    • N
      nono_london last edited by

      Hi, anone know how to get a live warrant quotes from IBStore?
      For instance:
      Advent Technologies Holdings, ticker: "ADN" and warrant ticker "ADNWW"
      I tried:
      data2 = ib_store.getdata(dataname='ADNWW',
      sectype="WAR",
      exchange="SMART",
      currency='USD',
      timeframe=bt.TimeFrame.Seconds)
      Which doesn't work.
      I beleive the IB API, uses the underlying ticker AND the local symbol which is the warrant ticker. But local_symbol, doesn't show in the docs as a parameter.
      Let me know your thoughts

      run-out 1 Reply Last reply Reply Quote 0
      • run-out
        run-out @nono_london last edited by

        @nono_london In looking at the docstrings for IBData, warrants are not supported. These are supported:

         Supports the following contract specifications in parameter ``dataname``:
        
                  - TICKER  # Stock type and SMART exchange
                  - TICKER-STK  # Stock and SMART exchange
                  - TICKER-STK-EXCHANGE  # Stock
                  - TICKER-STK-EXCHANGE-CURRENCY  # Stock
        
                  - TICKER-CFD  # CFD and SMART exchange
                  - TICKER-CFD-EXCHANGE  # CFD
                  - TICKER-CDF-EXCHANGE-CURRENCY  # Stock
        
                  - TICKER-IND-EXCHANGE  # Index
                  - TICKER-IND-EXCHANGE-CURRENCY  # Index
        
                  - TICKER-YYYYMM-EXCHANGE  # Future
                  - TICKER-YYYYMM-EXCHANGE-CURRENCY  # Future
                  - TICKER-YYYYMM-EXCHANGE-CURRENCY-MULT  # Future
                  - TICKER-FUT-EXCHANGE-CURRENCY-YYYYMM-MULT # Future
        
                  - TICKER-YYYYMM-EXCHANGE-CURRENCY-STRIKE-RIGHT  # FOP
                  - TICKER-YYYYMM-EXCHANGE-CURRENCY-STRIKE-RIGHT-MULT  # FOP
                  - TICKER-FOP-EXCHANGE-CURRENCY-YYYYMM-STRIKE-RIGHT # FOP
                  - TICKER-FOP-EXCHANGE-CURRENCY-YYYYMM-STRIKE-RIGHT-MULT # FOP
        
                  - CUR1.CUR2-CASH-IDEALPRO  # Forex
        
                  - TICKER-YYYYMMDD-EXCHANGE-CURRENCY-STRIKE-RIGHT  # OPT
                  - TICKER-YYYYMMDD-EXCHANGE-CURRENCY-STRIKE-RIGHT-MULT  # OPT
                  - TICKER-OPT-EXCHANGE-CURRENCY-YYYYMMDD-STRIKE-RIGHT # OPT
                  - TICKER-OPT-EXCHANGE-CURRENCY-YYYYMMDD-STRIKE-RIGHT-MULT # OPT
        

        RunBacktest.com

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