开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date

Re: Install TWS or IB gateway on Ubuntu and ARM64 bit processor

 
Edited

You can get quite far very quickly with the stock installation for Intel x86 processors by doing four steps:

  • Download the offline installer for a Linux TWS
  • Install a decent Oracle 64bit Java JVM for ARM processors that must include JavaFX
  • Install it with like this: app_java_home="/path/to/your/Java/installation" sh tws-latest-standalone-linux-x86.sh
  • Use the "Start TWS" option from the last installation screen
I only have an old and very tired 32bit Raspberry Pi 2 with less than 800MB of RAM. It runs a 32bit version of Debian 10 (Buster) but does not meet many of the requirements for TWS,

However, TWS installation, startup, and login works fine. It hangs at "Starting Managers" but since TWS logs are encrypted at that point, debugging would be a challenge. A modern 64bit processor with good graphics might just work.

闯ü谤驳别苍







On Thu, Sep 2, 2021 at 11:13 AM, <makingmyliving-fin@...> wrote:
Hi Derek,

Did you achieve to run TWS on Raspberry Pi 4 or any other ARM processor?? If the answer is yes, could you please provide a detailed explanation of how to do it?? Does anybody else know?

I am looking forward to your reply,


?

?


Re: TWS will periodically "hang" on Initializing managers after daily restart and have purple grid

 

If you are still getting resets, just send a secure message to IB and describe your problem to them. I did the same yesterday regarding my reset times (see post 48041 above), and had a response from IB overnight (Sydney time). I've seen many people bag IB support, but this was a very quick response, and directly to the point.

It turns out that I am connected to a US server, with Hong Kong reset times, resulting in a disconnection from the Primary Server, with the resulting purple grids, at 07:15 and 15:45 US Central time each trading day. IB are going to change me to the Hong Kong server, with US reset times. I will still get the resets, but not while I am looking at the US markets. It will be interesting to see how this turns out.

KH


Re: TWS will periodically "hang" on Initializing managers after daily restart and have purple grid

 

Yeah, I also trade the US markets only. So far I was doing the restart ahead of the nightly resets (around 7:55 pm PST), and so if the reset (recovery) wasnt clean, my TWS would be stuck till next morning when trading starts and I needed to doublecheck early morning that it was stuck or not. Now I have pushed the restart past the reset in the hope that the restart fixes any lingering issues from the reset. At least it worked last night.


Re: TWS will periodically "hang" on Initializing managers after daily restart and have purple grid

Nick
 

开云体育

If you can move the TWS restart farther from the nightly IB reset I think you have a better chance of avoiding surprises.

It all depends on the markets you trade of course. I only look at US markets so I can restart TWS at 5:15Pm eastern when all local markets are closed.


On 9/2/2021 1:05 PM, rajeshh_98 via groups.io wrote:

So this still happens after upgrading to the recent version of TWS - I think I have noticed now that it has only happened after Wednesday disconnects and recovery( the daily midnight EST disconnects) the last 3 weeks. For now, what I have done is changed my daily TWS restart to happen after these disconnects ( 1am EST). This worked last night..


Re: TWS will periodically "hang" on Initializing managers after daily restart and have purple grid

 

So this still happens after upgrading to the recent version of TWS - I think I have noticed now that it has only happened after Wednesday disconnects and recovery( the daily midnight EST disconnects) the last 3 weeks. For now, what I have done is changed my daily TWS restart to happen after these disconnects ( 1am EST). This worked last night..


Re: Install TWS or IB gateway on Ubuntu and ARM64 bit processor

 

Hi Derek,

Did you achieve to run TWS on Raspberry Pi 4 or any other ARM processor?? If the answer is yes, could you please provide a detailed explanation of how to do it?? Does anybody else know?

I am looking forward to your reply,


Re: TWS API earning dates..

 

Subscribed yesterday to WSH.

Now able to get WSH_PREV_EARNINGS and?WSH_NEXT_EARNINGS via scanner.

But request?reqWshMetaData(1001) fails with API error: "Error Code: 10276? Error Msg: News feed Is Not allowed."

Error description doesn't say much: "The API client is not permissioned for receiving WSH news feed."


When I check Global Configuration -> API -> News Configuration there is no WSH listed.
Also in Global Configuration -> Information Tools -> News Configuration can't find anything WSH related.

Using TWS build 985.1k as gateway. API ver?9.85.2.0? and Vb.NET

Seems like I miss some subscription but what and where?

Thanks
Priit


security id ;3 Socket disconnected

 

anyone who know the meaning of this?

51:151:1:0:4:2:DET] [4;2;1;321;Error validating request.-'bQ' : cause - Unknown security type : 3]
2021-09-01 17:04:00.965 [XU] INFO? [JTS-EServerSocket-437] - [0:151:151:1:0:4:2:DET] Error sent.
2021-09-01 17:04:00.965 [XU] INFO? [JTS-EServerSocket-437] - [0:151:151:1:0:0:0:INFO] Handling incoming UnSet(494713387) message.
2021-09-01 17:04:00.965 [XU] INFO? [JTS-EServerSocket-437] - [0:151:151:1:0:0:0:ERR] Invalid incoming request type - 494713387
2021-09-01 17:04:00.965 [XU] ERROR [JTS-EServerSocket-437] - [0:151:151:1:0:0:0:ERR] Client socket broken -


Re: FTI futures symbol name

 

Thanks for the clear answer.

Kind regards

Harry


Re: Limitations on data requests. Requesting 120 options in option chain.

 

Sorry for the late reply.

My starting point was the sample app of the API. Very usefull. My call I now use for example:

reqMktData(mktDataRequest, FullContract, "", true, false, new List<TagValue>());

Where
mktDataRequest is an int number
FullContract is the contract I get in API message

ibClient.ContractDetails += HandleContractDataMessage;
void HandleContractDataMessage(ContractDetailsMessage message) {};

after asking for the contract details.

I hope this helps, success.


Re: futures options data via API

 

开云体育

You need to use OPT rather than FOP for DAX futures options.

?

I think, though I don't know for sure, that this applies to European futures options in general.

?

?

From: [email protected] <[email protected]> On Behalf Of Sadr-Hashemi
Sent: 01 September 2021 12:06
To: [email protected]
Subject: Re: [TWS API] futures options data via API

?

Hi,
I am looking for help in getting my reqMktData to work in getting me market data. I was hoping you may be able to help.
For options on Dow Jones. This gives no error (wether it is working is another question :)
symbol="YM"
secType="FOP"
currency="USD"
exchange="ECBOT"
localSymbol="C OYM SEP 21 35650"

But for DAX the following gives me security definition not found
symbol="DAX"
secType="OPT"
currency="EUR"
exchange="DTB"
localSymbol="P ODX1 SEP 21 15800"

any ideas/help/documentation?

Much appreciated


Re: FTI futures symbol name

 

A long time ago, the letters were used to designate about 2 years worth of futures contracts. 2 years, 12 months = 24 letters. In time, with rare exceptions a year was added and just 12 months of letter codes were used. ex: ESU1 =? E-Mini S&P for September 2021.

The months now used, in order are; F,G,H,J,K,M,N,Q,U,V,X and Z

On Wed, Sep 1, 2021 at 10:33 AM <arnoud@...> wrote:
Hi All,

Can someone tell me what the logic is of the month in the symbol name of a FTI future (FTA)

I know the prefix of the name is FTI and a number describing the year (1 for 2021).
Between 'FTI' and '1' there is a character which is for the month.

What I have so far is:

???? ??? jan
??? ??? feb
FTIH1??? ??? mrt
FTIJ1??? ??? apr
??? ??? may
FTIM1??? ??? jun
??? ??? jul
??? ??? aug
FTIU1??? ??? sep
FTIV1??? ??? okt
FTIX1??? ??? nov
FTIZ1??? ??? dec

Why is H used for the 3th month. What is used for jan, feb, may,jun, jul, aug...

Kind regards

Harry


FTI futures symbol name

 

Hi All,

Can someone tell me what the logic is of the month in the symbol name of a FTI future (FTA)

I know the prefix of the name is FTI and a number describing the year (1 for 2021).
Between 'FTI' and '1' there is a character which is for the month.

What I have so far is:

???? ??? jan
??? ??? feb
FTIH1??? ??? mrt
FTIJ1??? ??? apr
??? ??? may
FTIM1??? ??? jun
??? ??? jul
??? ??? aug
FTIU1??? ??? sep
FTIV1??? ??? okt
FTIX1??? ??? nov
FTIZ1??? ??? dec

Why is H used for the 3th month. What is used for jan, feb, may,jun, jul, aug...

Kind regards

Harry


Re: Limitations on data requests. Requesting 120 options in option chain.

 

Hi Nick64,

I am trying to get my API working to get some option data using reqMktData. Very interested in the fact that you have got yours to work. I'm using JAVA but even if you are using another language I will be grateful if you could show me an example of what are the parameters you are using for reqMktData to work. Thanks in advance for your timw.


Re: futures options data via API

 

Hi,
I am looking for help in getting my reqMktData to work in getting me market data. I was hoping you may be able to help.
For options on Dow Jones. This gives no error (wether it is working is another question :)
symbol="YM"
secType="FOP"
currency="USD"
exchange="ECBOT"
localSymbol="C OYM SEP 21 35650"

But for DAX the following gives me security definition not found
symbol="DAX"
secType="OPT"
currency="EUR"
exchange="DTB"
localSymbol="P ODX1 SEP 21 15800"

any ideas/help/documentation?

Much appreciated


Re: Python API. Getting historical data in paper trading but not in live account

 

开云体育

Provided both live and paper trading are running on the same computer, both can access live and historical data simultaneously.

?

Note that if both access the same market data ticker, it only counts as one against your ticker limit. Also your ticker limit applies to all the tickers on both live and paper. So if your ticker limit is 100, and your live TWS is accessing 50 tickers and your paper-trading TWS is accessing 50 different tickers, then you will be up to your limit and attempting to access any more (on either TWS) will give an error.

?

?

?

From: [email protected] <[email protected]> On Behalf Of Annie Yang
Sent: 31 August 2021 14:34
To: [email protected]
Subject: Re: [TWS API] Python API. Getting historical data in paper trading but not in live account

?

Thank you for the information. I was testing them on 2 different computers I guess that's why. I have another question.? Last time I checked with an IB technical support they told me that only one peer can access living data feeding, and, if you try to access history data with your script,? the?gateway (no matter it's tws or ib gateway) must have the living data access.? So,? can you access living data feeding on both TWS and Gateway? simultaneously?? thanks??


Seeking programmer to develop Excel dashboard platform for Family Account

 

Hello

I have setup an IB Family Account with mulitple accounts and looking to create an Excel Dashboard that requires to pull in account info (positions,cash) for each account ,? realtime ticker data (price, volume), options volatility data (implied, realized). Also to parse and integrate manually downloaded ticker data into the worksheet. I am not a programmer but am interested with working with one to realize this. Anyone interested can contact me kurb.conrad@.... Thanks


Re: Python API. Getting historical data in paper trading but not in live account

 

Thank you for the information. I was testing them on 2 different computers I guess that's why. I have another question.? Last time I checked with an IB technical support they told me that only one peer can access living data feeding, and, if you try to access history data with your script,? the?gateway (no matter it's tws or ib gateway) must have the living data access.? So,? can you access living data feeding on both TWS and Gateway? simultaneously?? thanks??


On Mon, 30 Aug 2021 at 19:42, Richard L King <rlking@...> wrote:

Yes you can login to your live account and paper trading account simultaneously. But you have to have both TWS/Gateways running on the same computer.

?

I do this all day every trading day, and have done every since the paper trading account was introduced back in the mid-2000s.

?

I've attached a screenshot showing this.

?

?

From: [email protected] <[email protected]> On Behalf Of Annie Yang
Sent: 30 August 2021 21:55
To: [email protected]
Subject: Re: [TWS API] Python API. Getting historical data in paper trading but not in live account

?

Paper trading account shares same data feeding with a live account. you just can't login both account simultaneously



--
Best Regards,
Annie Yang
------------------------------------------
Cell: 647-667-3308
EMAIL: anniesilver@...


Re: Python API. Getting historical data in paper trading but not in live account

 

I should clarify I am not trying to log into both accounts at the same time. ?The python script is working on the paper trading account, but it is not working on the regular login. ?I have two accounts a margin account and a TFSA account, So I wonder if the program needs to specify a login account.


Allan in Toronto.
--
Allan in Toronto.


Re: Python API. Getting historical data in paper trading but not in live account

 

I should clarify I am not trying to log into both accounts at the same time. ?The python script is working on the paper trading account, but it is not working on the regular login. ?I have two accounts a margin account and a TFSA account, So I wonder if the program needs to specify a login account.


Allan in Toronto.