{status: ‘error’, message: ‘Order Not Found’, data: Array(1), error_code: ‘RS-0022’}
const url = ‘https://developer.paytmmoney.com/orders/v1/modify/regular’;
- exchange: “NSE”
- group_id: 1
- mkt_type: “NL”
- off_mkt_flag: “false”
- order_no: “XXXXXXXXXXXXXX”
- order_type: “MKT”
- price: 0
- product: “I”
- quantity: 1000
- security_id: “2029”
- segment: “E”
- serial_no: 2
- source: “N”
- txn_type: “S”
- validity: “DAY”
var bbuy=await fetch(url, {method: ‘POST’,headers: {‘x-jwt-token’: jwtToken,‘Content-Type’: ‘application/json’},body: JSON.stringify(data)}).then(response => {return response.json();});