Support Board
Date/Time: Thu, 27 Feb 2025 13:03:55 +0000
Orders rejected - duplicate order id issue
View Count: 732
[2021-07-07 13:50:44] |
TraderD - Posts: 56 |
This morning orders are not being sent to IB TWS for any symbol. The trade service log message: New order rejected - Duplicate order id. Internal Order ID: 60506. Service Order ID: 125158. Symbol: MRIN. Account: xxxxxx | 2021-07-07 06:32:11.572 * I updated SC to the current version and orders were sent ok for a few minutes, then went back to the above issue. Please help resolve. |
[2021-07-07 18:45:38] |
Sierra_Chart Engineering - Posts: 18584 |
We need to look into this. It has been a long time, 8+ years or more, since anyone has ever reported this. We think the issue must be on the Interactive Brokers side but we need to look into it. 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2021-07-08 03:11:31
|
[2021-07-07 18:50:44] |
Sierra_Chart Engineering - Posts: 18584 |
This would have to be a problem on the Interactive Brokers side. Everything is perfectly well designed on the Sierra Chart side in regards to obtaining and using what is called the next valid order ID from the TWS API. We want you to follow the instructions below. Follow the instructions here to clear the Message Log: Message Log: Clearing the Message Log Reconnect to the data feed: File Menu: Procedure to Reconnect to the Data and Trade Servers After about 30 seconds, provide a copy of the Message Log following these instructions: https://www.sierrachart.com/index.php?page=PostingInformation.php#MessageLog We will then determine what the problem is. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-07-08 01:55:36] |
TraderD - Posts: 56 |
Software version: 2284 64-bit | 2021-07-07 18:51:03.304 Primary Thread ID: 8344 | 2021-07-07 18:51:03.304 Usage end date: 2021-11-30 | 2021-07-07 18:51:03.304 Enabled for: Advanced Features 2. | 2021-07-07 18:51:03.304 Enabled for: Sierra Chart Historical Data Service. | 2021-07-07 18:51:03.304 Enabled for: Sierra Chart Real-Time Exchange Data Feed. | 2021-07-07 18:51:03.304 Enabled for: Delayed Denali Exchange Data Feed. | 2021-07-07 18:51:03.304 Enabled for exchange: U.S. Equities (NYSE, NASDAQ, AMEX) | 2021-07-07 18:51:03.304 Enabled for exchange: Euronext Equities Delayed | 2021-07-07 18:51:03.304 Allow Support for Sierra Chart Data Feeds is enabled. | 2021-07-07 18:51:03.304 Current selected Data/Trading service: Interactive Brokers | 2021-07-07 18:51:03.304 Custom symbol settings values: enabled | 2021-07-07 18:51:03.304 Chart Update Interval: 400 | 2021-07-07 18:51:03.304 Intraday Data Storage Time Unit: 0 | 2021-07-07 18:51:03.304 Time Zone: -07:00:00 (PST-08PDT+01,M3.2.0/02:00,M11.1.0/02:00) | 2021-07-07 18:51:03.304 2021-07-08 01:51:03 Local computer time in UTC | 2021-07-07 18:51:03.304 2021-07-07 18:51:03 Local computer time in SC Time Zone | 2021-07-07 18:51:03.304 2021-07-08 00:40:43 Server time in UTC | 2021-07-07 18:51:03.304 Local computer UTC time and Server UTC time difference: 1 seconds. | 2021-07-07 18:51:03.304 Program path: C:\SierraChart\ | 2021-07-07 18:51:03.304 Data Files path: C:\SierraChart\Data\ | 2021-07-07 18:51:03.304 OS Version Number: 10.0 | 2021-07-07 18:51:03.304 Locale Setting: C | 2021-07-07 18:51:03.304 DLLs: JP_Collection.dec2017.dll, JP_Collection.dll, JP_Collection.feb2018.dll, JP_Collection_64.dll, UserContributedStudies.dll, UserContributedStudies_64.dll | 2021-07-07 18:51:03.305 Allowed protected custom studies: | 2021-07-07 18:51:03.305 File >> Disconnect selected. | 2021-07-07 18:51:09.724 IB TWS socket (1) | CloseSocket call. | 2021-07-07 18:51:09.724 IB TWS socket (1) | Shutdown started. Waiting for graceful close. | 2021-07-07 18:51:09.724 SC Data - All Services | Waiting for socket receive thread to end | 2021-07-07 18:51:09.724 DTC Client socket (2) | CloseSocket call. | 2021-07-07 18:51:09.725 SC Data - All Services | Disconnected from the server. | 2021-07-07 18:51:09.725 Interactive Brokers | Disconnected. | 2021-07-07 18:51:09.725 DTC Client socket (2) | Shutdown started. Waiting for graceful close. | 2021-07-07 18:51:09.725 IB TWS socket (1) | Socket gracefully closed by remote side. | 2021-07-07 18:51:09.725 IB TWS socket (1) | Closed. | 2021-07-07 18:51:09.725 DTC Client socket (2) | Socket gracefully closed by remote side. | 2021-07-07 18:51:09.780 DTC Client socket (2) | Closed. | 2021-07-07 18:51:09.780 Interactive Brokers | Connecting to 127.0.0.1:7496 | 2021-07-07 18:51:13.175 IB TWS socket (1) | Creating socket. | 2021-07-07 18:51:13.175 IB TWS socket (1) | New receive buffer size: 5242880 | 2021-07-07 18:51:13.175 IB TWS socket (1) | Connecting to IP: 127.0.0.1. | 2021-07-07 18:51:13.175 Interactive Brokers | Sending API sign: API | 2021-07-07 18:51:13.686 Interactive Brokers | Sending client version: v100..136 +PACEAPI. Waiting for acceptance. | 2021-07-07 18:51:13.686 Interactive Brokers | TWS server version: 136 | 2021-07-07 18:51:13.699 Interactive Brokers | TWS time: 20210707 18:51:14 PST | 2021-07-07 18:51:13.699 Interactive Brokers | Connected. Sending Start API command. | 2021-07-07 18:51:13.949 Interactive Brokers | Waiting for account information. | 2021-07-07 18:51:13.949 Interactive Brokers | Sending request for contract details for contract ID 439797262 | 2021-07-07 18:51:13.952 Interactive Brokers | Sending request for contract details for contract ID 445402386 | 2021-07-07 18:51:13.953 Interactive Brokers | Sending request for contract details for contract ID 435197547 | 2021-07-07 18:51:13.953 Interactive Brokers | Sending request for contract details for contract ID 45555866 | 2021-07-07 18:51:13.955 Interactive Brokers | Sending request for contract details for contract ID 247848809 | 2021-07-07 18:51:13.957 Interactive Brokers | Sending request for contract details for contract ID 313123506 | 2021-07-07 18:51:13.959 IB Account information received. | 2021-07-07 18:51:13.962 Interactive Brokers | Received 1 Trade Accounts from TWS. | 2021-07-07 18:51:13.962 Interactive Brokers | Connected to Live account. | 2021-07-07 18:51:13.962 Updated verified funded futures trading account ending date to: 2021-08-07 01:51:13 | 2021-07-07 18:51:13.962 Interactive Brokers | Connected to server complete. | 2021-07-07 18:51:13.962 Triggering next historical data download in queue. | 2021-07-07 18:51:13.962 Triggering next historical data download in queue. | 2021-07-07 18:51:13.962 Triggering next historical data download in queue. | 2021-07-07 18:51:13.962 Triggering next historical data download in queue. | 2021-07-07 18:51:13.962 Subscribing to symbol for symbol alert. CCIV | 2021-07-07 18:51:13.962 Mapping CCIV to CCIV. Service code: equities.us | 2021-07-07 18:51:13.962 SC Data - All Services | Starting real-time market data updates for: CCIV (CCIV). ID: 1 Service code: equities.us | 2021-07-07 18:51:13.962 SC Data - All Services | Connecting to the server ds1.sierracharts.com. Port 10047 | 2021-07-07 18:51:13.962 SC Data - All Services | Requesting security definition data for: CCIV (CCIV). ID: 1 | 2021-07-07 18:51:13.962 Subscribing to symbol for symbol alert. IHT | 2021-07-07 18:51:13.962 Mapping IHT to IHT. Service code: equities.us | 2021-07-07 18:51:13.962 SC Data - All Services | Starting real-time market data updates for: IHT (IHT). ID: 2 Service code: equities.us | 2021-07-07 18:51:13.962 SC Data - All Services | Requesting security definition data for: IHT (IHT). ID: 2 | 2021-07-07 18:51:13.962 Updated verified funded futures trading account ending date to: 2021-08-07 01:51:13 | 2021-07-07 18:51:13.963 Next valid order ID: 126237 | 2021-07-07 18:51:13.963 Message from IB: Market data farm connection is OK:usfarm.nj. IB Error Code: 2104. Request ID: -1. | 2021-07-07 18:51:13.963 Message from IB: Market data farm connection is OK:jfarm. IB Error Code: 2104. Request ID: -1. | 2021-07-07 18:51:13.963 Message from IB: Market data farm connection is OK:eufarm. IB Error Code: 2104. Request ID: -1. | 2021-07-07 18:51:13.963 Message from IB: Market data farm connection is OK:usopt. IB Error Code: 2104. Request ID: -1. | 2021-07-07 18:51:13.963 Message from IB: Market data farm connection is OK:usfarm. IB Error Code: 2104. Request ID: -1. | 2021-07-07 18:51:13.963 No download requests in the queue to start downloads for. | 2021-07-07 18:51:13.963 No download requests in the queue to start downloads for. | 2021-07-07 18:51:13.963 No download requests in the queue to start downloads for. | 2021-07-07 18:51:13.963 DTC Client socket (2) | Creating socket. | 2021-07-07 18:51:13.963 No download requests in the queue to start downloads for. | 2021-07-07 18:51:13.963 Message from IB: HMDS data farm connection is OK:ushmds. IB Error Code: 2106. Request ID: -1. | 2021-07-07 18:51:13.963 Message from IB: Sec-def data farm connection is OK:secdefnj. IB Error Code: 2158. Request ID: -1. | 2021-07-07 18:51:13.963 DTC Client socket (2) | New receive buffer size: 5242880 | 2021-07-07 18:51:13.963 DTC Client socket (2) | Connecting to IP: 8.18.161.135. | 2021-07-07 18:51:13.963 Interactive Brokers | Received contract details for symbol IU-202108-SGX-USD | 2021-07-07 18:51:13.965 Interactive Brokers | Received contract details for symbol IU-202109-SGX-USD | 2021-07-07 18:51:13.966 Interactive Brokers | Received contract details for symbol IU-202107-SGX-USD | 2021-07-07 18:51:13.967 Interactive Brokers | Received contract details for symbol SPEU-STK-SMART-USD | 2021-07-07 18:51:13.967 Interactive Brokers | Received contract details for symbol FDRR-STK-SMART-USD | 2021-07-07 18:51:13.968 Interactive Brokers | Received contract details for symbol AFRN-STK-SMART-EUR | 2021-07-07 18:51:13.968 Interactive Brokers | All contract details received for symbols used for trading. Starting timer to request trading data. | 2021-07-07 18:51:13.968 Next valid order ID: 126237 | 2021-07-07 18:51:13.969 Next valid order ID: 126237 | 2021-07-07 18:51:13.969 SC Data - All Services | Network connection to server complete. | 2021-07-07 18:51:14.027 SC Data - All Services | Starting socket receive thread. | 2021-07-07 18:51:14.027 SC Data - All Services | Sending encoding request to server: Binary VLS. Compression: standard | 2021-07-07 18:51:14.028 SC Data - All Services | Setting DTC encoding to Binary VLS | 2021-07-07 18:51:14.109 SC Data - All Services | Sending logon request message. | 2021-07-07 18:51:14.109 Mapping SPEU to SPEU. Service code: equities.us | 2021-07-07 18:51:14.137 SC Data - All Services | Starting real-time market data updates for: SPEU (SPEU). ID: 3 Service code: equities.us | 2021-07-07 18:51:14.137 SC Data - All Services | Requesting security definition data for: SPEU (SPEU). ID: 3 | 2021-07-07 18:51:14.137 SC Data - All Services | Received logon response. | 2021-07-07 18:51:14.835 SC Data - All Services | Server Name: SC Realtime Server. | 2021-07-07 18:51:14.835 SC Data - All Services | Server protocol version: 8. Client protocol version: 8 | 2021-07-07 18:51:14.835 SC Data - All Services | Successfully connected. | 2021-07-07 18:51:14.835 SC Data - All Services | Trading is not supported. | 2021-07-07 18:51:14.835 SC Data - All Services | Restarting real-time data updates for symbol: CCIV -> CCIV | 2021-07-07 18:51:14.835 SC Data - All Services | Restarting real-time data updates for symbol: IHT -> IHT | 2021-07-07 18:51:14.835 SC Data - All Services | Restarting real-time data updates for symbol: SPEU -> SPEU | 2021-07-07 18:51:14.835 SC Data - All Services | Received security definition for symbol CCIV | 2021-07-07 18:51:14.980 SC Data - All Services | Received security definition for symbol IHT | 2021-07-07 18:51:14.980 SC Data - All Services | Received security definition for symbol SPEU | 2021-07-07 18:51:14.980 Interactive Brokers | Requesting Trade Positions snapshot and updates (IB account data updates (6)) for account: U* | 2021-07-07 18:51:18.961 Interactive Brokers | Begin Trade Positions processing. | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 140070600 | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 36285296 | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 290651452 | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 492091000 | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 324062305 | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 471602244 | 2021-07-07 18:51:18.965 Interactive Brokers | Sending request for contract details for contract ID 467744736 | 2021-07-07 18:51:18.965 Interactive Brokers | Received Trade Positions download end message for account U* | 2021-07-07 18:51:18.965 Interactive Brokers | Received Trade Positions for all accounts. Performing final processing. | 2021-07-07 18:51:18.965 Interactive Brokers | Received contract details for symbol AMC-STK-SMART-USD | 2021-07-07 18:51:18.972 Interactive Brokers | Received contract details for symbol BSQR-STK-SMART-USD | 2021-07-07 18:51:18.972 Interactive Brokers | Received contract details for symbol MRIN-STK-SMART-USD | 2021-07-07 18:51:18.972 Interactive Brokers | Received contract details for symbol NEGG-STK-SMART-USD | 2021-07-07 18:51:18.972 Interactive Brokers | Received contract details for symbol OUSA-STK-SMART-USD | 2021-07-07 18:51:18.973 Interactive Brokers | Received contract details for symbol VRPX-STK-SMART-USD | 2021-07-07 18:51:18.973 Interactive Brokers | Received contract details for symbol XELA-STK-SMART-USD | 2021-07-07 18:51:18.973 Interactive Brokers | All contract details received for symbols used for trading. Starting timer to request trading data. | 2021-07-07 18:51:18.973 Interactive Brokers | Stopping automatic Trade Position updates for account: U* | 2021-07-07 18:51:28.981 Interactive Brokers | Requesting Trade Positions snapshot and updates (IB account data updates (6)) for account: U* | 2021-07-07 18:51:28.981 Message from IB: API client has been unsubscribed from account data. IB Error Code: 2100. Request ID: -1. | 2021-07-07 18:51:28.991 Interactive Brokers | Begin Trade Positions processing. | 2021-07-07 18:51:28.993 Interactive Brokers | Received Trade Positions download end message for account U* | 2021-07-07 18:51:28.993 Interactive Brokers | Received Trade Positions for all accounts. Performing final processing. | 2021-07-07 18:51:28.993 |
[2021-07-08 02:57:19] |
|
This is the relevant line: Next valid order ID: 126237 | 2021-07-07 18:51:13.963 Sierra Chart request 100,000 order IDs from TWS. That is the first valid ID which is shown in the line above. So any order you submit after that line is received, should start with that number for what is called the Service Order ID in Sierra Chart and then increments by one for any additional order. If that is what is happening, then everything is working correctly on the Sierra Chart side. 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: 2021-07-08 02:58:00
|
[2021-07-08 16:32:12] |
TraderD - Posts: 56 |
Thanks. Is there something I need to do with TWS (or request of IB support) to prevent the duplicate id issue from happening again?
|
[2021-07-08 20:41:24] |
|
You need to have them resolve the problem. We do not know what the solution would be.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: