This repository is a template for syncing a QuantConnect project with GitHub using the Actions tab (click-to-run workflows).
It supports:
- Compare: show what changed between QC and this repo
- Pull: QuantConnect → GitHub repo
- Push: GitHub repo → QuantConnect
- QuantConnect account with API access enabled (your account must be allowed to use the QuantConnect API)
- A QuantConnect project (existing or newly created)
- GitHub repo admin access (to set Secrets/Variables and run workflows)
- Create a new repository from this template.
- Configure the required GitHub Secrets/Variables (below).
Set: Settings → Secrets and variables → Actions → Secrets
QC_USER_ID— QuantConnect User ID (keep private)QC_API_TOKEN— QuantConnect API token (keep private)
Set: Settings → Secrets and variables → Actions → Variables
QC_PROJECT_ID— target QuantConnect project id
Edit : .github/qc-sync-config.json
- default repo folder of QuantConnect Files is "project_dir": "QuantConnect"
- allowed file extensions to compare, push and pull
Typical layout (adjust to match your repo):
QuantConnect/(default) — the QuantConnect project files tracked in Gitscripts/— custom scripts that call the QuantConnect API.github/workflows/— workflows you run from the Actions tab
- Go to Actions and run the workflows:
Compare QuantConnect and Github(Compare manually)Pull from QuantConnect(QuantConnect → GitHub)Push to QuantConnect(GitHub → QuantConnect)QC Auto Compare(Compare automatically)
Workflow names and exact behavior are defined in
.github/workflows/
- Never commit tokens/credentials. Use GitHub Secrets.
- Consider protecting
mainand using PRs for changes.