Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Twsapi
- Messages
Search
Modify Order Without Transmit
I am trying to modify an order without transmitting it. However, TWS
transmits the order on the update, even with the Transmit property False. I am using VB with the ActiveX control, and the TWS demo for testing. Here is the scenario: o Call PlaceOrder to place a buy limit order, no transmit. This works. Let's say the order ID is 72. o Call PlaceOrder again with the same order ID (72), changing the limit price, again with no transmit. The limit price is changed in TWS, but TWS transmits the order. Any ideas? Thanks |
Re: Tip for Yahoo Users Email Managment
marinindextrader
Dude....it should route all other mail to the "other folder", this
mail should route to the in box direct.... Your banned heheheh LOL just kidding Scott --- In twsapi@y..., "techguy1313" <techguy1313@y...> wrote: If you are a Yahoo Email User, the following tip may help youmanage the intense mail flow from this User Group.Folder you would like your mail delivered to, i.e. TWSAPI Yahoo GroupMail. <OK>.mail will now route to this folder. |
Tip for Yahoo Users Email Managment
techguy1313
If you are a Yahoo Email User, the following tip may help you manage
the intense mail flow from this User Group. Set an Email Mail Management filter to route Group Mail to an individual folder: 1. From the Yahoo Mail Sidebar, click on Options. 2. Select Filters from under the Mail Management Header. 3. Select Create. 4. Go to: Subject <contains> the phrase <twsapi>. 5. Select Deliver Message to <New Folder>. 6. An Explorer User Prompt will pop up. Put in the name of the Folder you would like your mail delivered to, i.e. TWSAPI Yahoo Group Mail. <OK>. The Filter list will now show your new routing filter. All Group mail will now route to this folder. Hope this helps un-clutter your life. |
Re: twsapi: automated login
marinindextrader
This thread has been archived in the Bookmarks Section, within the
Board Threads Folder. From time to time exhaustive discussions that stay on topic will be archived to this folder. Scott --- In twsapi@y..., "David" <kotomo@p...> wrote: Thanks tripack44it up and finally just bought a router. Life is so much simpler now.Service. |
Re: twsapi: automated login
David
toggle quoted message
Show quoted text
|
Re: twsapi: automated login
tripack44
No, a while back I tried that but it was a no-go with TWS. I gave it
toggle quoted message
Show quoted text
up and finally just bought a router. Life is so much simpler now. --- In twsapi@y..., "David" <kotomo@p...> wrote:
Also, anyone running Proxy succesfully?? (Proxy from AnalogX) |
Re: twsapi: Re: automated login
ax
Possible alternative to WinTask?
toggle quoted message
Show quoted text
----- Original Message -----
From: "bee_jay_61" <no_reply@...> To: <twsapi@...> Sent: Wednesday, July 03, 2002 5:41 AM Subject: twsapi: Re: automated login Voila ;-) To unsubscribe from this group, send an email to: twsapi-unsubscribe@... Your use of Yahoo! Groups is subject to |
Re: twsapi: automated login
David
toggle quoted message
Show quoted text
|
Re: twsapi: automated login
bee_jay_61
That?s why I start a new separate thread in my program to confirm
the "Accept incomming connection attempt" dialog. First I start the thread that searches the window for about 60 seconds (or more if you need). Than I call TWS.Connect from the main thread while the child thread has allready began his search. This call will force the TWS to display the dialog and than the child thread can find this window. So the main thread (main program) is never blocked like in your case. It is not a security feature from IB. BeeJay --- In twsapi@y..., "Michel" <migurull@t...> wrote: Thanks Carl.the login window but with the 'connection confirmation' window there arevarious problems.try to send it keys (SendKey) (ENTER key in this case).dont return to your calling program until you manually click 'Yes' or 'No' inthis window so any code after 'connect' (AppActivate and SendKeys),simply dont execute.window) 3- Tempo 1 second.and/or send keys. (It works if TWS is runing normally, but not whenpresenting the 'connection confirmation' window)!reason to be sure that a connection to the program is really made by theaccount owner. (There is a security problem if you automate login andconnection because everybody having your program or access to your PC canconnect to your account). |
Re: twsapi: automated login
David
开云体育Michel,
what bee-jay-61 has done it was using Win Api's not the VB
code itself.
I'll post the code after i get around my problems and have
more time to do it.
Also, anyone running Proxy succesfully?? (Proxy from
AnalogX)
That's why I don't have the time.
David
|
Re: twsapi: Re: automated login
Michel
toggle quoted message
Show quoted text
|
TraderGuard- Important Message
traderguard
I am honestly upset at some of the comments written about
TraderGuard. It seems as though instead of checking the program's abilities and value, some are discussing irrelevant issues, such as the size of the program, speculations of hidden trojans, and other hidden agendas. Let me respond to some of those comments: The demo version on the website is there to be tested and evaluated for those interested. It does not need to be tested on NQ or ES for people to find out if this is a usefull tool or worthless crap. TraderGuard consumes resources because it's actually working to cover your butt. Yes, it's a black box with no documentation BECASUE..as you should already know by now, I haven't had time to do it. I was looking for user feedback so the next version of the program would include FAQ. Yes, it tries to overwrite OCX, but it in no way shape or form affects the program's real time performance. Enough with the unconstuctive criticisms. Now to the other side of the coin. Thanks to all those who responded with enthusiasm, complementing TG's features. Yes, I will make sure that you get the new updates as I am making improvements. AS far as timing...it's real time...no delays. I will make the buttons bigger if you really want that. GE, ES, and NQ are not the only symbols...With the FULL Version you can type in and trade any symbol you like as long as you receive data via IB TWS. Yes, autosale will disable itself if you uncheck the checkbox. There is no safe point of entry...it's up to you to decide when you jump into a trade. I was not planning to write the impossible. If I could do that, I would write a program to show a chart of tomorrow today. new link again AMJ |
Re: twsapi: Re: automated login
Michel
开云体育I'll
look at it... but as I explain in another post, I have some problems with this
solution but need more time, perhaps I' m wrong in
something.
Thanks.
?
Michel.
|
Re: twsapi: Re: automated login
Michel
开云体育Seems
a good reason to expain this problems...
|
Re: twsapi: Re: automated login
Michel
开云体育Qu'est
que c'est 'WINTASK'? Where can I find it?
|
Re: twsapi: automated login
Michel
开云体育Thanks
Carl.
I've
tried it in VB but it does not work.?I've not tried it with the login
window but with the 'connection confirmation' window there are various
problems.
In my
code, first I pass the focus to TWS (AppActivate) and then I try to send it keys
(SendKey) (ENTER key in this case).
First problem is when in your code you
issue a connection command (ActiveX.connect), TWS seems to catch you in a
program loop and dont return to your calling program until you manually click
'Yes' or 'No' in this window so any code after 'connect' (AppActivate and
SendKeys), simply dont execute.
To
turn around this problem, I made a separate litle?application
(IBActivation.exe) which simply makes this:
1-
Tempo 1 second.
2-
AppActivate "Stock and options..." (this is the title of the TWS
window)
3-
Tempo 1 second.
4-
SendKeys "{ENTER}"
Then
in my main code:
ShellExecute "IBActivation.exe"
TWS.connect
...
and get a system error when IBActivation.exe tries to activate and/or send keys.
(It works if TWS is runing normally, but not when presenting the 'connection
confirmation' window)!
So I
thought this behaviour was implemented by IB for some security reason to be sure
that a connection to the program is really made by the account owner. (There is
a security problem if you automate login and connection because everybody having
your program or access to your PC can connect to your
account).
?
Here I
am...
I'll
try this for the login window and post results here.
?
Thanks
again.
Michel.
?
[Michel]??-----Mensaje original----- De: Carl Erikson [mailto:carlerikson@...] Enviado el: martes, 02 de julio de 2002 22:24 Para: twsapi@... Asunto: Re: twsapi: automated login A hack is to send keystrokes to the login window. |
AW: twsapi: Retrieving Market Depth from TWS
开云体育Again,
I think that makes sense to use a datafeed provider if you want to get market
data. eSignal and PCQuote are specialised on providing realtime datafeed and
both have an API.
?
Marcus
|
Re: twsapi: Retrieving Market Depth from TWS
Michel
开云体育I
asked IB about this, and they tell me they have no plans to incorporate Level 2
access through the API. Perhaps some solution capturing messages to this window
but more dificult and risky because this can change at any moment without
notice.
?
Michel.
|
Re: automated login
bee_jay_61
In my program I have automated the "Logon"- and "Accept incomming.."-
Dialog. For both dialogs I search the desired window. If the window isn?t found within 60 seconds the function stops. So my program will never hang if the TWS window doesn?t appear for any reason. I use the following Delphi Code to find the "Accept incomming.." Dialog: function EnumWinProc(WinHandle: HWND; lParam: LPARAM): boolean; StdCall; var szName: array[0..512] of char; begin Result := True; GetClassName(WinHandle, szName, 255); if UpperCase(szName) = 'SUNAWTDIALOG' then begin GetWindowText(WinHandle, szName, 255); if UpperCase(szName) = 'TRADER WORKSTATION' then begin if IsWindowVisible(WinHandle) then begin TwsWindow := WinHandle; Result := False; end; end; end; end; For the "Logon"_Dialog you have to search for classname "SUNAWTFRAME" and windowtext "NEW LOGIN". When the window is found then I sent a "Carriage Return" to the "Accept incomming connection attempt"-Dialog or twice a "Tab" and a "Carriage Return" to the "Logon"-Dialog. To find out if there is any easy way (of corse you can pre-fill the fields by sending the values for Username and Password in the same way like "Carriage Return" and "Tab") to pre-fill the Username and Password fields I decompiled the "Trader Workstation" (this is possible because the TWS is written in JAVA). I found the following code: public static void main(String args[]) { if(args.length < 1) { System.out.println("USAGE: java jclient.LoginFrame srcDir"); System.out.println(" --- or ---"); System.out.println(" java -jar jts.jar srcDir"); System.exit(0); } Thread.currentThread().setName("JTS-Main"); String s = args[0] + System.getProperty("file.separator"); System.setProperty("srcDir", s); String s1 = System.getProperty("srcDir") + "jts.ini"; a(s); String s2 = new String(); fl fl1 = new fl(); er er1 = new er(fl1, "Communication", "Peer", null); er er2 = new er(fl1, "Communication", "LocalPort", 0); er er3 = new er(fl1, "Communication", "ShouldClose", true); er er4 = new er(fl1, "Logon", "Username", ""); er er5 = new er(fl1, "Logon", "Password", ""); er er6 = new er(fl1, "Communication", "Debug", false); er er7 = new er(fl1, "GUI", "LookAndFeel", "Metal"); er er8 = new er(fl1, "Communication", "Compression", true); er er9 = new er(fl1, "Logon", "UseAnotherEncryption", false); if(!fl1.a(s1)) { ek.b(null, "jts.ini file could not be read"); return; } String s4 = er1.a(); if(s4 == null) { ek.b(null, "No peer entry in jts.ini file"); return; } int i = s4.indexOf(':'); if(i == -1) { ek.b(null, "Invalid peer entry in jts.ini file"); return; } else { String s3 = s4.substring(0, i); int j = Integer.parseInt(s4.substring(i + 1)); int k = er2.b(); boolean flag = er3.c(); go go1 = new go(s3, j, k, er4.a(), er5.a(), false, flag, null, er6.c(), er7.a(), er8.c(), er9.c()); go1.setLocation(400, 200); go1.setTitle("New Login"); go1.setSize(250, 174); go1.setDefaultCloseOperation(2); go1.show(); return; } So I add the following to the JTS.INI file to pre-fill UserName and Password: [Logon] Username=edemo Password=demouser I do add these lines from my program every time before I start the TWS with "ShellExecute" because I have more than one user. All this works fine for me. BeeJay --- In twsapi@y..., "kevin6502" <kevin6502@y...> wrote: There is an entry in the IB board that addresses this. The solutionup. The trick is knowing which window(dialog box) to send it to. HisIB towouldn't be able to differentiate its professional service (whichwrote: dopassthis, me being one of them... accountthrough. Seems so archaic to have to have a TWS open for eachwe log on to... |
to navigate to use esc to dismiss