dekun
a841c8f31b
Fix btc_eth watching entry, preview sizing, and coin-to-U settlement.
...
Use dual indices for watch/preview; perp entry uses ETH mark; expiry/close convert coin PnL via option index; align legacy long→Call; omit combo U when index missing.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 21:52:20 +08:00
dekun
5d161b4220
Add HEDGE_PO_MODE instance modes with shared sim/live path.
...
Lock one mode per instance/subaccount, cross-asset BTC option/ETH perp sizing, combo-U exit, and ship docs/tests/audit.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 20:05:25 +08:00
dekun
ab7a2309ad
Fold chain/account/PnL hints into rules; hide dust sell-coin.
...
Move the three noisy help lines into 规则说明, and show 手动卖回币 only when trading-coin balance meets the exchange min size.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 19:31:14 +08:00
dekun
fc83905cf6
Expand default strike rows and add hedge fund transfer / sell-coin.
...
Show the default five chain rows without a scroll box, add funding transfer under manual pick, and wire sell-back-coin above positions via hedge APIs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 19:11:44 +08:00
dekun
9295dcffe3
Show editable exit on live cards; price perp PnL via close-side book VWAP.
...
Align monitor profit-exit with the same book VWAP so card and auto-exit stay consistent.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 17:29:58 +08:00
dekun
746655acba
Align hedge UI/fees: drop 未启动, premium coin/U, equity incl perp margin, OKX option fees.
...
Option net uses Min(0.03%×coin, 7%×premium) with bid/ask fills (no slip); live PnL colors fixed.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 17:12:10 +08:00
dekun
989accdc50
Wire manual close to actually flatten option then perp then sell coin.
...
UI 平仓 now calls /api/hedge-plan/<id>/close instead of end-only (不平仓).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 16:49:24 +08:00
dekun
0b3dabbbd9
Split live positions from hedge plans; show option+perp net PnL after fees.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 16:32:13 +08:00
dekun
7d29181a04
Fix perp manual order watch_entry bug; slim dialog UI; nav shows 永期/期期.
...
Manual market_order was validated as watch (missing watch_entry=0). Collapse order calc into details, remove page head card, show mode name in nav.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 16:19:15 +08:00
dekun
d68e9c3946
永期手动下单:修币本位杠杆显示,张数定仓与双出场模式.
...
右侧以张数+比例算永续,杠杆取 env(BTC10/ETH5);开仓买币+5%滑点;出场可选盈利金额(扣双边费)或目标位;平仓后卖光币回 U.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 15:43:44 +08:00
dekun
4c48c95562
Tune CoinOX env: drop auto-transfer; map leverage to hedge perp opens.
...
BTC_LEVERAGE/ALT_LEVERAGE now drive永期永续 default leverage in UI and start fallback.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 12:46:14 +08:00
dekun
2854d94e6b
Remove USDC product path; CoinOX is coin-margined only.
...
Drop USDC open/quote/swap APIs and env knobs; retarget hedge/settings copy to USDT/coin.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 12:33:59 +08:00
dekun
135cdc13ba
Fix hedge market quotes via public HTTP and default cloud-server deploy settings.
...
Avoid load_markets hangs on weak networks; enable login-required sim defaults and document Baota Nginx reverse proxy.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 10:13:39 +08:00
dekun
b4d62ea0a6
Enable options by default and allow full sim trading without OKX API keys.
...
Relax hedge start gates in sim, route perp open/close through sim broker, and mount strategy templates for records pages.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 09:26:38 +08:00
dekun
88b7fb7a0a
Initial CoinOX instance: coin-margined options + USDT hedge.
...
Forked from crypto_monitor OKX instance (copy-only). Keeps standalone options, perp-options and options-options hedge; drops standalone perp entrypoints; forces coin margin; adds sim wallets; default port 5010.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 00:18:40 +08:00