feat(research): prepare and retain explicit source datasets in the web workbench
This commit is contained in:
parent
06039d17ba
commit
366bee810b
21 changed files with 2677 additions and 76 deletions
|
|
@ -21,7 +21,10 @@ import {
|
|||
} from '../../apps/stock/orchestrator/src/data/historical-dataset';
|
||||
import type { StorageService } from '../../apps/stock/orchestrator/src/services/StorageService';
|
||||
import type { BacktestConfig } from '../../apps/stock/orchestrator/src/types';
|
||||
import { createRoutes } from '../../apps/stock/web-api/src/routes/create-routes';
|
||||
import {
|
||||
createRoutes,
|
||||
WEB_API_MAX_REQUEST_BODY_SIZE,
|
||||
} from '../../apps/stock/web-api/src/routes/create-routes';
|
||||
import {
|
||||
createWebSocketRoute,
|
||||
handleWebSocketConnection,
|
||||
|
|
@ -420,6 +423,7 @@ export async function fixture(browser: Browser, native = false) {
|
|||
const server = Bun.serve<RunSocketData, {}>({
|
||||
hostname: '127.0.0.1',
|
||||
port: 0,
|
||||
maxRequestBodySize: WEB_API_MAX_REQUEST_BODY_SIZE,
|
||||
async fetch(request, server) {
|
||||
const pathname = new URL(request.url).pathname;
|
||||
if (pathname === '/ws' && request.headers.get('upgrade') === 'websocket') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue