chaudhariapurva

About

Username
chaudhariapurva
Joined
Visits
19
Last Active
Roles
Member

Activity

  • desiredoom
    hi, i am trying to get historic data via vba or KiteXL , please let me know if its possible
    January 2017
  • Shabeershah2002
    Hi chaudhariapurva

    would you mind to share the piece of code to change the mode of stream ?

    i am using the below but not able to get "full" mode but able to get "quote" which is 44 bytes.

    this block is for subscription
    {

    TextBox1.text = "{"a": "subscribe", "v": [408065, 884737]}" -- this string is manually entered to textbox

    dynamic encoded = Encoding.UTF8.GetBytes(TextBox1.text);
    dynamic buffer = new ArraySegment(encoded);
    webSocket.SendAsync(buffer, WebSocketMessageType.Text, true, cancellation);
    }

    This block is for mode change
    {

    TextBox1.text = "{"a": "mode", "v": ["full", [408065]}" -- this string is manually entered to textbox

    dynamic encoded = Encoding.UTF8.GetBytes(TextBox1.text);
    dynamic buffer = new ArraySegment(encoded);
    webSocket.SendAsync(buffer, WebSocketMessageType.Text, true, cancellation);
    }
    June 2016
    • chaudhariapurva
      chaudhariapurva
      this is a func that i use
      public void SubcribeTo(string ticker, string mode)
      {
      string tickerstr = "{\"a\":\"subscribe\",\"v\":[" + ticker + "]}";
      string modestr = "{\"a\":\"mode\",\"v\":[\"" + mode + "\",[" + ticker + "]]}"; ////check this
      this._subscription.Add(tickerstr);
      this._subscription.Add(modestr);
      this._ws.Send(tickerstr);
      this._ws.Send(modestr);
      }

      the strings are stored in subscription list,and used to resubcribe if the websocket disconnects.(the disconnection happens rarely but it ensures that the program does not stop).
    • chaudhariapurva
      chaudhariapurva
      "{\"a\":\"mode\",\"v\":[\"" + mode + "\",[" + ticker + "]]}";
      U jst need one more square braket at end .this was error in the kite connect docks .But it is corrected now.
    • Shabeershah2002
      Shabeershah2002
      Thanks dear, i have found an application online which is free and that stopped my development http://laibtech.com/AlgOto.aspx
      this gives me to use NinjaTrader as well
  • stg
    Hello, I am a accomplished C# coder who has connected to many API's and have made full life cycle autotrading apps. I can help you look through the C# code and give my advice.
    Let me know, thanks
    September 2016