'.. http:get:: /market/orders/(string:order_number)/cancel
A POST request to this endpoint will cancel a specific order.
**Example request**:
.. sourcecode:: none
curl -X GET http://localhost:8085/market/orders/3/cancel
**Example response**:
.. sourcecode:: javascript
"cancelled": True'

def render_POST(self, request):

    market_community = self.get_market_community()
    order_id = OrderId(TraderId(market_community.mid), OrderNumber(int(self.order_number)))
    order = market_community.order_manager.order_repository.find_by_id(order_id)
    if (not order):
        request.setResponseCode(http.NOT_FOUND)
        return json.dumps({'error': 'order    not    found'})
    if (order.status != 'open'):
        request.setResponseCode(http.BAD_REQUEST)
        return json.dumps({'error': 'only    open    orders    can    be    cancelled'})
    market_community.cancel_order(order_id)
    return json.dumps({'cancelled': True})
