feat(trading-assistant): refactor strategy creation and enhance script mode functionality
- Removed conditional rendering for the assistant guide bar. - Simplified strategy overview and strategy list item components. - Introduced a new modal for selecting strategy mode. - Enhanced strategy creation modal to support script strategies with a dedicated editor. - Updated form handling for script strategies, including validation and submission logic. - Improved user experience with better messaging and streamlined UI components. - Updated translations for better clarity in Chinese.
This commit is contained in:
@@ -722,8 +722,8 @@ class OkxClient(BaseRestClient):
|
||||
"""
|
||||
mt = (market_type or "swap").strip().lower()
|
||||
inst_id = to_okx_spot_inst_id(symbol) if mt == "spot" else to_okx_swap_inst_id(symbol)
|
||||
# IMPORTANT: For OKX SWAP, fillSz/accFillSz are in "contracts" (张数), not base-asset quantity.
|
||||
# Our system standardizes on base-asset quantity everywhere ("币数"), so we convert using ctVal.
|
||||
# IMPORTANT: For OKX SWAP, fillSz/accFillSz are in contract counts, not base-asset quantity.
|
||||
# Our system standardizes on base-asset quantity everywhere, so we convert using ctVal.
|
||||
ct_val = Decimal("0")
|
||||
if mt != "spot":
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user