sai11

About

Username
sai11
Joined
Visits
22
Last Active
Roles
Member

Activity

  • gautamsatpathy
    Secondly, will each WebSocket feed the same application code? How are you handling the incoming data? With 3000 Instruments for each WebSocket, we are already looking at a huge data load on a sub second time frame. How are you planning to handle this real-time data load?

    My application is designed to connect to multiple Brokers - Zerodha, Fyers & Espresso at this time. I use Historical data from Zerodha or Fyers, WebSocket connection from either Zerodha or Espresso and fire Orders to different Brokers at run time. Are you looking at something similar?

    And I am assuming you are using Java? Would love to collaborate with you. If you wish we can discuss the details of our individual designs.
    November 2023
  • gautamsatpathy
    Hello Sai,

    "i am planning to stream the data using mutliple api and 3 websockets for each api as per kite.is it possible??"

    I am afraid I am not clear. As per the Kite API documentation, we can have 3 WebSockets open at the same time for the same API Key (1 user application). Each WebSocket can handle up to 3000 Instruments.

    You can subscribe for up to 3000 instruments on a single WebSocket connection and receive live quotes for them. Single API key can have upto 3 websocket connections.

    Do you mean multiple "API Keys"? That is, multiple Applications in the same account? Or single applications in multiple Zerodha Accounts?

    In either case, there are complications - You will need a KiteConnect instance for each API Key. They KiteConnect object uses OkHTTP3 internally and will need to maintain state for it's connection. Having multiple instances of KiteConnect is definitely feasible, but you will have to keep them strictly separate.
    November 2023