<?xml version="1.0" encoding="utf-8"?>
<s1 title="CancelTrade"><table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>canceltrade </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>canceltrade </p>
</td></tr></table><p>Cancels all pending trades in current city. </p>
<p>You can also cancel trades by their tradeId: </p>
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>canceltrade tradeId </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>execute &quot;canceltrade &quot; + city.tradesArray[0].id </p>
</td></tr></table><p>This example will cancel the 1st trade in the city&apos;s current tradesArray (the oldest trade in the array will be at position 0) </p>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> </p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptResource">ScriptResource</jump> </p>
</s1>