GetDroppedElementPrice

Description

The GetDroppedElementPrice method retrieves the price level at the point where an object was dropped on the chart.

Syntax

public GetDroppedElementPrice(): number

Return Value

Returns a number representing the price at the dropped point.

Example

try {
    const dropPrice = this.api.GetDroppedElementPrice()
    console.log(`Object dropped at price level: ${dropPrice}`)
} catch (error) {
    console.error('Failed to get dropped element price:', error.message)
}

Last updated