API Reference
TechKit provides multiple APIs for different use cases:
API Layers
graph TB
A[Python API] --> E[C++ Core]
B[Node.js Native] --> E
C[WebAssembly] --> E
D[C API] --> E
subgraph "High-Level APIs"
A
B
C
end
subgraph "Low-Level APIs"
D
E
end
Choose Your API
API |
Best For |
Performance |
Ease of Use |
|---|---|---|---|
Data analysis, backtesting |
⭐⭐⭐⭐ |
⭐⭐⭐⭐⭐ |
|
Server-side, real-time |
⭐⭐⭐⭐ |
⭐⭐⭐⭐ |
|
Web apps, charts |
⭐⭐⭐ |
⭐⭐⭐⭐ |
|
Native apps, max performance |
⭐⭐⭐⭐⭐ |
⭐⭐⭐ |
|
Language bindings, embedding |
⭐⭐⭐⭐⭐ |
⭐⭐ |
Common Patterns
All APIs share these concepts:
Result Types
# Single value
class Result:
value: float # Calculated value
valid: bool # True if warmup complete
# Multi-output (MACD, BBands, etc.)
class MACDResult:
macd: float
signal: float
histogram: float
valid: bool
Lifecycle
Create - Instantiate with parameters
Update - Feed data incrementally, or
Calculate - Process batch data
Reset - Clear state for reuse
Destroy - Automatic (Python/C++) or explicit (C)