Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2de07b8
fix
bxvtr Apr 29, 2026
d15f4db
fix
bxvtr Apr 29, 2026
ff9e0ea
m1-slice1-backtest-move
bxvtr Apr 29, 2026
ca05be1
m1-slice2b-clean-core-runtime
bxvtr Apr 29, 2026
1c7a5c0
m1 slice2: done
bxvtr Apr 29, 2026
175597a
m1 slice3: move examples
bxvtr Apr 29, 2026
c4680b6
m1 slice3: done
bxvtr Apr 29, 2026
f52d79f
m2 p3 sliceB4: add strict runtime mapping from run config to CoreConf…
bxvtr May 2, 2026
aace2d5
m2 p3 sliceB5: adopt the core canonical processing boundary for runti…
bxvtr May 2, 2026
e11dbf3
m2 p3 sliceD6: wire runtime successful NEW dispatch into canonical Or…
bxvtr May 2, 2026
8157bc1
m2 p3 sliceE3: wire runtime scheduled control wakeup realization into…
bxvtr May 2, 2026
3012516
m2 p4 s5: run bounded probe to determine whether current hftbacktest …
bxvtr May 3, 2026
4db3579
m2 p4 s6: run one final targeted probe to determine whether wait_orde…
bxvtr May 3, 2026
6a473bb
m2 p6 s5: add the smallest runtime tests that directly cover the two …
bxvtr May 3, 2026
1dc20c3
m2 p6 s6: replace current raw runtime integer cursor in HftStrategyRu…
bxvtr May 3, 2026
db6581a
m2 p7 s1: add core-runtime implementation-facing design note for futu…
bxvtr May 3, 2026
799153c
m2 p7 s2: add runner-level characterization tests needed before split…
bxvtr May 3, 2026
ffd915e
m2 p7 s3: add low-risk split capability protocol definitions for curr…
bxvtr May 3, 2026
02f13af
m2 p7 s4: add focused adapter-level characterization tests for HftBac…
bxvtr May 3, 2026
1be3162
m2 p7 s5: add an OrderSubmissionGateway typing.Protocol to the existi…
bxvtr May 3, 2026
b75518f
m2 p7 s6: align OrderSubmissionGateway, type runner execution, keep v…
bxvtr May 3, 2026
46f13d5
m2 p7 s7: add lightweight static boundary guard tests that prevent ad…
bxvtr May 3, 2026
6cec884
m2 p8 s1: update core-runtime README so a contributor understands how…
bxvtr May 3, 2026
4143bf8
m2 p8 s2: replace devcontainer-absolute local JSON paths with repo-ro…
bxvtr May 3, 2026
607c2bf
m2 p8 s3: move default local backtest outputs out of tracked tests/da…
bxvtr May 3, 2026
45beb8c
m2 p8 s4: document Core Runtime is now usable for the current local h…
bxvtr May 3, 2026
c5ae259
m2 p9 s3: rename core-runtime import root from trading_runtime to cor…
bxvtr May 3, 2026
12c68df
m2 p9 s4.2: remove active legacy naming references
bxvtr May 3, 2026
d5050b9
m2 p9 s5.2: rewrite README that matches the current architecture and …
bxvtr May 3, 2026
c79e51b
m2 p9 s5.3: recompile requirements
bxvtr May 3, 2026
126523a
m2 p10 s3: Docker validation and build-context ignore rules
bxvtr May 5, 2026
58cff1b
m2 p10 s3.1: fix build destination
bxvtr May 5, 2026
01af55a
m2 p10 s4: improve and refactor argo templates
bxvtr May 5, 2026
19f9114
m2 p10 s4.1: template fix
bxvtr May 5, 2026
d77296f
m2 p10 s5: inform about removal of unnecessary mlflow S3 configs
bxvtr May 5, 2026
223302b
m2 p10 s6: remove redundant examples
bxvtr May 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"name": "Trading Runtime Dev",
"name": "TradingChassis Core Runtime Dev",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},

"postCreateCommand": "./scripts/post-create.sh",
"workspaceFolder": "/workspaces/core-runtime",
"remoteUser": "root",
"runArgs": ["--security-opt=label=disable"],
"containerEnv": {
"SHELL": "/bin/bash"
},

"postCreateCommand": "./scripts/post-create.sh"

"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.debugpy"
]
}
}
}
}
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,21 @@ site/
# ==============================
# Test cache / reports
# ==============================
.ruff_cache/
.mypy_cache/
.import_linter_cache/
pytest_cache/
.tox/
.nox/
.hypothesis/
.coverage*
coverage.xml

# ==============================
# Local runtime outputs
# ==============================
.runtime/

# ==============================
# Random OS files
# ==============================
Expand Down
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TRADING_FRAMEWORK_COMMIT=934d332c21bef56fa76c19f477143d8d438238c2
TRADINGCHASSIS_CORE_COMMIT=934d332c21bef5...
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Clear and concise description of the issue.

## Environment

- Trading Framework version:
- Core (`tradingchassis-core`) version:
- Python version:
- Execution mode (local / cloud):
- Strategy used:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ spec:
arguments:
parameters:
- name: image_repo
value: "ghcr.io/trading-engineering/trading-runtime"
value: "ghcr.io/tradingchassis/core-runtime"
- name: image_tag
value: "${IMAGE_TAG}"
- name: experiment_config
value: "/usr/local/lib/python3.11/site-packages/trading_runtime/argo/argo.json"
value: "/usr/local/lib/python3.11/site-packages/core_runtime/argo/argo.json"
- name: scratch_root
value: "/mnt/scratch"
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
parameters:
- name: git_branch
value: "${GIT_BRANCH}"
- name: trading_runtime_commit
- name: core_runtime_commit
value: "${RUNTIME_COMMIT}"
8 changes: 4 additions & 4 deletions .github/workflows/argo-build-and-backtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
- name: Apply Argo WorkflowTemplates
run: |
sudo microk8s kubectl -n "${{ needs.resolve-context.outputs.namespace }}" apply \
-f argo/workflowtemplate-build-push-ghcr.yaml \
-f argo/workflowtemplate-backtest-fanout.yaml
-f argo/templates/workflowtemplate-build-push-ghcr.yaml \
-f argo/templates/workflowtemplate-backtest-fanout.yaml

build-and-backtest:
runs-on: self-hosted
Expand All @@ -88,7 +88,7 @@ jobs:
export GIT_BRANCH="${{ needs.resolve-context.outputs.branch }}"

BUILD_NAME=$(
envsubst < argo/run-build.yaml | \
envsubst < .github/argo-launchers/run-build.yaml | \
sudo microk8s kubectl -n "${{ needs.resolve-context.outputs.namespace }}" create -f - -o jsonpath='{.metadata.name}'
)

Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
run: |
export IMAGE_TAG="${GITHUB_SHA}"

envsubst < argo/run-backtest.yaml | \
envsubst < .github/argo-launchers/run-backtest.yaml | \
sudo microk8s kubectl -n "${{ needs.resolve-context.outputs.namespace }}" create -f -

echo "Submitted backtest workflow in namespace: ${{ needs.resolve-context.outputs.namespace }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ site/
local_settings.py
db.sqlite3
db.sqlite3-journal
.runtime/

# ==============================
# Devcontainer related
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This project adheres to Semantic Versioning.

## [0.1.0] – 2026-02-17

Initial public release of the trading-runtime execution and orchestration layer.
Initial public release of the Core Runtime execution and orchestration layer.

### Added

Expand All @@ -20,7 +20,7 @@ Initial public release of the trading-runtime execution and orchestration layer.

#### Dependency Management

- Commit-pinned `trading-framework` integration
- Commit-pinned `tradingchassis-core` integration
- Reproducible dependency compilation via pip-tools
- Environment bootstrap scripts

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thank you for your interest in contributing!

This repository is a runtime example for the [trading-framework](https://github.com/trading-engineering/trading-framework) framework using
This repository is a Core Runtime example for [Core (`tradingchassis-core`)](https://github.com/TradingChassis/core) using
[Kubernetes](https://kubernetes.io) (via e.g. [MicroK8s](https://microk8s.io)) and [Argo Workflows](https://argoproj.github.io/workflows).
Contributions should preserve clarity, explicitness and reproducibility.

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# ==================================================
FROM python:3.11.14-slim-trixie AS build

ARG TRADING_RUNTIME_COMMIT
# ARG TRADING_RUNTIME_COMMIT

ENV TRADING_RUNTIME_COMMIT=${TRADING_RUNTIME_COMMIT}
# ENV TRADING_RUNTIME_COMMIT=${TRADING_RUNTIME_COMMIT}
ENV PATH="/install/bin:/install-dev/bin:${PATH}"
ENV PYTHONPATH="/install/lib/python3.11/site-packages"

WORKDIR /workspaces/trading-runtime
WORKDIR /workspaces/core-runtime

# System dependencies for building Python packages & running tests
RUN apt-get update && \
Expand All @@ -29,7 +29,7 @@ RUN pip install --upgrade pip \
# Copy project files
COPY pyproject.toml .
COPY scripts/check.sh .
COPY trading_runtime/ trading_runtime/
COPY core_runtime/ core_runtime/
COPY tests/ tests/

# Install the package itself
Expand Down
Loading
Loading