cadlag-starter 0.1.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cadlag_starter-0.1.0a1/LICENSE +21 -0
- cadlag_starter-0.1.0a1/PKG-INFO +52 -0
- cadlag_starter-0.1.0a1/README.md +33 -0
- cadlag_starter-0.1.0a1/pyproject.toml +30 -0
- cadlag_starter-0.1.0a1/setup.cfg +4 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter/__init__.py +25 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter/__main__.py +6 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter/sample.csv +12 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter.egg-info/PKG-INFO +52 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter.egg-info/SOURCES.txt +11 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter.egg-info/dependency_links.txt +1 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter.egg-info/requires.txt +2 -0
- cadlag_starter-0.1.0a1/src/cadlag_starter.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cadlag contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cadlag-starter
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: Synthetic prices and a runnable example for the Cadlag Mini educational toolkit
|
|
5
|
+
Author: Cadlag contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://cadlag.pro
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Education
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: cadlag-sdk==0.1.0a1
|
|
17
|
+
Requires-Dist: cadlag-ce==0.1.0a1
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# cadlag-starter — Cadlag Mini
|
|
21
|
+
|
|
22
|
+
**Version 0.1.0a1 is an educational miniature written independently from scratch.**
|
|
23
|
+
It provides the small functionality described below. It does not provide the full
|
|
24
|
+
Cadlag platform and is not API-compatible with previous Cadlag distributions.
|
|
25
|
+
It is an alpha release for learning and experimentation, not live trading.
|
|
26
|
+
|
|
27
|
+
Synthetic prices and a runnable example for the Cadlag Mini educational toolkit.
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
python -m cadlag_starter
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Prints a backtest report for ten bundled synthetic observations.
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from cadlag_starter import sample_prices, demo
|
|
39
|
+
print(demo())
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Package family
|
|
44
|
+
|
|
45
|
+
- `cadlag-sdk`: price records and CSV validation.
|
|
46
|
+
- `cadlag-ce`: a prior-close moving-average strategy and equity curve.
|
|
47
|
+
- `cadlag-starter`: synthetic sample prices and a runnable example.
|
|
48
|
+
- `cadlag-pro`: basic drawdown and volatility calculations.
|
|
49
|
+
- `cadlag-quant`: command-line bundle, with optional analytics extra.
|
|
50
|
+
|
|
51
|
+
All Mini components use version `0.1.0a1` and are MIT licensed. Only Python's
|
|
52
|
+
standard library is used beyond dependencies on other Mini components.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# cadlag-starter — Cadlag Mini
|
|
2
|
+
|
|
3
|
+
**Version 0.1.0a1 is an educational miniature written independently from scratch.**
|
|
4
|
+
It provides the small functionality described below. It does not provide the full
|
|
5
|
+
Cadlag platform and is not API-compatible with previous Cadlag distributions.
|
|
6
|
+
It is an alpha release for learning and experimentation, not live trading.
|
|
7
|
+
|
|
8
|
+
Synthetic prices and a runnable example for the Cadlag Mini educational toolkit.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
python -m cadlag_starter
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Prints a backtest report for ten bundled synthetic observations.
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from cadlag_starter import sample_prices, demo
|
|
20
|
+
print(demo())
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Package family
|
|
25
|
+
|
|
26
|
+
- `cadlag-sdk`: price records and CSV validation.
|
|
27
|
+
- `cadlag-ce`: a prior-close moving-average strategy and equity curve.
|
|
28
|
+
- `cadlag-starter`: synthetic sample prices and a runnable example.
|
|
29
|
+
- `cadlag-pro`: basic drawdown and volatility calculations.
|
|
30
|
+
- `cadlag-quant`: command-line bundle, with optional analytics extra.
|
|
31
|
+
|
|
32
|
+
All Mini components use version `0.1.0a1` and are MIT licensed. Only Python's
|
|
33
|
+
standard library is used beyond dependencies on other Mini components.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "cadlag-starter"
|
|
7
|
+
version = "0.1.0a1"
|
|
8
|
+
description = "Synthetic prices and a runnable example for the Cadlag Mini educational toolkit"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{name = "Cadlag contributors"}]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Intended Audience :: Education",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
19
|
+
"Operating System :: OS Independent",
|
|
20
|
+
]
|
|
21
|
+
dependencies = ["cadlag-sdk==0.1.0a1", "cadlag-ce==0.1.0a1"]
|
|
22
|
+
|
|
23
|
+
[project.urls]
|
|
24
|
+
Homepage = "https://cadlag.pro"
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.packages.find]
|
|
27
|
+
where = ["src"]
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.package-data]
|
|
30
|
+
cadlag_starter = ["sample.csv"]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Synthetic prices and a runnable Cadlag Mini example."""
|
|
2
|
+
from importlib.resources import files
|
|
3
|
+
|
|
4
|
+
from cadlag_ce import backtest
|
|
5
|
+
from cadlag_sdk import Price
|
|
6
|
+
from datetime import date
|
|
7
|
+
import csv
|
|
8
|
+
import io
|
|
9
|
+
|
|
10
|
+
__version__ = "0.1.0a1"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def sample_prices() -> tuple[Price, ...]:
|
|
14
|
+
"""Return bundled synthetic observations; no real market dataset is included."""
|
|
15
|
+
text = files(__package__).joinpath("sample.csv").read_text(encoding="utf-8")
|
|
16
|
+
return tuple(Price(date.fromisoformat(row["date"]), float(row["close"]))
|
|
17
|
+
for row in csv.DictReader(io.StringIO(text)))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def demo() -> dict:
|
|
21
|
+
return backtest(sample_prices()).as_dict()
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
__all__ = ["sample_prices", "demo"]
|
|
25
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cadlag-starter
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: Synthetic prices and a runnable example for the Cadlag Mini educational toolkit
|
|
5
|
+
Author: Cadlag contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://cadlag.pro
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Education
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: cadlag-sdk==0.1.0a1
|
|
17
|
+
Requires-Dist: cadlag-ce==0.1.0a1
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# cadlag-starter — Cadlag Mini
|
|
21
|
+
|
|
22
|
+
**Version 0.1.0a1 is an educational miniature written independently from scratch.**
|
|
23
|
+
It provides the small functionality described below. It does not provide the full
|
|
24
|
+
Cadlag platform and is not API-compatible with previous Cadlag distributions.
|
|
25
|
+
It is an alpha release for learning and experimentation, not live trading.
|
|
26
|
+
|
|
27
|
+
Synthetic prices and a runnable example for the Cadlag Mini educational toolkit.
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
python -m cadlag_starter
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Prints a backtest report for ten bundled synthetic observations.
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from cadlag_starter import sample_prices, demo
|
|
39
|
+
print(demo())
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Package family
|
|
44
|
+
|
|
45
|
+
- `cadlag-sdk`: price records and CSV validation.
|
|
46
|
+
- `cadlag-ce`: a prior-close moving-average strategy and equity curve.
|
|
47
|
+
- `cadlag-starter`: synthetic sample prices and a runnable example.
|
|
48
|
+
- `cadlag-pro`: basic drawdown and volatility calculations.
|
|
49
|
+
- `cadlag-quant`: command-line bundle, with optional analytics extra.
|
|
50
|
+
|
|
51
|
+
All Mini components use version `0.1.0a1` and are MIT licensed. Only Python's
|
|
52
|
+
standard library is used beyond dependencies on other Mini components.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/cadlag_starter/__init__.py
|
|
5
|
+
src/cadlag_starter/__main__.py
|
|
6
|
+
src/cadlag_starter/sample.csv
|
|
7
|
+
src/cadlag_starter.egg-info/PKG-INFO
|
|
8
|
+
src/cadlag_starter.egg-info/SOURCES.txt
|
|
9
|
+
src/cadlag_starter.egg-info/dependency_links.txt
|
|
10
|
+
src/cadlag_starter.egg-info/requires.txt
|
|
11
|
+
src/cadlag_starter.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cadlag_starter
|