Receiving tick data for all the instrument even though i am not subscribe for .

ZZ4687
Hi Team,
I am only subscribing for 168 stock but i am getting data for other stock too which i have not subscribed for .Pasting the code i am using to subscribe

ticker.Subscribe(Tokens: subscribelist);
ticker.SetMode(Tokens: subscribelist, Mode: Constants.MODE_FULL);

here subscribelist collection simple contain the instrument token of 168 stock for which i want data.

But i am getting data for instrument which is not there in list to.
  • sujith
    Can you paste your complete code here?
  • ZZ4687
    Hi Sujith please find the code pasted below.

    ticker = new Ticker(MyAPIKey, MyAccessToken);
    Console.WriteLine("In Init Ticker");
    ticker.OnTick += OnTick;
    ticker.OnReconnect += OnReconnect;
    ticker.OnNoReconnect += OnNoReconnect;
    ticker.OnError += OnError;
    ticker.OnClose += OnClose;
    ticker.OnConnect += OnConnect;
    ticker.OnOrderUpdate += OnOrderUpdate;

    ticker.EnableReconnect(Interval: 5, Retries: 50);
    ticker.Connect();


    GetStockList();

    ticker.Subscribe(Tokens: subscribelist);

    ticker.SetMode(Tokens: subscribelist, Mode: Constants.MODE_FULL);
  • ZZ4687
    GetStockList() reads the instrument token of 168 stocks from CSV file
  • sujith
    Can you attach the source csv here?
  • ZZ4687
    Hi Sujith Please find the source CSV file from the below path

    http://technotriangle.co.in/images/instrument.csv
  • ZZ4687


    Also adding the generated folder structure -More than 7000 folder are created
  • ZZ4687
    and here is the response i received for instrumentToken(29) even though i have not subscribe for this tokan.


    "{\"Mode\":\"full\",\"InstrumentToken\":29,\"Tradable\":true,\"LastPrice\":29527925.76,\"LastQuantity\":0,\"AveragePrice\":0,\"Volume\":0,\"BuyQuantity\":0,\"SellQuantity\":0,\"Open\":28689072.64,\"High\":0.05,\"Low\":36406559.01,\"Close\":0,\"Change\":16777216.29,\"Bids\":null,\"Offers\":null,\"LastTradeTime\":null,\"OI\":0,\"OIDayHigh\":0,\"OIDayLow\":0,\"Timestamp\":\"03-04-2058 05:38:32\"}"
  • tonystark
    We tried this at our end for 4-5 hours and we couldn't reproduce it. Can you give us more details on how to reproduce this issue?
Sign In or Register to comment.