I have a challenging and intricate issue as follows:
I have developed a Visual Basic application in Visual Studio 2019. This Visual Basic application receives and processes online stock market information from a market brokers application using API.
For quite sometimes I have noticed a delay of around 8 minutes between the time the information is sent from the brokers account until the time that the information is received and processed in my VB application. The VB application is not complex at all. It contains a couple of nested IF statements and a couple of events which are triggered when the online stock market information arrives from the brokers account.
I have a quite a powerful (Game) PC equipped with Intel Core I7 Processor and 16 GB of memory. I have specially selected a Game computer to ensure that I have enough processing power at my disposal.
The computer is connected to the internet via an ethernet cable. The internet speed is measured at 600 Mbps (The fastest internet connection offered by the local Network provider).
I am at a loss to find out what the reason for the delay of approximately 8 minutes is. The strange and baffling thing is that the receipt of information stabilizes after approximately "one" hour meaning that the VB application, somehow catches up and acknowledges the simultaneous receipt of the information as when it was sent by the brokers application.
Is there any solution to this? The CPU power, the available memory and the internet speed should be more than enough to accommodate the online data processing and yet this is not the case.
In spite of continuous attempts, I cannot figure out what the reason for the initial 8 minutes delay in the receipt of the data is.
It seems that by the opening of the markets trading session (that is the time that the VB application becomes active and starts receiving market data from the brokers account via API), due to the large volume of data sent, the VB application buffers the information received leading up to the delay.
However, if I measure the CPU and memory usage and also internet workload during the initial period using windows task manager, I do not see anything unusual (i.e. CPU processing power is around 10%, Memory usage at around 50% and internet workload pretty stable).
Is there anyway that I can clear the buffer in the VB application every few seconds? Would that be helpful? Any other programming statement that I can add to my VB application to circumvent the issue?
The broker is located in US and I reside in The Netherlands. Could the distance play a factor here? I hardly think so but thought to pose the question nevertheless.
Your help is greatly appreciated!!
I have developed a Visual Basic application in Visual Studio 2019. This Visual Basic application receives and processes online stock market information from a market brokers application using API.
For quite sometimes I have noticed a delay of around 8 minutes between the time the information is sent from the brokers account until the time that the information is received and processed in my VB application. The VB application is not complex at all. It contains a couple of nested IF statements and a couple of events which are triggered when the online stock market information arrives from the brokers account.
I have a quite a powerful (Game) PC equipped with Intel Core I7 Processor and 16 GB of memory. I have specially selected a Game computer to ensure that I have enough processing power at my disposal.
The computer is connected to the internet via an ethernet cable. The internet speed is measured at 600 Mbps (The fastest internet connection offered by the local Network provider).
I am at a loss to find out what the reason for the delay of approximately 8 minutes is. The strange and baffling thing is that the receipt of information stabilizes after approximately "one" hour meaning that the VB application, somehow catches up and acknowledges the simultaneous receipt of the information as when it was sent by the brokers application.
Is there any solution to this? The CPU power, the available memory and the internet speed should be more than enough to accommodate the online data processing and yet this is not the case.
In spite of continuous attempts, I cannot figure out what the reason for the initial 8 minutes delay in the receipt of the data is.
It seems that by the opening of the markets trading session (that is the time that the VB application becomes active and starts receiving market data from the brokers account via API), due to the large volume of data sent, the VB application buffers the information received leading up to the delay.
However, if I measure the CPU and memory usage and also internet workload during the initial period using windows task manager, I do not see anything unusual (i.e. CPU processing power is around 10%, Memory usage at around 50% and internet workload pretty stable).
Is there anyway that I can clear the buffer in the VB application every few seconds? Would that be helpful? Any other programming statement that I can add to my VB application to circumvent the issue?
The broker is located in US and I reside in The Netherlands. Could the distance play a factor here? I hardly think so but thought to pose the question nevertheless.
Your help is greatly appreciated!!








