开云体育

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

Re: twsapi: automated login

Carl Erikson
 

A hack is to send keystrokes to the login window.
Pass your username as separate keystrokes. Then send
a tab key. Then send your password as separate
keystrokes. Then send a return. There is a setting
to pre-fill the username in the .ini file (sorry, no
pre-fill for the password):

[Logon]
Username=edemo

.
.
.

If you pre-filled in the username you can just send a
tab and then the password plus a return key. I send
characters to windows with Perl, but you can do it in
almost any language (Visual Basic, C++).

I believe you can detect when the "Accept incoming
connection" window pops up. If that is possible you
might just be able to send the enter key to it to
accept the connection. I haven't tried this yet.

Good luck,
Carl

--- Michel <migurull@...> wrote:
Hi,

Does somebody know some way to run the TWS
application unattended?
What I need is:
1- Avoid the login screen, passing parameters
(UserName and Password) from
my calling application.
2- Respond to the message window asking 'Accept
incoming connection
attempt?' when I connect to the local server.

This is because I'm writting my own program (Visual
Basic using TWS ActiveX)
which allways runs in the background and want it to
automatically launch TWS
few minutes before markets open and perform some
automated tasks when I'm
not at home.

I've tried to launch TWS from my application with a
call to 'ShellExecute',
passing parameters as 'username' or 'user' without
success. I always get the
login screen blank because I ignore if TWS accepts
such parameters and how
they must be coded (I think this must be possible
because in the web demo,
the login screen appears whith such fields
pre-filled with 'edemo' and
'demouser'). Perhaps in some 'ini' file? (I've not
found any section related
to username and password).

Thanks for any help.

Michel.



__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free


Re: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

Shukrainternationals
 

开云体育

Could download the program from the link site?
?

----- Original Message -----
Sent: Tuesday, July 02, 2002 1:56 PM
Subject: Re: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

?
Thanks, Traderguard.
?
Could someone who tries it post, please?? I'll feel better about running an executable after someone?confirms that it is safe.
?
Regards,
Aaron Schindler
Schindler Trading
?
?
----- Original Message -----
Sent: Tuesday, July 02, 2002 12:24 PM
Subject: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

--- In twsapi@y..., traderguard <no_reply@y...> wrote:
> 3th time:

sorry:
just go here then:





>




To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .

To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


Re: twsapi: LINK to: TraderGuard , IB TWS scalping tool

Shukrainternationals
 

开云体育

I have a feeling you may be playing games with people. Are you?
?

----- Original Message -----
Sent: Tuesday, July 02, 2002 1:21 PM
Subject: twsapi: LINK to: TraderGuard , IB TWS scalping tool

From the author:
"I am not a good trader. I need all the help I can get. There were no
good software to protect me... so I made one.. and it work for me.
Try it"
AMJ

2.00.7.exe


RE:
Addition to your existing IB TWS platform. I designed it for scalpers
to profit from every single trend change with "adaptive Automation
Engine" monitoring market tick by tick and in real time.
You will love it.
It will automate your profit collection at the topmost point and also
auto-escape from bad point of entry. This is what i like the most.








To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


RE : twsapi: Re: LINK to: TraderGuard

marinindextrader
 

Matt..........How in the world?

...I completeley agree with you on this post and your subsequent...

How in the world does something so simple end up using or being 23
MB???

A full install of Qcharts is 13 MB
A full install of Erlanger Quote is 9 MB
A full install of WealthLab is 13.5 MB
A full install of TWS is 5.3 MB


I wonder if this was not written using less then Pro VB and is not
optimized?

Anyway...

I believe that no one in their right mind is gonna fork over 150
bucks on a software that they are unable to test on the securities
they trade...hasn't been scrutinized and stressed by a beta
team...and appears to consume resources at a prodigious rate out of
step with the task it accomplishes...is a black box that has no
documentation, no help file, no accompanying test results on
performance....and whose install process attempts to overwrite
duplicate OCX instead of checking mereley for their instance in the
sys files...

etc etc

Hate to blow your bubble...sorry

Scott










--- In twsapi@y..., "Matt" <mbriand@i...> wrote:
Super....You can only trade GE and if you want to try it for NQ &
ES you
have
to pay 150 USD....

I don't trade GE and I am not interested in it. Why didn't you do a
demo
for NQ
or ES with a limit in time ???

that would have been far smarter....

-----Message d'origine-----
De : traderguard [mailto:no_reply@y...]
Envoyé : mardi 2 juillet 2002 19:25
? : twsapi@y...
Objet : twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool


--- In twsapi@y..., traderguard <no_reply@y...> wrote:
3th time:
sorry:
just go here then:







To unsubscribe from this group, send an email to:
twsapi-unsubscribe@y...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<> .


twsapi: Re: automated login

marinindextrader
 

Then again...if you do have the time...

he he

Or

If I get my hands on that code I will make a module for VB that plugs
in

Scott


--- In twsapi@y..., "Michel" <migurull@t...> wrote:
Thanks 'tripack44'.
If you dont have time, I dont need documentation, nor 'sanitized'
code. If
you want, just copy relevant parts of your code and I'll do with it.

Michel
-----Mensaje original-----
De: tripack44 [mailto:no_reply@y...]
Enviado el: martes, 02 de julio de 2002 14:49
Para: twsapi@y...
Asunto: twsapi: Re: automated login


I have a couple of programs that do this in VB. Unfortunately they
are coupled into larger programs or have ActiveX components. I may
try to strip out the relevent code "sanitize it", and put it into
a
project or two and write up some documentation if I find the time
during the coming weeks.


Re: twsapi: Re: automated login

Michel
 

开云体育

Thanks 'tripack44'.
If you dont have time, I dont need documentation, nor 'sanitized' code. If you want, just copy relevant parts of your code and I'll do with it.
?
Michel

-----Mensaje original-----
De: tripack44 [mailto:no_reply@...]
Enviado el: martes, 02 de julio de 2002 14:49
Para: twsapi@...
Asunto: twsapi: Re: automated login

I have a couple of programs that do this in VB. Unfortunately they
are coupled into larger programs or have ActiveX components. I may
try to strip out the relevent code "sanitize it", and put it into a
project or two and write up some documentation if I find the time
during the coming weeks.


RE : twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

traderguard
 

Sorry,
Yes check it..it's safe

but 1st:

1st: you asked for it via e-mail..
2nd: don't use it.. just delete it.. i do not want you kick my butt
after long work on this app. I'ts not for you..
Just use your charts..

good day.
AMJ




--- In twsapi@y..., "Matt" <mbriand@i...> wrote:
I can't confirm that it is safe so far...The file is huge for what
it
does which is a bit strange for me...

Don't like to see software from a guy that doesn't give his idea
and use
an alias and
super hyper marketing :)

Can someone check the TCP ports that it is using and the files he is
using to see if there is not
a trojan or a virus in it ?

Thanks

-----Message d'origine-----
De : Schindler Trading [mailto:schindlertrading@h...]
Envoyé : mardi 2 juillet 2002 19:57
? : twsapi@y...
Objet : Re: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool



Thanks, Traderguard.

Could someone who tries it post, please? I'll feel better about
running
an executable after someone confirms that it is safe.

Regards,
Aaron Schindler
Schindler Trading



----- Original Message -----
From: traderguard <mailto:no_reply@y...>
To: twsapi@y...
Sent: Tuesday, July 02, 2002 12:24 PM
Subject: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

--- In twsapi@y..., traderguard <no_reply@y...> wrote:
3th time:
sorry:
just go here then:








To unsubscribe from this group, send an email to:
twsapi-unsubscribe@y...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<> .



To unsubscribe from this group, send an email to:
twsapi-unsubscribe@y...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<> .


RE : twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

Matt
 

开云体育

I can't confirm that it is safe so far...The file is huge for what it does which is a bit strange for me...
?
Don't like to see software from a guy that doesn't give his idea and use an alias and
super hyper marketing :)
?
Can someone check the TCP ports that it is using and the files he is using to see if there is not
a trojan or a virus in it ?
?
Thanks

-----Message d'origine-----
De?: Schindler Trading [mailto:schindlertrading@...]
贰苍惫辞测é?: mardi 2 juillet 2002 19:57
??: twsapi@...
Objet?: Re: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

?
Thanks, Traderguard.
?
Could someone who tries it post, please?? I'll feel better about running an executable after someone?confirms that it is safe.
?
Regards,
Aaron Schindler
Schindler Trading
?
?
----- Original Message -----
Sent: Tuesday, July 02, 2002 12:24 PM
Subject: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

--- In twsapi@y..., traderguard <no_reply@y...> wrote:
> 3th time:

sorry:
just go here then:





>




To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .

To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


TR : twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

Matt
 

开云体育

Super....You can only trade GE and if you want to try it for NQ & ES you have
to pay 150 USD....
?
I don't trade GE and I am not interested in it. Why didn't you do a demo for NQ
or ES with a limit in time ???
?
that would have been far smarter....

-----Message d'origine-----
De?: traderguard [mailto:no_reply@...]
贰苍惫辞测é?: mardi 2 juillet 2002 19:25
??: twsapi@...
Objet?: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

--- In twsapi@y..., traderguard wrote:
> 3th time:

sorry:
just go here then:





>



To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


Re: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

Schindler Trading
 

开云体育

?
Thanks, Traderguard.
?
Could someone who tries it post, please?? I'll feel better about running an executable after someone?confirms that it is safe.
?
Regards,
Aaron Schindler
Schindler Trading
?
?

----- Original Message -----
Sent: Tuesday, July 02, 2002 12:24 PM
Subject: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool

--- In twsapi@y..., traderguard <no_reply@y...> wrote:
> 3th time:

sorry:
just go here then:





>




To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


Re: LINK to: TraderGuard , IB TWS scalping tool

traderguard
 

--- In twsapi@y..., traderguard <no_reply@y...> wrote:
3th time:
sorry:
just go here then:






LINK to: TraderGuard , IB TWS scalping tool

traderguard
 

From the author:
"I am not a good trader. I need all the help I can get. There were no
good software to protect me... so I made one.. and it work for me.
Try it"
AMJ

2.00.7.exe


RE:
Addition to your existing IB TWS platform. I designed it for scalpers
to profit from every single trend change with "adaptive Automation
Engine" monitoring market tick by tick and in real time.
You will love it.
It will automate your profit collection at the topmost point and also
auto-escape from bad point of entry. This is what i like the most.


Re: twsapi: TWS Error Handling

Robert Carey
 

开云体育

I've made over a hundred trades with the ActiveX and VB. So far the api hasn't thrown any errors.
One trade had an invalid order ID and was never executed. There was no error thrown by the API.
RCarey

----- Original Message -----
Sent: Tuesday, July 02, 2002 12:01 PM
Subject: twsapi: TWS Error Handling

Does anyone have a comprehensive list of all or most of the possible
error strings that are fed through Tws1_errMsg ?

It sure would be nice to have a full list and a cross refrence index
to handle errors...

A library of err text strings if you will that can be refrenced and
then acted on if necessary...very much akin to VB's own error
handling....

If TwsErr = 11 Then
? [do stuff]
Else
? [do other stuff]
EndIf


Scott



To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


TWS Error Handling

marinindextrader
 

Does anyone have a comprehensive list of all or most of the possible
error strings that are fed through Tws1_errMsg ?

It sure would be nice to have a full list and a cross refrence index
to handle errors...

A library of err text strings if you will that can be refrenced and
then acted on if necessary...very much akin to VB's own error
handling....

If TwsErr = 11 Then
[do stuff]
Else
[do other stuff]
EndIf


Scott


Re: automated login

tripack44
 

I have a couple of programs that do this in VB. Unfortunately they
are coupled into larger programs or have ActiveX components. I may
try to strip out the relevent code "sanitize it", and put it into a
project or two and write up some documentation if I find the time
during the coming weeks.

--- In twsapi@y..., "Michel" <migurull@t...> wrote:
Hi,

Does somebody know some way to run the TWS application unattended?
What I need is:
1- Avoid the login screen, passing parameters (UserName and
Password) from
my calling application.
2- Respond to the message window asking 'Accept incoming connection
attempt?' when I connect to the local server.

This is because I'm writting my own program (Visual Basic using TWS
ActiveX)
which allways runs in the background and want it to automatically
launch TWS
few minutes before markets open and perform some automated tasks
when I'm
not at home.

I've tried to launch TWS from my application with a call
to 'ShellExecute',
passing parameters as 'username' or 'user' without success. I
always get the
login screen blank because I ignore if TWS accepts such parameters
and how
they must be coded (I think this must be possible because in the
web demo,
the login screen appears whith such fields pre-filled with 'edemo'
and
'demouser'). Perhaps in some 'ini' file? (I've not found any
section related
to username and password).

Thanks for any help.

Michel.


Re: Modifying an order & testing

tripack44
 

--- In twsapi@y..., tripack44 <no_reply@y...> wrote:
Trailing stops take a bit of proper organization to work out
correctly. You need to keep track of entry price, whether it is a
buy
or sell, MaxPnL for the open position and the Trail Stop amount.
You
use live data to figure the MaxPnL. For a long position the Trail
stop price = Entry Price - MaxPnL.

Actually the formula if you are in a long position for setting your
trailing stop would be Stop Price = Entry Price + MaxPnL - Trail Stop
Amount


Re: twsapi: Trader Guard - ES NQ futures ready app.

Manuel Knospe
 

开云体育

I?m unable to download the prog anywhere...
?
Can you send it to me via eMail (i have enough space...)
Or can you give me the link to download it?
?
?
Thanks
?
Manuel
?

----- Original Message -----
Sent: Thursday, June 27, 2002 9:27 PM
Subject: twsapi: Trader Guard - ES NQ futures ready app.

Addition to your existing IB TWS platform. I designed it for scalpers
to profit from every single trend change with "adaptive Automation
Engine" monitoring market tick by tick and in real time.
You will love it.
It will automate your profit collection at the topmost
point and also auto-escape from bad point of entry. This is what i
like the most.
Download it from twsapi file area. I'll post it here within 3 days
(finishing GUI design only)
If you inpatient or file is not there for any reason e-mail request
to me. I'll be happy to send you a copy.


traderguard@...



To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


Re: another java dev here, UNIX/Linux questions...

 

--- In twsapi@y..., "rasears" <rasears@y...> wrote:
I'm curious about two things as I get started on my own Java
project involving IB and their API. First, I think I'm understanding
that you have to have TWS running locally and that the socket client
checkbox must be checked in order to use the API. Is this correct? It
seems it must be true because the API does not offer any login
support.
Correct. When you connect using the API, a dialog box pops up on the
client asking whether you want to accept the connection.

Second, does anyone have experience using the Linux/UNIX client or
the Linux/UNIX APIs? Love to hear about any potential problems there.
TWS is a Java app, so it is pretty much the same on Linux as
elsewhere. I've had no problems that appeared to be specific to Linux.


Ken


Re: java api, maximum number of requests at a time ?

gu6526
 

As previous replies suggested, IB should not be misused as a
data feed. For several resons it's not suitable for that.

But in your example, you can drop the disconnect/connect and
assign use new Contract Objects with the same TickerIDs. This way
you can retrieve an arbitrary number of quotes sequentially.

Gernot

--- In twsapi@y..., usernew <no_reply@y...> wrote:
I am using the Java API. When I send more than 40 or so requests
for
ticker info, I get the following exception:

Error: Max number of tickers has been reached.

Then I tried to do the following:

connect;
for(i=0, i < 40; i++) send requests;
capture info using event handlers;
disconnect;
connect;
for(i=0; i < 40; i++) send requests;
capture info using event handlers;
disconnect;
etc.

But the problem is each time there is a connect() call, someone
needs
to manually click on the "Yes" button on the dialog that
asks "Accept
incoming connection attempt?"

I want to be able to download info on few hundred tickers at a
time,
what should I do ?

Thanks in advance.


Re: WG: twsapi: java api, maximum number of requests at a time ?

Richard Foulk
 

I agree. Especially since IB doesn't provide all of the available quotes.

} I think this is something the API is probably not meant for.
} I think that IB wants to help their clients to do lots of profitable
} trades, and that?s why they developed TWS and the API.
}
} If you want to get a few hundred tickers at a time, my opinion is that you
} should subscribe a datafeed somewhere else. eSignal and PCQuote have API?s
} that might be useful to you.
} They are specialised on providing real time data.
}
} Marcus
}
} -----Ursprungliche Nachricht-----
} Von: usernew [mailto:no_reply@...]
} Gesendet: Monday, July 01, 2002 11:37 AM
} An: twsapi@...
} Betreff: twsapi: java api, maximum number of requests at a time ?
}
}
} I am using the Java API. When I send more than 40 or so requests for
} ticker info, I get the following exception:
}
} Error: Max number of tickers has been reached.
}
} Then I tried to do the following:
}
} connect;
} for(i=0, i < 40; i++) send requests;
} capture info using event handlers;
} disconnect;
} connect;
} for(i=0; i < 40; i++) send requests;
} capture info using event handlers;
} disconnect;
} etc.
}
} But the problem is each time there is a connect() call, someone needs
} to manually click on the "Yes" button on the dialog that asks "Accept
} incoming connection attempt?"
}
} I want to be able to download info on few hundred tickers at a time,
} what should I do ?
}
} Thanks in advance.