Why I'm receiving 2 similar response after successful order execution?

Sowmay
Sowmay edited April 2017 in API clients
Anytime if an order is executed, I receive 2 similar response from zerodha on my given app web hook. Even my Zerodha official kite platform is showing single order executed. Then where's the glitch?

Below is both the response with nothing change:

{
order_id: '170406000682658',
exchange_order_id: '',
order_timestamp: '2017-04-06 17:43:35',
exchange_timestamp: '',
status: 'REJECTED',
status_message: 'RMS: Auto Square Off Block',
placed_by: 'SS0491',
user_id: 'SS0491',
tradingsymbol: 'BHARATWIRE',
exchange: 'NSE',
transaction_type: 'BUY',
order_type: 'MARKET',
quantity: 96,
filled_quantity: 0,
unfilled_quantity: 0,
price: 0,
average_price: 0,
trigger_price: 0,
product: 'MIS',
validity: 'IOC',
tag: '',
checksum: '83dacc9200ff0bab2e4a13930f8e5f5ff0dd31b53f06148731f3dbf3fe234e20'
}

{
order_id: '170406000682658',
exchange_order_id: '',
order_timestamp: '2017-04-06 17:43:35',
exchange_timestamp: '',
status: 'REJECTED',
status_message: 'RMS: Auto Square Off Block',
placed_by: 'SS0491',
user_id: 'SS0491',
tradingsymbol: 'BHARATWIRE',
exchange: 'NSE',
transaction_type: 'BUY',
order_type: 'MARKET',
quantity: 96,
filled_quantity: 0,
unfilled_quantity: 0,
price: 0,
average_price: 0,
trigger_price: 0,
product: 'MIS',
validity: 'IOC',
tag: '',
checksum: '83dacc9200ff0bab2e4a13930f8e5f5ff0dd31b53f06148731f3dbf3fe234e20'
}

Question: Are they sent intentioncally?

On my NodeJS platform, I'm logging (console.log) all the execution response from zerodha on the webhook route URL.

When I remove the console.log, no logs and when I add it, 2 above logs object. Long story short, 2 similar response from single order execution.

Any solution?
Tagged:
This discussion has been closed.