{"tradingsymbol":"AARTIIND","exchange":"NSE","trigger_values":[482.4],"last_price":511.75} AND params.trigger_type=kc.GTT_TYPE_SINGLE; where kc is the object
hi. bro this is the param i pass from front end
{"tradingsymbol":"AARTIIND","exchange":"NSE","trigger_values":[482.4],"last_price":511.75}
then from back end i
set
params.trigger_type=kc.GTT_TYPE_SINGLE;
Kindly help in solving this
Dear @tonystark
This is the node js code of the api you are referring to . Kindly help
app.post('/api/PlaceGTT', async (req,res) => {
let params=req.body.params;
let accessToken=req.body.accessToken;
try {
var kc = new KiteConnect({…
i agreed that sorry for the mistake . however i am geeting this error
Error: Invalid `params.trigger_type`
at KiteConnect.self._getGTTPayload (/home/vivek/findependence/findiserver/node_modules/kiteconnect/lib/connect.js:1027:19)
at KiteC…
{ status: 'error',
message: 'request 3DH3ZBlCoFysoL51e8FhkMQGjSXy1S7x timed out',
data: null,
error_type: 'NetworkException' }
when i tried variety as regular instead of amo , in updating a amo order during market hours
cancel order error { status: 'error',
message: 'request ccL767Acs9bU1n9uD4FwbLsp2g2A2Ijq timed out',
data: null,
error_type: 'NetworkException' }
when i am trying to cancel an amo during market hours
order string object
order string amo 210803200015546 { price: 63.25 }
SOME ERROR { message: 'No response from server with error code: ECONNABORTED',
error_type: 'NetworkException',
data: null }
order string amo 210803200015546 { price: 63.25 }SOME ERROR message: 'No response from server with error code: ECONNABORTED', error_type: 'NetworkException',
data: null } sorry this is the error i am a getting . kindly attend