feat: upgrade Binance to Algo Order API and improve trading flow

- Upgrade go-binance to v2.8.9 with new Algo Order API
- Migrate SetStopLoss/SetTakeProfit to use AlgoOrderTypeStopMarket/TakeProfitMarket
- Update cancel functions to handle both legacy and Algo orders
- Fix Lighter stop orders using correct order types (type=2/4) with TriggerPrice
- Add CancelAllOrders before opening positions for Bybit and Lighter
- Fix decision limit selector in API handler
- Add stop_loss/take_profit/confidence fields to DecisionAction
- Store decisions array in database with proper serialization
- Redesign DecisionCard with beautiful entry/SL/TP display
This commit is contained in:
tinkle-community
2025-12-15 21:22:22 +08:00
parent aeede956e6
commit 3f084005e4
12 changed files with 699 additions and 270 deletions

View File

@@ -43,6 +43,9 @@ export const translations = {
symbol: 'Symbol',
side: 'Side',
entryPrice: 'Entry Price',
stopLoss: 'Stop Loss',
takeProfit: 'Take Profit',
riskReward: 'Risk/Reward',
markPrice: 'Mark Price',
quantity: 'Quantity',
positionValue: 'Position Value',
@@ -1200,6 +1203,9 @@ export const translations = {
symbol: '币种',
side: '方向',
entryPrice: '入场价',
stopLoss: '止损',
takeProfit: '止盈',
riskReward: '风险回报比',
markPrice: '标记价',
quantity: '数量',
positionValue: '仓位价值',