Hello team,
When I am going to place any order through API, it gave me status empty, and also most of the things getting empty. Please take a look on this issue. I am attaching some order book examples with URL that I am using. Please give a solution on this asap.
thanks.
orderbook = {
variety: ‘NORMAL’,
ordertype: ‘LIMIT’,
producttype: ‘INTRADAY’,
duration: ‘DAY’,
price: 0.1,
triggerprice: 0,
quantity: ‘75’,
disclosedquantity: ‘0’,
squareoff: 0,
stoploss: 0,
trailingstoploss: 0,
tradingsymbol: ‘MIDCPNIFTY24JUN2412750CE’,
transactiontype: ‘BUY’,
exchange: ‘NFO’,
symboltoken: ‘42272’,
ordertag: ‘copy’,
instrumenttype: ‘OPTIDX’,
strikeprice: 12750,
optiontype: ‘CE’,
expirydate: ‘24JUN2024’,
lotsize: ‘75’,
cancelsize: ‘0’,
averageprice: 0,
filledshares: ‘0’,
unfilledshares: ‘75’,
orderid: ‘’,
text: ‘’,
status: ‘’,
orderstatus: ‘’,
updatetime: ‘’,
exchtime: ‘’,
exchorderupdatetime: ‘’,
fillid: ‘’,
filltime: ‘’,
parentorderid: ‘’,
uniqueorderid: ‘f308d955-5f4c-41df-b359-2a9d5dc9e16b’,
exchangeorderid: ‘’
},
{
variety: ‘NORMAL’,
ordertype: ‘LIMIT’,
producttype: ‘INTRADAY’,
duration: ‘DAY’,
price: 0.1,
triggerprice: 0,
quantity: ‘75’,
disclosedquantity: ‘0’,
squareoff: 0,
stoploss: 0,
trailingstoploss: 0,
tradingsymbol: ‘MIDCPNIFTY24JUN2412750CE’,
transactiontype: ‘BUY’,
exchange: ‘NFO’,
symboltoken: ‘42272’,
ordertag: ‘copy’,
instrumenttype: ‘OPTIDX’,
strikeprice: 12750,
optiontype: ‘CE’,
expirydate: ‘24JUN2024’,
lotsize: ‘75’,
cancelsize: ‘0’,
averageprice: 0,
filledshares: ‘0’,
unfilledshares: ‘75’,
orderid: ‘’,
text: ‘’,
status: ‘’,
orderstatus: ‘’,
updatetime: ‘’,
exchtime: ‘’,
exchorderupdatetime: ‘’,
fillid: ‘’,
filltime: ‘’,
parentorderid: ‘’,
uniqueorderid: ‘809c14ce-3bfb-4725-9881-1345389645ad’,
exchangeorderid: ‘’
}
URL = “https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getOrderBook”