@hoox-sh/pynets 0.4.0 → 0.5.0
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.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -1
- package/dist/browser.js +63 -63
- package/dist/index.js +477 -9
- package/package.json +1 -1
- package/src/cli/rich.ts +1 -1
- package/src/runtime/compile/emit.ts +17 -0
- package/src/runtime/compile/emit_call.ts +54 -1
- package/src/runtime/compile/runtime.ts +51 -1
- package/src/runtime/footprint.ts +272 -0
- package/src/runtime/interpret.ts +174 -8
- package/src/runtime/request.ts +19 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.0] - 2026-09-27
|
|
11
|
+
|
|
12
|
+
Python `Runtime.run` footprint mock, plot style / alert frequency tokens, and `alert()` gating. Compile emits the same names.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- `request.footprint` Python mock on interpret and compile. `footprint.*` and `volume_row.*` accessors (call form). `request.seed` seeds the mock RNG so numbers match Python.
|
|
16
|
+
- `plot.style_line` … `plot.style_circles` and `alert.freq_once_per_bar` / `once_per_bar_close` / `all` on interpret and compile.
|
|
17
|
+
- `alert()` frequency gating: default once per bar, `"all"` every call, zero-arg is a no-op.
|
|
18
|
+
|
|
19
|
+
### Notes
|
|
20
|
+
- Realtime `once` rollback and the extension-analytics `ta.*` list are still open.
|
|
21
|
+
- Chart-series plots that Python leaves `na` stay unwired (`ta.beta`, `ta.skewness`, `ta.parkinson`, and the rest of that list).
|
|
22
|
+
|
|
10
23
|
## [0.4.0] - 2026-09-27
|
|
11
24
|
|
|
12
25
|
Interpret and compile for the next Python `Runtime.run` slice: bar-mode `ta.*` detectors, strategy field emit, drawing-book emit, and host helpers. `array.from` on the compile path collects its arguments.
|
package/README.md
CHANGED
|
@@ -144,7 +144,9 @@ Wired through one dispatcher (`src/runtime/interpret.ts`). Not a second engine.
|
|
|
144
144
|
|
|
145
145
|
**`strategy.*`** — entry/exit/order, pending limit/stop, commission/slippage/pyramiding, open/closed trade accessors, **`strategy.risk.*`**, **OCA cancel/reduce**. `strategy.cash` is free cash and still selects cash sizing for `default_qty_type`.
|
|
146
146
|
|
|
147
|
-
**Drawings / alerts** — `line` / `label` / `box` / `table` / `polyline` / `linefill` getters and setters, `*.all`, `*.copy`, `chart.point.*`; `alert` / `alertcondition
|
|
147
|
+
**Drawings / alerts** — `line` / `label` / `box` / `table` / `polyline` / `linefill` getters and setters, `*.all`, `*.copy`, `chart.point.*`; `alert` / `alertcondition` with Python frequency tokens (`alert.freq_*`). `plot.style_*` tokens. `timenow` is the dataset last-bar time on every bar.
|
|
148
|
+
|
|
149
|
+
**`request.*`** — same-symbol `security` passthrough; foreign / HTF without a feed is `na`. `request.footprint` is Python’s mock object (`footprint.*` / `volume_row.*`); `request.seed` seeds that mock.
|
|
148
150
|
|
|
149
151
|
---
|
|
150
152
|
|