Commit Graph

8 Commits

Author SHA1 Message Date
dekun 9effca9f05 Add sim option expiry settlement so expired positions clear from current holdings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 15:39:39 +08:00
dekun b9544e53ee Enrich sim option positions with public index and mark prices.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:04:00 +08:00
dekun fed51035de Fix sim pending-orders wrapper to accept positional inst_id.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 19:23:33 +08:00
dekun ad992ee262 Use trading account and USDC/USDT market price for sim convert.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:52:38 +08:00
dekun 9d1495658c Route sim transfer and convert through local wallets instead of OKX private API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:47:41 +08:00
dekun e7aa724a3b Show okx_sim/okx_live and gate live API fields by matching mode.
In sim, hide LIVE/API keys and expose simulated fund settings in env UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:35:08 +08:00
dekun 919ac70bc2 Expose sim/live matching mode in env config UI.
Saving SIM_DEFAULT_MODE also switches runtime trading.mode immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:14:17 +08:00
dekun a1abe159fa Initial standalone crypto_okx with one-click deploy.
Add deploy/manage.sh bootstrap for git.bz121.com/dekun/crypto_okx and point docs at this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 20:00:59 +08:00