messy work. backtests / mock-data
This commit is contained in:
parent
4e4a048988
commit
fa70ada2bb
51 changed files with 2576 additions and 887 deletions
29
apps/stock/core/index.mjs
Normal file
29
apps/stock/core/index.mjs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// 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,
|
||||
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