Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 04:51:50 +0000



Post From: ping futurestrading14.sierracharts.com

[2024-04-03 09:23:20]
User676363 - Posts: 72
Hello,

Can somebody please help me to check the services for real time data?
Below I have my tests, logs, etc. Basically getting a lot of timeout errors and finding some possible areas of the docs that we need to update.
Maybe, instead of this script, there is a page showing the live status of the servers that also reports downtime and resolution issues if they occur?
Would be helpful so that I do not post needlessly something that I should be able to solve alone.
In this case, I get failures both from google's hosting and from my own hosting, so I am hoping that is a thorough check.

Docs:
Data/Trading Service Connection and Symbol Issues
The article on ping at the bottom is no longer available.
Also I can't find the settings mentioned in the text here:
There is also the Global Settings >> Data/Trade Service Settings >> SC Server Settings >> Always use Port 443 for Real-Time Data setting. However, when using data compression, this port will not be used.

Test that is failing:
ping futurestrading14.sierracharts.com
--- ds22.sierracharts.com ping statistics ---
398 packets transmitted, 0 received, 100% packet loss, time 406508ms


Python code (can be run using https://colab.new)

import socket
import time

# Define the list of sites to test
sites = [
"ds3.sierracharts.com",
"ds4.sierracharts.com",
"ds4-2.sierracharts.com",
"ds12.sierracharts.com",
"ds12-2.sierracharts.com",
"ds13-2.sierracharts.com",
"ds13-3.sierracharts.com",
"ds13.sierracharts.com",
"ds14.sierracharts.com",
"ds21.sierracharts.com",
"ds22.sierracharts.com",
"ds23.sierracharts.com",
"ds23-2.sierracharts.com",
"ds24.sierracharts.com",
"ds25.sierracharts.com",
"ds26.sierracharts.com",
"ds26-2.sierracharts.com",
"ds27.sierracharts.com",
"ds28.sierracharts.com",
"ds28-2.sierracharts.com",
"ds30.sierracharts.com",
"ds30-2.sierracharts.com",
"ds31.sierracharts.com",
"ds31-2.sierracharts.com",
"futurestrading1.sierracharts.com",
"futurestrading2.sierracharts.com",
"futurestrading3.sierracharts.com",
"futurestrading4.sierracharts.com",
"futurestrading10.sierracharts.com",
"futurestrading11.sierracharts.com",
"futurestrading12.sierracharts.com",
"futurestrading13.sierracharts.com",
"futurestrading14.sierracharts.com",
"futurestrading15.sierracharts.com",
"futurestrading16.sierracharts.com",
"futurestrading17.sierracharts.com",
"futurestrading18.sierracharts.com",
"futurestrading19.sierracharts.com",
"tradesimulation1.sierracharts.com",
"tradesimulation2.sierracharts.com",
"tradesimulation3.sierracharts.com",
"tradesimulation4.sierracharts.com",
"tradesimulation5.sierracharts.com",
"lmaxtrade2.sierracharts.com",
"lmaxtrade3.sierracharts.com",
"lmaxhd.sierracharts.com",
"lmaxrt.sierracharts.com",
"lmaxrt2.sierracharts.com"
]

def test_ping(site, port):
try:
start_time = time.time()
# Attempt to connect to the site on the specified port
socket.setdefaulttimeout(2) # Timeout in seconds
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((site, port))
end_time = time.time()
return "Site is reachable", end_time - start_time
except Exception as e:
return f"Failed with exception: {str(e)}", None


def main():
print("Starting site testing...")
total_time = 0
port = 443 # Change this to the desired port
for site in sites:
print(f"Testing {site} on port {port}...")
result, time_taken = test_ping(site, port)
if time_taken is not None:
print(f"Test result for {site}: {result}, Time taken: {time_taken:.2f} seconds")
total_time += time_taken
else:
print(f"Test result for {site}: {result}")

# Calculate and print average time
if total_time > 0:
average_time = total_time / len(sites)
print(f"\nAverage time taken for all sites: {average_time:.2f} seconds")

if __name__ == "__main__":
main()

Results:

Average time taken for all sites: 0.05 seconds

Sites that timed out:
ds21.sierracharts.com
ds25.sierracharts.com
ds30-2.sierracharts.com
futurestrading1.sierracharts.com
futurestrading11.sierracharts.com
futurestrading13.sierracharts.com
futurestrading15.sierracharts.com
futurestrading17.sierracharts.com
futurestrading18.sierracharts.com
futurestrading19.sierracharts.com

When I run from my system I get:
Average time taken for all sites: 0.01 seconds

So, I should have no problems, but, I am experiencing this:

2024-04-03 05:09:53.643 | Teton CME Order Routing | Firm: Phillip Capital
2024-04-03 05:09:53.643 | Teton CME Order Routing | Connecting to the server futurestrading14.sierracharts.com. Port 11089
2024-04-03 05:09:53.645 | DTC Client socket (1) | Creating socket. Using TLS 1.2.
2024-04-03 05:09:53.646 | DTC Client socket (1) | New receive buffer size: 0
2024-04-03 05:09:53.646 | DTC Client socket (1) | Connecting to IP: 208.185.224.130.
2024-04-03 05:10:13.645 | Teton CME Order Routing | Timeout connecting to server.
2024-04-03 05:10:13.645 | Error connecting to Data or Trading service. For help with this issue, press the 'Send For Analysis' button on this window.
2024-04-03 05:10:13.645 | Select 'File >> Disconnect' to prevent further connection attempts.
2024-04-03 05:10:13.655 | DTC Client socket (1) | CloseSocket call.
2024-04-03 05:10:13.655 | Teton CME Order Routing | Disconnected.
2024-04-03 05:10:13.655 | Will reconnect to the server in 2.0 seconds. Select 'File >> Disconnect' to prevent further connection attempts.
2024-04-03 05:10:13.656 | DTC Client socket (1) | Closed.

A more basic test like this also fails:

ping -c 4 futurestrading14.sierracharts.com
PING ds22.sierracharts.com (208.185.224.130): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2

--- ds22.sierracharts.com ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss