QuantConnect / QuantConnect/Lean
Automatically trade the mapped asset
Open
@AlexCatarino is already working on this.
Since May 7, 2026.
agent-generation
- Dominant language
- C#
- Stars
- 21.7k
- Forks
- 5.3k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 34
Description
Expected Behavior
If we pass the continuous Future Symbol to the set_holdings method, it trades the mapped contract.
Actual Behavior
It throws
Backtest Handled Error: 2021-06-18 07:00:00 The security with symbol '/GC' is marked as non-tradable.
Potential Solution
N/A
Reproducing the Problem
https://www.quantconnect.cloud/backtest/d91cef26bd0baeed213a40972e3a42d2/?theme=darkly
System Information
QC Cloud
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- I have provided detailed steps to reproduce the issue
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.