work on new engine
This commit is contained in:
parent
44476da13f
commit
a1e5a21847
126 changed files with 3425 additions and 6695 deletions
36
apps/stock/engine/index.mjs
Normal file
36
apps/stock/engine/index.mjs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
// ESM wrapper for the native module
|
||||
import { createRequire } from 'module';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, join } from 'path';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
const nativeBinding = require(join(__dirname, 'index.node'));
|
||||
|
||||
export const {
|
||||
TradingEngine,
|
||||
BacktestEngine,
|
||||
TechnicalIndicators,
|
||||
IncrementalSMA,
|
||||
IncrementalEMA,
|
||||
IncrementalRSI,
|
||||
RiskAnalyzer,
|
||||
OrderbookAnalyzer,
|
||||
MarketData,
|
||||
MarketUpdate,
|
||||
Order,
|
||||
Fill,
|
||||
Position,
|
||||
RiskLimits,
|
||||
RiskMetrics,
|
||||
ExecutionResult,
|
||||
OrderBookLevel,
|
||||
OrderBookSnapshot,
|
||||
MarketMicrostructure,
|
||||
PositionUpdate,
|
||||
RiskCheckResult
|
||||
} = nativeBinding;
|
||||
|
||||
export default nativeBinding;
|
||||
Loading…
Add table
Add a link
Reference in a new issue