ModifyOrder

Header Body:

Name Description
Authorization Access token obtained in after successful login
user-Id Client id of the user

Request Body:

This API enables users to place an order for products . It typically requires details such as the items to order, quantity, and supporting information

Json Fields Possible Values Description Mandatory(M) / Optional(O) /
Condition Based (C)
Data Type
user_id User ID M str
trading_symbol Trading Symbol Name (use url encoding to avoid special char error for symbols like M&M) M str
exchange NSE / NFO / BSE/ MCX, BFO, BCD Exchange Details M str
quantity Order Quantity M int
price Order Price M float
product_type C / M / H / I / B C = CNC
M = Normal / Carry Forward
H = Cover Order
B = Bracket Order
I = Intraday
M str
price_type LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L LMT = Limit
MKT = Market
SL-LMT = Stoploss Limit
SL-MKT = Stoploss Market
M str
trigger_price Only to be sent in case of SL-LMT / SL-MKT order. C float
trailing_stop_loss trailing stop loss price need to pass only if product_type = B and it's not mandatory to send unless user needs C float
book_profit_price Book Profit Price applicable only if product is selected as B (Bracket order ) C float
book_loss_price Book loss Price applicable only if product is selected as H and B (High Leverage and Bracket order ) C float
retention_type DAY / EOS / IOC Retention type (Show options as per allowed exchanges) M str
disclosed_quantity Disclosed quantity (Max 10% for NSE, and 50% for MCX) O int
oms_partner_or der_no oms_partner_order_no which is received in other API response (place order, orderbook, tradebook etc) M int
lot_size Mandatory for MCX exchange only O int

Sample Response 1


									

Sample Response 2


									

Sample Response 3


									

Sample Response 4


									

POST/order-api/v1/order/modify

										
cURL

Copied!

curl --location 'https://orca-uatapi.enrichmoney.in/order-api/v1/order/modify' \ --header 'Authorization: {{jwt_token}}' \ --header 'Content-Type: application/json' \ --header 'user-id: {{userid}}' \ --data '{ "user_id": "{{userid}}", "exchange": "MCX", "trading_symbol": "ALUMINIUM31JAN24", "oms_partner_order_no": "24010400000055", "enrich_order_no": "", "quantity": "3", "disclosed_quantity": "", "product_type": "I", "price": "3400", "price_type": "LMT", "trigger_price": "", "stop_loss": "", "square_off": "", "trailing_stop_loss": "", "after_market_order": "NO", "retention_type": "DAY", "order_source": "WEB", "partner_source": "KAMBALA", "lot_size":5000 }'
										
python / requests

Copied!

import requests url = "https://orca-uatapi.enrichmoney.in/order-api/v1/order/modify" payload = "{\r\n \"user_id\": \"{{userid}}\",\r\n \"exchange\": \"MCX\",\r\n \"trading_symbol\": \"ALUMINIUM31JAN24\",\r\n \"oms_partner_order_no\": \"24010400000055\",\r\n \"enrich_order_no\": \"\",\r\n \"quantity\": \"3\",\r\n \"disclosed_quantity\": \"\",\r\n \"product_type\": \"I\",\r\n \"price\": \"3400\",\r\n \"price_type\": \"LMT\",\r\n \"trigger_price\": \"\",\r\n \"stop_loss\": \"\",\r\n \"square_off\": \"\",\r\n \"trailing_stop_loss\": \"\",\r\n \"after_market_order\": \"NO\",\r\n \"retention_type\": \"DAY\",\r\n \"order_source\": \"WEB\",\r\n \"partner_source\": \"KAMBALA\",\r\n \"lot_size\":5000\r\n}" headers = { 'Authorization': '{{jwt_token}}', 'Content-Type': 'application/json', 'user-id': '{{userid}}' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
										
java / unirest

Copied!

Unirest.setTimeouts(0, 0); HttpResponse response = Unirest.post("https://orca-uatapi.enrichmoney.in/order-api/v1/order/modify") .header("Authorization", "{{jwt_token}}") .header("Content-Type": "application/json") .header("user-id", "{{userid}}") .body("{\r\n \"user_id\": \"{{userid}}\",\r\n \"exchange\": \"MCX\",\r\n \"trading_symbol\": \"ALUMINIUM31JAN24\",\r\n \"oms_partner_order_no\": \"24010400000055\",\r\n \"enrich_order_no\": \"\",\r\n \"quantity\": \"3\",\r\n \"disclosed_quantity\": \"\",\r\n \"product_type\": \"I\",\r\n \"price\": \"3400\",\r\n \"price_type\": \"LMT\",\r\n \"trigger_price\": \"\",\r\n \"stop_loss\": \"\",\r\n \"square_off\": \"\",\r\n \"trailing_stop_loss\": \"\",\r\n \"after_market_order\": \"NO\",\r\n \"retention_type\": \"DAY\",\r\n \"order_source\": \"WEB\",\r\n \"partner_source\": \"KAMBALA\",\r\n \"lot_size\":5000\r\n}") .asString();
										
nodejs / axios

Copied!

var axios = require('axios'); var data = '{\r\n "user_id": "{{userid}}",\r\n "exchange": "MCX",\r\n "trading_symbol": "ALUMINIUM31JAN24",\r\n "oms_partner_order_no": "24010400000055",\r\n "enrich_order_no": "",\r\n "quantity": "3",\r\n "disclosed_quantity": "",\r\n "product_type": "I",\r\n "price": "3400",\r\n "price_type": "LMT",\r\n "trigger_price": "",\r\n "stop_loss": "",\r\n "square_off": "",\r\n "trailing_stop_loss": "",\r\n "after_market_order": "NO",\r\n "retention_type": "DAY",\r\n "order_source": "WEB",\r\n "partner_source": "KAMBALA",\r\n "lot_size":5000\r\n}'; var config = { method: 'post', maxBodyLength: Infinity, url: 'https://orca-uatapi.enrichmoney.in/order-api/v1/order/modify', headers: { 'Authorization': '{{jwt_token}}', 'Content-Type': 'application/json', 'user-id': '{{userid}}' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });

Mail Us

api-support@enrichmoney.in

Call Us

044 40063663/044 35000470

Powered by Enrich Money