nx_fin_marketdata_fetch.nx
buildroot/runtime/nx_fin_marketdata_fetch.nx
about
nx_fin_marketdata_fetch.nx -- MAKE IT REAL: the live ingestion adapter + end-to-end demo. Fetches a symbol's
daily OHLCV from Alpha Vantage (CSV) over the SOVEREIGN TLS fetcher (no curl), parses via md_parse_csv,
reverses to chronological order (Alpha Vantage returns newest-first), then runs the ENTIRE pipeline on REAL
data: ADV/capacity (R1) -> SMA signals (R3) -> backtest with slippage + ADV cap (R2) -> honest metrics. This
proves the whole stack on real market data -- SIM ONLY, no live capital. The API key is DATA (Cardinal 11/17:
env/config > default "demo"); the demo key serves IBM. Composes the proven fetch + the fin_* organs.
license_tier: ORIGINAL
dependencies 8 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nxnx_fin_marketdata.nxnx_fin_strategy.nxnx_fin_backtest.nxnx_fin_paper.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 16 | const K_MAGIC_10000: i64 = 10000 |
| 17 | const K_MAGIC_4194304: i64 = 4194304 |
| 18 | const K_MAGIC_4096: i64 = 4096 |
| 19 | const K_MAGIC_8388608: i64 = 8388608 |
| 20 | const K_MAGIC_1000000: i64 = 1000000 |
| 21 | const K_MAGIC_7000: i64 = 7000 |
functions
| 23 | func pp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 24 | func pn(v: i64) -> i64 |
| 32 | func mf_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ dst[off+i]=s[i]; i=i+1 } return off+i } called by 1: main |
| 35 | func mf_reverse(bars: *i64, n: i64) -> i64 |
| 52 | func tour_print(name: *u8, out: *i64) -> i64 |
| 64 | func mf_strlen(s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){i=i+1} return i } |
| 67 | func cfg_get(buf: *u8, n: i64, key: *u8, out: *u8, out_cap: i64) -> i64 |
| 93 | func main() -> i64 |