Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 14:46:05 +0000



SC disconnect from IB once I open the chart with the HKFE stock futures symbol

View Count: 1750

[2018-12-11 02:54:16]
User189399 - Posts: 43
I 'd like to trade HKFE stock futures with IB TWS and add the new symbol 700-FUT-201812-HKFE-100-HKD in SC. Once I open the chart of it, SC disconnected automatically from IB with the log below.

I have sent the log of SC and TWS to IB for troubleshooting. Below is the reply from IB:-
Appreciated if SC can find out the cause and solve this issue.


IB reply messages:-
(Thank you for the update, after reviewing TWS and the API Log's I can confirm the connection is not being closed by TWS. Log's confirm that the only disconnect occurring between Sierra Charts and TWS are originating from Sierra Charts directly while TWS remains running.

Also confirms there are many rejects occurring because the contract parameters being specified from Sierra Charts are incorrect. It would be advise to consult with Sierra Charts on how to properly configure the contract parameters being sent to IB as they seem to be incorrect.)




SC log for ref:-
Interactive Brokers | Starting real-time market data updates for: 700-FUT-201812-HKFE-HKD-100. ID: 11 | 2018-12-10 20:04:12
Interactive Brokers | Subscribing to real-time True Data for symbol: 700 SecurityType: FUT Exchange: 100 Currency: | 2018-12-10 20:04:12
Interactive Brokers | Subscribing to Symbol: 700, SecurityType: FUT, Expiration: 201812, Exchange: 100, Primary Exchange: , Currency: , Multiplier: , CallPut: HKD, Strike: HKFE, LocalSymbol: , TradingClass: | 2018-12-10 20:04:12
Interactive Brokers | Requesting security definition data for: 700-FUT-201812-HKFE-HKD-100. ID: 11 | 2018-12-10 20:04:12
Interactive Brokers | Using primary service for historical data for 700-FUT-201812-HKFE-HKD-100 | 2018-12-10 20:04:12
Socket (178) | Received socket Close event. | 2018-12-10 20:04:12
Socket (178) | Socket gracefully closed by remote side. | 2018-12-10 20:04:12
Intraday data recording state for symbol 700-FUT-201812-HKFE-HKD-100 is set to download 'Pending'. | 2018-12-10 20:04:12
Socket (178) | Close event error. Windows error code 10053: An established connection was aborted by the software in your host machine. | 2018-12-10 20:04:12
Socket (178) | Received socket Close event. | 2018-12-10 20:04:12
Message from IB: Error reading request:Message id 11. Unable to parse data. java.lang.NumberFormatExceptio n: For input string: "HKFE". IB Error Code: 320. Request ID: 11. Symbol: 700-FUT-201812-HKFE-HKD-100. | 2018-12-10 20:04:12
Socket (178) | Initiating close of socket by core. | 2018-12-10 20:04:12
Connection to the external service has been lost. | 2018-12-10 20:04:12
Socket (178) | Graceful close received or receive error. Shutdown complete. Closing socket now. | 2018-12-10 20:04:12
Socket (178) | Closed. | 2018-12-10 20:04:12
Canceling historical data download request for 700-FUT-201812-HKFE-HKD-100 Intraday data. | 2018-12-10 20:04:12
Removed historical data download ID 7 | 2018-12-10 20:04:12
Interactive Brokers | Disconnected. | 2018-12-10 20:04:12
[2018-12-11 04:36:57]
Sierra Chart Engineering - Posts: 104368
IB reply messages:-
(Thank you for the update, after reviewing TWS and the API Log's I can confirm the connection is not being closed by TWS. Log's confirm that the only disconnect occurring between Sierra Charts and TWS are originating from Sierra Charts directly while TWS remains running.
This is actually not true. It is Trader Workstation which is closing the connection and this is abundantly clear and why they do not admit to something that it is doing by design, we do not know. It is by design that it is closing the connection.

The first thing we want you to do is to update Sierra Chart to the current version:
Software Download: Fast Update

We do think the latest version of Sierra Chart will resolve the problem.
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
Date Time Of Last Edit: 2018-12-11 04:37:52
[2018-12-12 07:55:21]
User189399 - Posts: 43
I have updated the SC to most uptodate version and the disconnection problem seems solved. However, I still cannot get the real-time and historical data for 700-FUT-201812-HKFE-HKD-100. As I asked IB for further investigation, they replied SC pass wrong symbol parameter to them even though I input the symbol 700-FUT-201812-HKFE-HKD-100. below is the reply from IB.
I also attached the related SC log below for your ref.

Replied by IB:-
Please note IB only processes the requests received by Sierra Charts, it is up to Sierra Charts to send the request properly to IB. With regards to historical data for Symbol = 700 it seems the wrong parameters are being sent to IB therefore the historical data request is being rejected.

symbol = 700FUT
secType = STK
exchange = SMART
currency = USD

Above are the parameters being sent to IB for the historical data request. Since they are invalid they are rejected and no data is sent back.

Below is an example of the correct parameters being sent to IB when requesting streaming market data, contract details and real time bars for the same instrument:

symbol = 700
secType = FUT
LastTradeDateOrContractMonth = 20181228
exchange = HKFE
currency = HKD

SC log for your ref:
Interactive Brokers | Starting real-time market data updates for: 700-FUT-201812-HKFE-HKD-100. ID: 1 | 2018-12-11 14:11:24
Interactive Brokers | Subscribing to real-time True Data for symbol: SecurityType: Exchange: Currency: | 2018-12-11 14:11:24
Interactive Brokers | Subscribing to Symbol: (Using local symbol), SecurityType: , Expiration: , Exchange: , Primary Exchange: , Currency: , Multiplier: , CallPut: , Strike: , LocalSymbol: , TradingClass: | 2018-12-11 14:11:24
Interactive Brokers | Requesting security definition data for: 700-FUT-201812-HKFE-HKD-100. ID: 1 | 2018-12-11 14:11:24
Interactive Brokers | Using primary service for historical data for 700-FUT-201812-HKFE-HKD-100 | 2018-12-11 14:11:24
Intraday data recording state for symbol 700-FUT-201812-HKFE-HKD-100 is set to download 'Pending'. | 2018-12-11 14:11:24
Delaying start of download for 700-FUT-201812-HKFE-HKD-100 | 2018-12-11 14:11:24
Message from IB: Error validating request:-'bJ' : cause - Please enter exchange. IB Error Code: 321. Request ID: 1. Symbol: 700-FUT-201812-HKFE-HKD-100. | 2018-12-11 14:11:24
Message from IB: Error validating request:-'bL' : cause - The symbol or the local-symbol or the security id must be entered. IB Error Code: 321. Request ID: 1. Symbol: 700-FUT-201812-HKFE-HKD-100. | 2018-12-11 14:11:24
Message from IB: Error validating request:-'bD' : cause - The symbol or the local-symbol or the security id must be entered. IB Error Code: 321. Request ID: 1. Symbol: 700-FUT-201812-HKFE-HKD-100. | 2018-12-11 14:11:24
Interactive Brokers | Requesting Trade Positions snapshot and updates (IB account data updates (6)) for account: DU21* | 2018-12-11 14:11:29
Interactive Brokers | Sending request for contract details for contract ID 309359834 | 2018-12-11 14:11:29
Interactive Brokers | Sending request for contract details for contract ID 140081942 | 2018-12-11 14:11:29
Interactive Brokers | Sending request for contract details for contract ID 321632548 | 2018-12-11 14:11:29
Interactive Brokers | Received Trade Positions download end message for account DU21* | 2018-12-11 14:11:29
Interactive Brokers | Received contract details for symbol HSI-201812-HKFE | 2018-12-11 14:11:29
Interactive Brokers | Received contract details for symbol JPY-201812-GLOBEX | 2018-12-11 14:11:29
Interactive Brokers | Received contract details for symbol M6A-201812-GLOBEX | 2018-12-11 14:11:29
Interactive Brokers | All contract details received for symbols used for trading. Starting timer to request trading data. | 2018-12-11 14:11:29
Interactive Brokers | All contract details received for symbols used for trading. Re-requesting trading data. | 2018-12-11 14:11:39
Interactive Brokers | Stopping automatic Trade Position updates for account: DU21* | 2018-12-11 14:11:39
Interactive Brokers | Requesting Trade Positions snapshot and updates (IB account data updates (6)) for account: DU21* | 2018-12-11 14:11:39
Message from IB: API client has been unsubscribed from account data. IB Error Code: 2100. Request ID: -1. | 2018-12-11 14:11:39
Interactive Brokers | Received Trade Positions download end message for account DU21* | 2018-12-11 14:11:39
HD Request # 6 | Downloading Intraday chart data for 700-FUT-201812-HKFE-HKD-100 to the file 700-FUT-201812-HKFE-HKD-100.sc id. Service: interactive_brokers.trading | 2018-12-11 14:11:40
HD Request # 6 | Download start date-time: 2018-06-08 14:11:39.000 | 2018-12-11 14:11:40
HD Request # 6 | Requesting a total of 5 days and 0 seconds. | 2018-12-11 14:11:40
HD Request # 6 | IB Backfill - Seconds requested: 86400. Seconds Remaining: 345600. | 2018-12-11 14:11:40
HD Request # 6 | Requesting 1 Day of data at 30 secs with ending date-time at 2018-12-07 15:21:39 for 700-FUT-201812-HKFE-HKD-100. PriceType: TRADES | 2018-12-11 14:11:40
HD Request # 6 | Message from IB: Error validating request:-'bF' : cause - Please enter exchange. IB Error Code: 321. Request ID: 200002. | 2018-12-11 14:11:40
HD Request # 6 | IB Backfill - Seconds requested: 86400. Seconds Remaining: 259200. | 2018-12-11 14:11:40
HD Request # 6 | Requesting 1 Day of data at 30 secs with ending date-time at 2018-12-08 15:21:39 for 700-FUT-201812-HKFE-HKD-100. PriceType: TRADES | 2018-12-11 14:11:40
HD Request # 6 | Message from IB: Error validating request:-'bF' : cause - Please enter exchange. IB Error Code: 321. Request ID: 200003. | 2018-12-11 14:11:40
HD Request # 6 | IB Backfill - Seconds requested: 86400. Seconds Remaining: 172800. | 2018-12-11 14:11:40
HD Request # 6 | Requesting 1 Day of data at 30 secs with ending date-time at 2018-12-09 15:21:39 for 700-FUT-201812-HKFE-HKD-100. PriceType: TRADES | 2018-12-11 14:11:40
HD Request # 6 | Message from IB: Error validating request:-'bF' : cause - Please enter exchange. IB Error Code: 321. Request ID: 200004. | 2018-12-11 14:11:40
HD Request # 6 | IB Backfill - Seconds requested: 86400. Seconds Remaining: 86400. | 2018-12-11 14:11:40
HD Request # 6 | Requesting 1 Day of data at 30 secs with ending date-time at 2018-12-10 15:21:39 for 700-FUT-201812-HKFE-HKD-100. PriceType: TRADES | 2018-12-11 14:11:40
HD Request # 6 | Message from IB: Error validating request:-'bF' : cause - Please enter exchange. IB Error Code: 321. Request ID: 200005. | 2018-12-11 14:11:40
HD Request # 6 | IB Backfill - Seconds requested: 86400. Seconds Remaining: 0. | 2018-12-11 14:11:40
HD Request # 6 | Requesting 1 Day of data at 30 secs with ending date-time at 2018-12-11 15:21:39 for 700-FUT-201812-HKFE-HKD-100. PriceType: TRADES | 2018-12-11 14:11:40
HD Request # 6 | Message from IB: Error validating request:-'bF' : cause - Please enter exchange. IB Error Code: 321. Request ID: 200006. | 2018-12-11 14:11:40
HD Request # 6 | Received 0 records from 00:00:00 to 00:00:00 (0.0 seconds) and wrote 0 records for 700-FUT-201812-HKFE-HKD-100 | 2018-12-11 14:11:40
HD Request # 6 | Completion time: 0s | 2018-12-11 14:11:40
HD Request # 6 | Intraday data download complete for 700-FUT-201812-HKFE-HKD-100. Unique request ID: 5 | 2018-12-11 14:11:40
Removed historical data download ID 5 | 2018-12-11 14:11:40
Real-time Intraday chart data file updates started for 700-FUT-201812-HKFE-HKD-100 | 2018-12-11 14:11:40
Intraday chart data file opened for 700-FUT-201812-HKFE-HKD-100 | 2018-12-11 14:11:40
[2018-12-12 08:15:31]
Sierra Chart Engineering - Posts: 104368
This is not a valid symbol format that Sierra Chart specifies :
700-FUT-201812-HKFE-HKD-100

It needs to be:
700-201812-HKFE-HKD-100



Refer to:
Interactive Brokers Symbols: Futures Format
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
Date Time Of Last Edit: 2018-12-12 08:16:52

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

Login

Login Page - Create Account