We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collective2 Supports Index Options:
I hacked LEAN to send the following message:
"message = "{ \"StrategyId\":145772785,\"Positions\":[{ \"C2Symbol\":{ \"FullSymbol\":\"SPXW2431L5900\",\"SymbolType\":\"option\"},\"Quantity\":1.0}]}";
and Collective2 accepted the orders:
It doesn't support it (see ConvertTypeOfSymbol method)
Using
typeOfSymbol = targetSymbol.SecurityType switch { SecurityType.Equity => "stock", SecurityType.Forex => "forex", SecurityType.Future => "future", SecurityType.IndexOption => "option", SecurityType.Option => "option", _ => "NotImplemented", };
fixes the issue.
However, there are other problems:
var adjustedPercent = security.BuyingPowerModel.GetMaintenanceMargin(marginParameters) / totalPortfolioValue;
SymbolRepresentation.GenerateOptionTicker
Place order for SPXW,
master
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behavior
Collective2 Supports Index Options:
I hacked LEAN to send the following message:
and Collective2 accepted the orders:
Actual Behavior
It doesn't support it (see ConvertTypeOfSymbol method)
Potential Solution
Using
fixes the issue.
However, there are other problems:
SymbolRepresentation.GenerateOptionTicker
doesn't handle SPXW, it returns SPX as ticker.
Reproducing the Problem
Place order for SPXW,
Checklist
master
branchThe text was updated successfully, but these errors were encountered: