refactor: TOB check uses user+orderId instead of prices

This commit is contained in:
Lukas deConantsesznak
2025-08-01 16:00:23 -06:00
parent 9df6c84abd
commit 6caec8e8e1
2 changed files with 58 additions and 20 deletions

28
.vscode/launch.json vendored
View File

@@ -11,6 +11,34 @@
"port": 2230,
"timeout": 3000,
"restart": true
},
{
"type": "node",
"request": "launch",
"name": "Launch DLOB Publisher",
"runtimeExecutable": "ts-node",
"program": "${workspaceFolder}/src/publishers/dlobPublisher.ts",
"args": ["--D"],
"env": {
"KILLSWITCH_SLOT_DIFF_THRESHOLD": "2500",
"PERP_MARKETS_TO_LOAD": "1,2",
"LOCAL_CACHE": "true",
"RUNNING_LOCAL": "true",
"USE_REDIS": "true",
"ENDPOINT": "",
"WS_ENDPOINT": "",
"USE_WEBSOCKET": "true",
"USE_GRPC": "true",
"GRPC_ENDPOINT": "",
"TOKEN": "",
"USE_ORDER_SUBSCRIBER": "true",
"STATE_COMMITMENT": "confirmed",
"DRIFT_ENV": "mainnet-beta",
"ENV": "mainnet-beta",
"ENABLE_TOB_MONITORING": "true",
"TOB_MONITORING_ENABLED_PERP_MARKETS": "1,2"
},
"console": "integratedTerminal"
}
]
}