feat: 币种输入旁实时显示交易所现价
Shared SymbolLivePrice polls /api/order_defaults on input with debounce; wired to trade, key monitor, trend, and key focus forms. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1155,7 +1155,10 @@ function refreshAccountSnapshot(){
|
||||
const orderSymbolEl = document.getElementById("order-symbol");
|
||||
const orderDirectionEl = document.getElementById("order-direction");
|
||||
const fullMarginEl = document.getElementById("use-full-margin");
|
||||
if(orderSymbolEl) orderSymbolEl.addEventListener("change", refreshOrderDefaults);
|
||||
if(orderSymbolEl) {
|
||||
orderSymbolEl.addEventListener("change", refreshOrderDefaults);
|
||||
orderSymbolEl.addEventListener("input", refreshOrderDefaults);
|
||||
}
|
||||
if(orderDirectionEl) orderDirectionEl.addEventListener("change", refreshOrderDefaults);
|
||||
if(fullMarginEl){
|
||||
fullMarginEl.addEventListener("change", function(){
|
||||
|
||||
Reference in New Issue
Block a user