thetadatadx 9.1.0 → 11.0.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/README.md +3 -1
- package/index.d.ts +609 -13
- package/index.js +59 -52
- package/package.json +7 -7
- package/streaming-session.d.ts +63 -1
- package/streaming-session.js +277 -0
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@ Node.js SDK for ThetaData market data. napi-rs bindings over the `thetadatadx` R
|
|
|
5
5
|
Every call crosses the napi boundary into compiled Rust: gRPC, protobuf, zstd, FIT decoding, and TCP streaming run inside the `thetadatadx` crate.
|
|
6
6
|
|
|
7
7
|
> **Surface coverage:** the TypeScript binding exposes all three ThetaData surfaces — MDDS (historical), FPSS (streaming), and FLATFILES (whole-universe daily blobs). Flat files land via `tdx.flatFiles.*()` with `.toArrowIpc()` and `.toJson()` terminals plus a `tdx.flatFileToPath(...)` raw-bytes helper — see the [Flat Files](#flat-files) section for the full method list.
|
|
8
|
+
>
|
|
9
|
+
> **REST routing escape hatch:** `FallbackPolicy.restAlways` + `Config.withRestFallback` + four `optionHistory*WithFallback` async methods on `ThetaDataDxClient` route the historical-quote endpoints over a locally-running Terminal's REST surface when the caller wants a single transport for every quote-bearing call. See [channel pool design](../../docs-site/docs/channel-pool-design.md) for the connection-recovery story.
|
|
8
10
|
|
|
9
11
|
## Install
|
|
10
12
|
|
|
@@ -217,7 +219,7 @@ const json = JSON.parse(rows.toJson());
|
|
|
217
219
|
const oi = tdx.flatFiles.request("OPTION", "OPEN_INTEREST", "20260428");
|
|
218
220
|
|
|
219
221
|
// Raw vendor CSV / JSONL straight to disk
|
|
220
|
-
tdx.
|
|
222
|
+
tdx.flatFileToPath("OPTION", "QUOTE", "20260428",
|
|
221
223
|
"/tmp/option-quote", "csv");
|
|
222
224
|
```
|
|
223
225
|
|