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
-
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 -
@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