All URIs are relative to https://api.upstox.com
Method | HTTP request | Description |
---|---|---|
cancelOrder | DELETE /v3/order/cancel | |
modifyOrder | PUT /v3/order/modify | |
placeOrder | POST /v3/order/place |
CancelOrderV3Response cancelOrder(orderId, origin)
// Import classes:
//import com.upstox.ApiException;
//import io.swagger.client.api.OrderApiV3ontrollerV3Api apiInstance = new OrderApiV3();
String orderId = "orderId_example"; // String |
String origin = "origin_example"; // String |
try {
CancelOrderV3Response result = apiInstance.cancelOrder(orderId, origin);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApiV3#cancelOrder");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
orderId | String | ||
origin | String | [optional] |
No authorization required
ModifyOrderV3Response modifyOrder(body, origin)
// Import classes:
//import com.upstox.ApiException;
//import io.swagger.client.api.OrderApiV3ontrollerV3Api apiInstance = new OrderApiV3();
ModifyOrderRequest body = new ModifyOrderRequest(); // ModifyOrderRequest |
String origin = "origin_example"; // String |
try {
ModifyOrderV3Response result = apiInstance.modifyOrder(body, origin);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApiV3#modifyOrder");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ModifyOrderRequest | ||
origin | String | [optional] |
No authorization required
PlaceOrderV3Response placeOrder(body, origin)
// Import classes:
//import com.upstox.ApiException;
//import io.swagger.client.api.OrderApiV3ontrollerV3Api apiInstance = new OrderApiV3();
PlaceOrderV3Request body = new PlaceOrderV3Request(); // PlaceOrderV3Request |
String origin = "origin_example"; // String |
try {
PlaceOrderV3Response result = apiInstance.placeOrder(body, origin);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApiV3#placeOrder");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | PlaceOrderV3Request | ||
origin | String | [optional] |
No authorization required