5-3、交易主机
指令
showOrderDialog(order, focus): Promise
showCancelOrderDialog(orderId, handler): Promise
showCancelMultipleOrdersDialog(symbol, side, qty, handler): Promise
showClosePositionDialog(positionId, handler): Promise
showReversePositionDialog(position, handler): Promise
activateBottomWidget: Promise
showTradingProperties()
showNotification(title, text, type)
triggerShowActiveOrders()
numericFormatter(decimalPlaces)
defaultFormatter(symbol: string, alignToMinMove?: boolean = true)
factory
factory.createDelegate
factory.createWatchedValue
factory.createPriceFormatter(priceScale, minMove, fractional, minMove2)
symbolSnapshot(symbol): Promise
Getters and Setters
floatingTradingPanelVisibility: WatchedValue
domVisibility: WatchedValue
orderPanelVisibility: WatchedValue
showPricesWithZeroVolume: WatchedValue
silentOrdersPlacement: WatchedValue
suggestedQty(): Object
setButtonDropdownActions(actions)
defaultContextMenuActions()
defaultDropdownMenuActions(options)
数据更新
orderUpdate(order)
orderPartialUpdate(order)
positionUpdate (position)
positionPartialUpdate (position)
executionUpdate([execution)
fullUpdate()
plUpdate(positionId, pl)
equityUpdate(equity)
marginAvailableUpdate(marginAvailable)
tradeUpdate(trade)
tradePartialUpdate (trade)
tradePLUpdate(tradeId, pl)
pipValueUpdate(symbol, pipValues)
最后更新于