Bull Call Spread, Options Trading, Options Strategy, Python.
strategy is defined as a list in which each leg of the strategy is represented by a dictionary. In the first leg of the strategy that we used as an example, there is a key, prevpos, which informs OptionLab that this leg of the strategy corresponds to a position that was already open. If the value