Hi @Zen8_ith,
Can you share some insights on how you have implemented trailing stop loss please? I'm trying to develop the same functionality and it would nice to have some guidance.
Thank you!
Thanks @rakeshr,
From the examples given there, I can infer that unsubscribe is called within on_ticks but won't that check happen every time a tick is received? I want to unsubscribe only after user input and don't need that check every time ticks…
Thanks @tonystark but the following code does not work either -
var unsubscribeTokens = [15020290];
ticker.unsubscribe(unsubscribeTokens);
Should the unsubscribe be called in the same function where subscribe was called? I have declared ticker…
Hi @sujith,
Yes I tried that and the typeOf shows up as object for both. But
ticker.subscribe(global.tokenSubscriptionList);
ticker.setMode(ticker.modeLTP, global.tokenSubscriptionList);
is not working i.e. the ticks are not being returned.
Got it! Thanks @sujith!
But then how can I read ticks specific to an instrument? Given that I have subscribed to 3 instruments, ticks[1] might not refer to the 2nd instrument I had subscribed to, right?
@rakeshr : could you please give me an example to use the function. I tried the following but getting undefined -
async function retrieveParticularExecutedOrder(order_id){
console.log(order_id); //checking to ensure correct order_id is passed
…
@rakeshr: Please see my code below and advice!
async function retrieveParticularExecutedOrder(order_id){
console.log(order_id); //checking to ensure correct order_id is passed
try {
const response = await axios.get('https://api.kite.trade…