Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

CancelTrade

Cancels the trade window with index TradeNum from the active trades list.

Returns True if the trade was successfully cancelled, False if the trade index is invalid or no such trade exists.

Отменяет окно обмена с индексом TradeNum из списка активных обменов.

Возвращает True, если обмен успешно отменён, False, если индекс обмена недействителен или такой обмен не существует.

Pascal

function CancelTrade(TradeNum: Byte): Boolean;

Parameters:

  • TradeNum — index of the trade in the active trades list.

Python

def CancelTrade(TradeNum: int) -> bool: ...

Pascal Example

begin
  if IsTrade then
    CancelTrade(0);
end.

Python Example

if IsTrade():
    CancelTrade(0)

See Also

ConfirmTrade, IsTrade