diff --git a/src/clob/client.rs b/src/clob/client.rs index 2697bf02..21eb4ece 100644 --- a/src/clob/client.rs +++ b/src/clob/client.rs @@ -1563,7 +1563,7 @@ impl Client> { let request = self .client() .request(Method::DELETE, format!("{}order", self.host())) - .json(&json!({ "orderId": order_id })) + .json(&json!({ "orderID": order_id })) .build()?; let headers = self.create_headers(&request).await?; diff --git a/tests/clob.rs b/tests/clob.rs index f4bacadb..c6f3f66e 100644 --- a/tests/clob.rs +++ b/tests/clob.rs @@ -1826,7 +1826,7 @@ mod authenticated { .header(POLY_ADDRESS, client.address().to_string().to_lowercase()) .header(POLY_API_KEY, API_KEY) .header(POLY_PASSPHRASE, PASSPHRASE) - .json_body(json!({ "orderId": "1" })); + .json_body(json!({ "orderID": "1" })); then.status(StatusCode::OK).json_body(json!({ "canceled": [], "notCanceled": { @@ -1862,7 +1862,7 @@ mod authenticated { .header(POLY_ADDRESS, client.address().to_string().to_lowercase()) .header(POLY_API_KEY, API_KEY) .header(POLY_PASSPHRASE, PASSPHRASE) - .json_body(json!({ "orderId": "1" })); + .json_body(json!({ "orderID": "1" })); then.status(StatusCode::OK).json_body(json!({ "canceled": [], "not_canceled": {