PUT /exchange/orders/{id}/cancel

Parameters:

  • id (string, required): The unique ID of the order to cancel.

Sample Request

curl -X PUT "https://exchange.spendjuice.com/v1/exchange/orders/7da75a46-a1bc-11ee-9a32-560f156a658b/cancel" \
-H "Authorization: Bearer <your_token>"

Sample Response

{
  "data": {
    "accepted_at": "2023-12-23T17:55:42.919523",
    "average_fill_price": 80000,
    "business_id": "dd625bec-b1a3-466e-867e-c91ae0b6e71e",
    "correlation_id": "7da742ea-a1bc-11ee-b907-560f156a658b",
    "created_at": "2023-12-23T17:55:42.911",
    "expires_at": null,
    "id": "7da75a46-a1bc-11ee-9a32-560f156a658b",
    "min_qty": null,
    "min_quote_qty": null,
    "percent_filled": 10000,
    "price": 80000,
    "price_type": "market",
    "qty": 1.0,
    "quote_qty": null,
    "status": "cancelled",
    "symbol": "USD-NGN",
    "time_in_force": "gtc",
    "trades": [],
    "type": "buy",
    "updated_at": "2023-12-23T17:55:42.911",
    "user_id": "b101f718-d133-450c-a572-c281c7341803"
  }
}