fix: full arb table + net profit columns in price view

- ArbTable: removed slice(0,10) cap, shows all 42 opps (21x2)
- PriceTable: added net_bg_to_hl and net_hl_to_bg columns
- Backend SSE: sends net profit for both directions per coin
This commit is contained in:
jackyu66git
2026-05-04 18:26:49 +08:00
parent 9628100681
commit 0aa9923067
14 changed files with 45090 additions and 15 deletions
+1
View File
@@ -42,6 +42,7 @@ func (b *BitgetTrade) PlaceMarketOrder(side, symbol, size, tradeSide string) (st
body := map[string]interface{}{
"marginCoin": "USDT",
"symbol": symbol,
"productType": "USDT-FUTURES",
"side": side,
"orderType": "market",
"timeInForce": "IOC",
+1 -1
View File
@@ -149,7 +149,7 @@ func GetHLSize(coin string, amountUSD, price float64) string {
switch coin {
// integer sizes (szDecimals=0)
case "DOGE", "ONDO", "WIF", "ALGO", "PYTH", "SAND", "ADA", "HBAR",
"IOTA", "MINA", "FET", "JUP", "MOVE":
"IOTA", "FET", "JUP", "MOVE":
sz = math.Floor(sz)
if sz < 1 {
sz = 1