- Created test suite demonstrating TAKE_PROFIT_2_SIZE_PERCENT=0 configuration - Verified TP2 activates trailing stop without closing position - Validated profit-based widening: >2% profit = 1.3× wider trail - Real-world scenario test: 6% move captured vs 2.32% with old system - Test shows 80% P&L improvement (1.8× better total return) - All 5 tests passing Configuration already active in production: - TAKE_PROFIT_2_SIZE_PERCENT=0 (pure runner) - Profit widening logic in position-manager.ts lines 1562-1566 - Container deployed Dec 9, 2025 17:42 with this config
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"name": "trading-bot-v4",
|
|
"version": "4.0.0",
|
|
"description": "Autonomous Trading Bot v4 with Drift Protocol and Pyth Network integration",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"test:ci": "jest --ci --coverage --reporters=default --reporters=jest-junit",
|
|
"discover-markets": "npx tsx scripts/discover-drift-markets.ts"
|
|
},
|
|
"dependencies": {
|
|
"@drift-labs/sdk": "^2.75.0",
|
|
"@prisma/client": "^6.18.0",
|
|
"@pythnetwork/hermes-client": "^1.0.0",
|
|
"@pythnetwork/price-service-client": "^1.3.0",
|
|
"@solana/web3.js": "^1.91.1",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"autoprefixer": "^10.4.21",
|
|
"bn.js": "^5.2.2",
|
|
"bs58": "^5.0.0",
|
|
"next": "^15.0.0",
|
|
"postcss": "^8.5.6",
|
|
"prisma": "^6.18.0",
|
|
"react": "^18.3.0",
|
|
"react-dom": "^18.3.0",
|
|
"sqlite": "^5.1.1",
|
|
"sqlite3": "^5.1.7",
|
|
"tailwindcss": "^3.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bn.js": "^5.2.0",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^20.11.0",
|
|
"@types/react": "^18.2.0",
|
|
"@types/react-dom": "^18.2.0",
|
|
"eslint": "9.39.1",
|
|
"eslint-config-next": "16.0.7",
|
|
"jest": "^29.7.0",
|
|
"jest-junit": "^16.0.0",
|
|
"ts-jest": "^29.4.6",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.3.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
}
|