Login Page - Create Account

Support Board


Date/Time: Tue, 30 Apr 2024 01:56:15 +0000



Wrong conclusion: Bitmex - reconnects in a loop with latest Sierra Chart

View Count: 515

[2020-03-08 09:43:51]
DRand444 - Posts: 3
Reading Internal Order ID file. | 2020-03-08 09:40:50.406
Reading Trade Orders file. | 2020-03-08 09:40:50.480
Reading Trade Positions file. | 2020-03-08 09:40:50.480
Reading Account Balance file. | 2020-03-08 09:40:50.480
UDPListener (1308). Port 22904 | Listening on UDP port 22904. | 2020-03-08 09:40:50.533
Software version: 2060 64-bit | 2020-03-08 09:40:50.533
Usage end date: 2020-04-08 | 2020-03-08 09:40:50.533
Enabled for: Sierra Chart Historical Data Service. | 2020-03-08 09:40:50.533
Enabled for: Delayed Denali Real-Time Exchange Data Feed. | 2020-03-08 09:40:50.533
Allow Support for Sierra Chart Data Feeds is enabled. | 2020-03-08 09:40:50.533
Current selected Data/Trading service: BitMEX Trading Direct | 2020-03-08 09:40:50.533
Custom symbol settings values: enabled | 2020-03-08 09:40:50.533
Chart Update Interval: 250 | 2020-03-08 09:40:50.533
Intraday Data Storage Time Unit: 1 | 2020-03-08 09:40:50.533
Time Zone: +00:00:00 (UTC+00) | 2020-03-08 09:40:50.533
2020-03-08 09:40:50 Local computer time | 2020-03-08 09:40:50.533
2020-03-08 09:40:50 Local computer time in UTC | 2020-03-08 09:40:50.533
2020-03-08 09:40:50 Local computer time in SC Time Zone | 2020-03-08 09:40:50.533
2020-03-08 09:40:50 Server time in UTC | 2020-03-08 09:40:50.533
Local computer UTC time and Server UTC time difference: 0 seconds. | 2020-03-08 09:40:50.533
Program path: C:\Users\Administrator\Desktop\sierra-cryptos\ | 2020-03-08 09:40:50.533
Data Files path: C:\Users\Administrator\Desktop\sierra-cryptos\Data\ | 2020-03-08 09:40:50.533
OS Version Number: 10.0 | 2020-03-08 09:40:50.533
Locale Setting: C | 2020-03-08 09:40:50.533


Checking for new symbol settings. Requested symbol settings MD5 for service code bitmex.exchange.trading. Request ID: 1. | 2020-03-08 09:40:50.534
HTTPS connection ID:1 to login.sierrachart.com:443 for request ID:1 (1) | Shutdown started. Waiting for graceful close. | 2020-03-08 09:40:50.598
HTTPS connection ID:1 to login.sierrachart.com:443 for request ID:1 (1) | Socket gracefully closed by remote side. | 2020-03-08 09:40:50.627
HTTPS connection ID:1 to login.sierrachart.com:443 for request ID:1 (1) | Closed. | 2020-03-08 09:40:50.627
Received 5 login tokens. | 2020-03-08 09:40:50.676
Symbol settings MD5 received. Request ID: 1. | 2020-03-08 09:40:50.680
Symbol settings are up-to-date for bitmex.exchange.trading. | 2020-03-08 09:40:50.680
Files to Open on Start up | Opening file: CryptosColo.Cht | 2020-03-08 09:40:53.731
XBTUSD-BMEX #2 | Reloading chart. | 2020-03-08 09:40:53.869
XBTUSD-BMEX #2 | StartDateTimeForLoadingOrderFills: 00:00:00 | 2020-03-08 09:40:53.869
XBTUSD-BMEX 1 Min #3 | Reloading chart. | 2020-03-08 09:40:53.912
XBTUSD-BMEX 1 Min #1 | Reloading chart. | 2020-03-08 09:40:53.971
XBTUSD-BMEX 10 Sec #4 | Reloading chart. | 2020-03-08 09:40:54.005
XBTUSD-BMEX 10000000 Volume #5 | Reloading chart. | 2020-03-08 09:40:54.038
XBTUSD-BMEX [CB] Daily #6 | Reloading chart. | 2020-03-08 09:40:54.048
XBTUSD-BMEX [CB] Daily #6 | No contract months found for symbol. Unable to build continuous futures contract chart. | 2020-03-08 09:40:54.048
XBTUSD-BMEX [CB] Daily #6 | There are no continuous futures contract symbols. Loading data normally. | 2020-03-08 09:40:54.048
Starting DelayedDownloadMonitoringTimer | 2020-03-08 09:40:54.255
Starting HDTimeoutTimer | 2020-03-08 09:40:54.255
Added historical Intraday data request for XBTUSD-BMEX to the queue. | 2020-03-08 09:40:54.255
Intraday data recording state for symbol XBTUSD-BMEX is set to download 'Pending'. | 2020-03-08 09:40:54.255
Triggering next historical data download in queue. | 2020-03-08 09:40:54.255
HD Request # 1 | Downloading Intraday chart data for XBTUSD-BMEX to the file XBTUSD-BMEX.scid. Service: bitmex | 2020-03-08 09:40:54.258
HD Request # 1 | Download start date-time: 2020-03-08 09:40:37.000 | 2020-03-08 09:40:54.258
HD Request # 1 | Using server: ds4.sierracharts.com port 10149 | 2020-03-08 09:40:54.258
Socket (1) | Creating socket. | 2020-03-08 09:40:54.272
Socket (1) | Connecting to IP: 192.81.56.146. | 2020-03-08 09:40:54.272
Added historical Daily data request for XBTUSD-BMEX to the queue. | 2020-03-08 09:40:54.295
Triggering next historical data download in queue. | 2020-03-08 09:40:54.295
HD Request # 1 | Setting DTC encoding to Binary VLS | 2020-03-08 09:40:54.501
HD Request # 1 | Sending historical data logon request message. | 2020-03-08 09:40:54.501
HD Request # 1 | Requesting Intraday data. Start date-time: 2020-03-08 09:40:37. Record interval: 1. Symbol: XBTUSD-BMEX | 2020-03-08 09:40:54.611
HD Request # 1 | Decompressing data. | 2020-03-08 09:40:54.722
HD Request # 1 | Receiving Intraday data for XBTUSD-BMEX starting at 2020-03-08 09:40:37 | 2020-03-08 09:40:54.723
Socket (1) | CloseSocket call. | 2020-03-08 09:40:54.723
Socket (1) | Shutdown started. Waiting for graceful close. | 2020-03-08 09:40:54.723
HD Request # 1 | Historical data for XBTUSD-BMEX is delayed because connection to main data feed is not present. Current data will be received upon connection. | 2020-03-08 09:40:54.723
Historical data download thread signaled to stop. | 2020-03-08 09:40:54.723
HD Request # 1 | Timestamp of first Intraday data file record written: 2020-03-08 09:40:37 | 2020-03-08 09:40:54.723
HD Request # 1 | Received 8 records from 2020-03-08 09:40:37.000 to 2020-03-08 09:40:50.000 (13.0 seconds) and wrote 8 records for XBTUSD-BMEX | 2020-03-08 09:40:54.724
HD Request # 1 | Completion time: 0s | 2020-03-08 09:40:54.729
HD Request # 1 | Intraday data download complete for XBTUSD-BMEX. Unique request ID: 1 | 2020-03-08 09:40:54.729
Removing historical data download ID 1. | 2020-03-08 09:40:54.729
HD Request # 1 | Enabling Intraday chart updating for symbol. | 2020-03-08 09:40:54.729

Triggering next historical data download in queue. | 2020-03-08 09:40:54.729
HD Request # 2 | Downloading Historical Daily chart data for XBTUSD-BMEX. Starting date: 2020-03-06. Service: bitmex | 2020-03-08 09:40:54.730
HD Request # 2 | Using server: ds3.sierracharts.com port 10150 | 2020-03-08 09:40:54.730
Socket (2) | Creating socket. | 2020-03-08 09:40:54.732
Socket (2) | Connecting to IP: 65.182.172.42. | 2020-03-08 09:40:54.733
Socket (1) | Socket gracefully closed by remote side. | 2020-03-08 09:40:54.834
Socket (1) | Closed. | 2020-03-08 09:40:54.834
HD Request # 2 | Setting DTC encoding to Binary VLS | 2020-03-08 09:40:54.943
HD Request # 2 | Sending historical data logon request message. | 2020-03-08 09:40:54.943
HD Request # 2 | Requesting historical Daily data starting at 2020-03-06. | 2020-03-08 09:40:55.045
HD Request # 2 | Decompressing data. | 2020-03-08 09:40:55.146
HD Request # 2 | Receiving historical Daily data for XBTUSD-BMEX starting at 2020-03-06 | 2020-03-08 09:40:55.154
HD Request # 2 | Writing historical Daily data to the file XBTUSD-BMEX.dly | 2020-03-08 09:40:55.154
Socket (2) | CloseSocket call. | 2020-03-08 09:40:55.159
Socket (2) | Shutdown started. Waiting for graceful close. | 2020-03-08 09:40:55.159
Historical data download thread signaled to stop. | 2020-03-08 09:40:55.167
HD Request # 2 | Received 3 records from 2020-03-06 00:00:00 to 2020-03-08 00:00:00 (3.0 days) and wrote 3 records for XBTUSD-BMEX | 2020-03-08 09:40:55.167
HD Request # 2 | Completion time: 0s | 2020-03-08 09:40:55.167
HD Request # 2 | Daily data download complete for XBTUSD-BMEX. Unique request ID: 2 | 2020-03-08 09:40:55.167
Removing historical data download ID 2. | 2020-03-08 09:40:55.167

Triggering next historical data download in queue. | 2020-03-08 09:40:55.167
Socket (2) | Socket gracefully closed by remote side. | 2020-03-08 09:40:55.260
Socket (2) | Closed. | 2020-03-08 09:40:55.260
XBTUSD-BMEX [CB-D][M] Daily #6 | Reloading chart. | 2020-03-08 09:40:55.298
XBTUSD-BMEX [CB-D][M] Daily #6 | No contract months found for symbol. Unable to build continuous futures contract chart. | 2020-03-08 09:40:55.298
XBTUSD-BMEX [CB-D][M] Daily #6 | There are no continuous futures contract symbols. Loading data normally. | 2020-03-08 09:40:55.298

BitMEX Trading Direct | Connecting to URI www.bitmex.com/realtime/WebSocket | 2020-03-08 09:40:56.060
BitMEX Trading Direct | Connecting to WebSocket server www.bitmex.com:443 | 2020-03-08 09:40:56.060
BitMEX Trading Direct socket (1) | Creating socket. Using TLS 1.2. | 2020-03-08 09:40:56.061
BitMEX Trading Direct socket (1) | Connecting to IP: 3.248.94.254. | 2020-03-08 09:40:56.061
BitMEX Trading Direct | Opening WebSocket. | 2020-03-08 09:40:56.062
BitMEX Trading Direct | Sending WebSocket handshake. | 2020-03-08 09:40:56.062
BitMEX Trading Direct | Server header | HTTP/1.1 101 Switching Protocols | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | Date: Sun, 08 Mar 2020 09:40:56 GMT | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | Connection: upgrade | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | Set-Cookie: ****
BitMEX Trading Direct | Server header | Upgrade: websocket | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | Sec-WebSocket-Accept: KSHoFZQ3teUInDSsbOfofDr8/gA= | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | Sec-WebSocket-Version: 13 | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | WebSocket-Server: uWebSockets | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | Strict-Transport-Security: max-age=31536000; includeSubDomains | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Server header | | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Web socket state is now open. | 2020-03-08 09:40:56.073
BitMEX Trading Direct | Connected to data and trading server. | 2020-03-08 09:40:56.073
Triggering next historical data download in queue. | 2020-03-08 09:40:56.074
Triggering next historical data download in queue. | 2020-03-08 09:40:56.074
Triggering next historical data download in queue. | 2020-03-08 09:40:56.074
Triggering next historical data download in queue. | 2020-03-08 09:40:56.074
SC DTC Data with Market Depth | Starting real-time market data updates for: XBTUSD-BMEX. ID: 1 Service code: bitmex | 2020-03-08 09:40:56.078
SC DTC Data with Market Depth | Connecting to the server ds4.sierracharts.com. Port 10048 | 2020-03-08 09:40:56.078
SC DTC Data with Market Depth | Requesting security definition data for: XBTUSD-BMEX. ID: 1 | 2020-03-08 09:40:56.078
Added historical Intraday data request for XBTUSD-BMEX to the queue. | 2020-03-08 09:40:56.078
Intraday data recording state for symbol XBTUSD-BMEX is set to download 'Pending'. | 2020-03-08 09:40:56.078
Triggering next historical data download in queue. | 2020-03-08 09:40:56.078
DTC Client socket (2) | Creating socket. | 2020-03-08 09:40:56.079
DTC Client socket (2) | Connecting to IP: 192.81.56.146. | 2020-03-08 09:40:56.079
BitMEX Trading Direct socket (1) | Socket gracefully closed by remote side. | 2020-03-08 09:40:56.079
Delaying start of download for XBTUSD-BMEX | 2020-03-08 09:40:56.081
BitMEX Trading Direct | WebSocket received OpCode Close. Received status code: 0 | 2020-03-08 09:40:56.081
BitMEX Trading Direct | WebSocket closed. | 2020-03-08 09:40:56.081
Connection to the external service has been lost. | 2020-03-08 09:40:56.081
BitMEX Trading Direct socket (1) | CloseSocket call. | 2020-03-08 09:40:56.082
BitMEX Trading Direct | Network socket for WebSocket has been closed by remote side or error. | 2020-03-08 09:40:56.082
BitMEX Trading Direct | WebSocket closed. | 2020-03-08 09:40:56.082
BitMEX Trading Direct socket (1) | Graceful close received or receive error. Shutdown complete. Closing socket now. | 2020-03-08 09:40:56.082
BitMEX Trading Direct socket (1) | Closed. | 2020-03-08 09:40:56.082
BitMEX Trading Direct socket (0) | CloseSocket call. | 2020-03-08 09:40:56.093
BitMEX Trading Direct | Disconnected. | 2020-03-08 09:40:56.093
Will reconnect to the server in 3.0 seconds. Select 'File >> Disconnect' to prevent further connection attempts. | 2020-03-08 09:40:56.093
Date Time Of Last Edit: 2020-03-08 09:44:08
[2020-03-08 10:34:57]
Sierra Chart Engineering - Posts: 104368
No, your conclusion is definitively incorrect. BitMex is closing the connection:

BitMEX Trading Direct | WebSocket received OpCode Close. Received status code: 0 | 2020-03-08 09:40:56.081
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-03-08 11:46:40]
DRand444 - Posts: 3
Yes, what I meant to ask is why I'm getting a 429 HTTP status code from Bitmex when Sierra Chart is the only application I am connecting to with my API key? That code is sent when API ratelimits are being exceeded. I have tried changing my IP address, shutting down Sierra Chart for an hour, and starting it again. I have the same issue. Can I provide further information for you to troubleshoot?

Rate Limits

The following actions are ratelimited:

Subscription: Consumes one token from your request limiter.
Connection: 20 per hour, on a separate limiter.
Dead Man’s Switch (cancelAllAfter): Consumes one token from your request limiter.

If you exceed your ratelimit on a subscription or cancelAllAfter call, you will see a message like:

{"status":429,"error":"Rate limit exceeded, retry in 1 seconds.","meta":{"retryAfter":1},"request":{"op":"subscribe","args":"orderBook"}}

If you are ratelimited from connecting, the message is slightly different (example includes headers):

HTTP/1.1 429 Too Many Requests
Cache-Control: no-store, no-cache, must-revalidate, max-age=0
Pragma: no-cache
X-RateLimit-Limit: 20
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1506983924
Retry-After: 29
Content-Type: application/json
Content-Length: 55
Date: Mon, 02 Oct 2017 21:43:49 GMT
Connection: keep-alive

{"error":"Rate limit exceeded, retry in 29 seconds."}

Date Time Of Last Edit: 2020-03-08 11:47:25
[2020-03-08 16:13:25]
DRand444 - Posts: 3
Wrong conclusion indeed, this is now resolved.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account