upstox-java

OrderApiV3

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  

cancelOrder

CancelOrderV3Response cancelOrder(orderId, origin)

Example

// 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();
}

Parameters

Name Type Description Notes
orderId String    
origin String   [optional]

Return type

CancelOrderV3Response

Authorization

No authorization required

HTTP request headers

modifyOrder

ModifyOrderV3Response modifyOrder(body, origin)

Example

// 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();
}

Parameters

Name Type Description Notes
body ModifyOrderRequest    
origin String   [optional]

Return type

ModifyOrderV3Response

Authorization

No authorization required

HTTP request headers

placeOrder

PlaceOrderV3Response placeOrder(body, origin)

Example

// 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();
}

Parameters

Name Type Description Notes
body PlaceOrderV3Request    
origin String   [optional]

Return type

PlaceOrderV3Response

Authorization

No authorization required

HTTP request headers