GetCurrentProfit
Description
Syntax
public GetCurrentProfit(): numberReturn Value
Example
const profit = this.api.GetCurrentProfit()
if (profit > 0) {
console.log(`Current profit: ${profit}`)
} else {
console.log(`Current loss: ${Math.abs(profit)}`)
}Last updated