¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: twsapi: Re: VB and ActiveX....updateExtended() Method????

Elliot Lee
 

On 2002-06-18 9:13, "BrianL_98" <brianl_98@...> wrote:

The IB documentation for OCA orders via the TWS API is pretty thin.
The only thing I can find is that the string OCA property "identifies
an OCA group."

Does anyone know how to go about actually placing OCA orders using
this property? Am I supposed to submit two orders, and then change
the OCA property to include the order id of each of the orders?
As with many features, OCA functionality is parallel in the API and the GUI,
so reading the TWS docs on this would be a good idea.

The OCA string is an identifier assigned by you to group orders together. If
an order with an OCA string set is executed or cancelled, all other orders
with the same string will be cancelled.
-- Elliot


Re: twsapi: Looking for a complete guide/consultancy on setting up a conditional order

Todd Turner
 

Hi there,

I have written a program that meets some of your
requirements.



todd


--- ibwin2k <ibwin2k@...> wrote:
Hi guys,

I am a new IB user, a futures daytrader and have no
idea on
programming. After looking the simple user guide
from IB website, I
can do nothing with those sample spreadsheets. I
post here to see if
any expert here could help me to set up a
conditional order and to re-
organize TWS presentation. A reasonable amount of
consultancy fee
will be given. (Price could be referred to similar
projects on those
online auction website,like RentACoder). Here are
the requirements:

Futures only, less than 10 symbols from different
Exchanges, any type
of APIs is Ok (reliabity & speedy are the most
important)

Within a SINGLE PAGE, in addition to general
features as TWS, like
Order Status, Account Info, Execution Info, contract
Description &
Market Data, the most important is,
allowing a Conditional order with 2 order types: a
Buy/Sell market
order, Stop Order with aux. price which is based on
avg. Buy/Sell
prices, default order sizes are allowed for
different symbols.

My idea is, Single page to see all info I want, and
single
click/hotkey to complete in/out, (of course, if
cancel/modify, extra
key is needed)

Anyone interested, please reply here or email to me
at
ibwin2k@.... Thanks in advance.

Regards,
Char.






__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup


Re: VB and ActiveX....updateExtended() Method????

BrianL_98
 

The IB documentation for OCA orders via the TWS API is pretty thin.
The only thing I can find is that the string OCA property "identifies
an OCA group."

Does anyone know how to go about actually placing OCA orders using
this property? Am I supposed to submit two orders, and then change
the OCA property to include the order id of each of the orders?

thanks,
Brian


--- In twsapi@y..., bee_jay_61 <no_reply@y...> wrote:
--- In twsapi@y..., mickjenks <no_reply@y...> wrote:
Anyone know if the updateExtended() method is still part of the
ActiveX/VB? If not, how does one implement the extended order
properties such as tif, oca, and transmit? I am new to
programming
and just trying to work my way through this stuff. Any help is
appreciated.
I guess updateExtended() method doesn?t exist anymore. BTW: never
heard about it.

You can set TIF, OCA, Transmit etc. directy. These are the ActiveX
properties.

I am not a VB programmer, I love Delphi


Looking for a complete guide/consultancy on setting up a conditional order

ibwin2k
 

Hi guys,

I am a new IB user, a futures daytrader and have no idea on
programming. After looking the simple user guide from IB website, I
can do nothing with those sample spreadsheets. I post here to see if
any expert here could help me to set up a conditional order and to re-
organize TWS presentation. A reasonable amount of consultancy fee
will be given. (Price could be referred to similar projects on those
online auction website,like RentACoder). Here are the requirements:

Futures only, less than 10 symbols from different Exchanges, any type
of APIs is Ok (reliabity & speedy are the most important)

Within a SINGLE PAGE, in addition to general features as TWS, like
Order Status, Account Info, Execution Info, contract Description &
Market Data, the most important is,
allowing a Conditional order with 2 order types: a Buy/Sell market
order, Stop Order with aux. price which is based on avg. Buy/Sell
prices, default order sizes are allowed for different symbols.

My idea is, Single page to see all info I want, and single
click/hotkey to complete in/out, (of course, if cancel/modify, extra
key is needed)

Anyone interested, please reply here or email to me at
ibwin2k@.... Thanks in advance.

Regards,
Char.


Re: VB and ActiveX....updateExtended() Method????

bee_jay_61
 

--- In twsapi@y..., mickjenks <no_reply@y...> wrote:
Anyone know if the updateExtended() method is still part of the
ActiveX/VB? If not, how does one implement the extended order
properties such as tif, oca, and transmit? I am new to programming
and just trying to work my way through this stuff. Any help is
appreciated.
I guess updateExtended() method doesn?t exist anymore. BTW: never
heard about it.

You can set TIF, OCA, Transmit etc. directy. These are the ActiveX
properties.

I am not a VB programmer, I love Delphi


VB: Get Open High Low Close as Project

marinindextrader
 

Re Posted the Get Open High Low Close BAS Module as a project. There
was an minor error in the code.

Sorry for the double posting. Next time I will take more time to beat
on it before I post it.

Download from the files section here if interested:



Scott


Extended order attributes and placeOrder() method

mickjenks
 

Regarding the question in my previous post regarding the
updateExtended() event. To clarify, how does one specify the extended
properties such as tif, oca, transmit, etc when placing the order? I
don't know how to specify this info with the placeOrder() method so
is there another way that this info is specified. I can successfully
submit orders from a VB program to TWS, but can yet have the above
mentioned extended properties attached to order. Thanks for any help.


Mick


VB and ActiveX....updateExtended() Method????

mickjenks
 

Anyone know if the updateExtended() method is still part of the
ActiveX/VB? If not, how does one implement the extended order
properties such as tif, oca, and transmit? I am new to programming
and just trying to work my way through this stuff. Any help is
appreciated.


Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

Louis
 

¿ªÔÆÌåÓý

With VB I'd rather use the winsock control directly.
I found some bugs with the?INET control. I think this
happened in asynchronous mode.
?
Here is a good site on how to use the winsock control :
?

----- Message d'origine -----
·¡²Ô±¹´Ç²â¨¦?: vendredi 14 juin 2002 20:06
Objet : RE: TWSAPI: General: Anyone know how to refrence a webpage and read it?

Its easy to do. In VB look at the internet transfer control in the docs (ITC).? Basically you include the ITC on your form and execute something similar to:
?
dim s as string
s = inet1.openurl("html")
?
In C++ you would use the wininet dll.? the ITC is an OCX wrapper around the wininet.dll.?
?
There are other techniques using the browser as a control and then reading the contents (mshtml), but these are the easiest techniques in my opinion.? Once you have the data, parsing is straightforward.
?
... Dan


Re: DDE Linking Excel Dircectly to Excel across network

marinindextrader
 

GoldSilverMana: This may help...


From Dale on another board:

I'm not sure this is exactly what you want, but have you considered
Synmantec's pcAnywhere product? I use it to remotely view and
control a PC across town and believe it can perform the same function
on a network.

Dale

From DB on another board:

Along the same lines, I use VNC to view several "trading" computers
from my laptop. It's free and it does the job.



DB





--- In twsapi@y..., "goldensilvermana" <kybryan@c...> wrote:
I am trying to determine if this is possible, here are some
questions
I have.
Here what I would like to accomplish: Have TWS running with a
spreadsheet monitoring data with conditional orders. I want to run
a
spreadsheet remotely on another machine that will allow me to
monitor
the excel instance connected to TWS. This will enable me to have
alarms set remotely and have the ability to send changes from one
excel instance to another.

#2 less desired option have DDE server to link between them

Would appreciate any help on this goal.

Kent


Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

marinindextrader
 

Gernot Wrote: "I hope this comments are of some value ¨C or is this
forum just a VB/Excel training camp. In that case I would stop
posting."

Your posts are totally welcome.......

Scott




--- In twsapi@y..., gernot.ullrich@t... wrote:
David,

Can you look inside the java window using perl and parse it?
No way if they use pure Java, because the Java GUI isn't tightly
integrated with the MS Windowing system. If the Java App doesn't
provide help it's even hard to print a Java Panel. You might
consider
this a bad thing, but it's done by purpose to make the GUI
independent
from the OS and to give the application all the control over the
data.

If you have access to the Java Source of the App (you might try to
re-generate it from the binary which is sometimes possible but in
most
cases illegal), you may add code to split off the desired data.
Just
for fun I tried it on the IB client long ago. It worked but I would
not
recommend this to the public.

I don't think it's a good idea to rely on some output format anyhow,
because this layer usually is fastest changing part of any
application.
Perl certainly is an good tool to read HTML streams and parse text
data
because it has so nice pattern matching facilities. It's easy to do
this
in Java as well.

I hope this comments are of some value ¨C or is this forum just a
VB/Excel training camp. In that case I would stop posting.

Gernot
-----±«°ù²õ±è°ù¨¹²Ô²µ±ô¾±³¦³ó±ð Nachricht-----
Von: David [mailto:kotomo@p...]
Gesendet: Friday, June 14, 2002 10:50 PM
An: twsapi@y...
Betreff: Re: TWSAPI: General: Anyone know how to refrence a webpage
and
read it?
Wichtigkeit: Hoch

Richard,
dont know Perl but Daniel is spot on for VB and VC..
Now, in Perl can you look at Java Window and parse it?
To give you an example - in VB i find JAva window through API's and
copy
the content and parse it. Fortunately it is in text format. It is an
awkward step as you need to focus mouse on that window.
Can you look inside the java window using perl and parse it?
I just need direction - if yes i will learn about it.
Thanks
David

----- Original Message -----
From: Richard Foulk <mailto:richard@s...>
To: twsapi@y...
Sent: Saturday, June 15, 2002 1:24 AM
Subject: Re: TWSAPI: General: Anyone know how to refrence a webpage
and
read it?

} Does anyone know how to refrence a webpage and read its content
} programatically?
}
} A friend of mine was able to read the CME settlement page and get
the
} settlement price for SPoos and Noodles using ensign charting
scripts
}
} Here is the site:
}
}
.
} html
}
} It apparently is in a delimited format and can be read. Any ideas
on
} how to do that in VB or C++
}
} Useful for including Net change in your spreadsheets, without
relying
} on a secondary feed or manual entry.
}
} Scott
}

I do that stuff in Perl all the time.

BTW: just got some stuff back from IB ... they say they sample
quotes
every .7 seconds. So I guess the filtering isn't very complex ...

Oh and Noodles? Are you from Jay's Smurf room? :-)


Richard

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: time stamps

Daniel Rosen
 

¿ªÔÆÌåÓý

Scott, I downloaded and installed QCharts, but can't find the OCX.? Did it come as part of the install?? If so, what is it called?
?
... Dan
?

-----Original Message-----
From: marinindextrader [mailto:marinindextrader@...]
Sent: Wednesday, June 12, 2002 3:35 PM
To: twsapi@...
Subject: [twsapi] Re: time stamps

There aint squat for docs and if you email Qcharts they just say
unless your a QDP member they wont give you support. You can use the
object browser on the OCX but it will appear greek unless you know
what your dealing with...It will expose all the Objects, Properties
and Methods...thats how I started with it...

When I got close I was able to get a little help and put the pieces
together...

I can help you ....


Scott



--- In twsapi@y..., "Daniel Rosen" wrote:
> Scott, Thanks for the info.? Looks like Qcharts is just what I need.
> Can I assume that just looking at the typelib of their OCX is
sufficient
> for figuring it out, or is their some docs?
>?
> ... Dan
>?
>
> -----Original Message-----
> From: marinindextrader [mailto:marinindextrader@y...]
> Sent: Wednesday, June 12, 2002 12:52 PM
> To: twsapi@y...
> Subject: [twsapi] Re: time stamps
>
>
> I am using the Qcharts OCX and Qcharts feed. I am not part of the
QDP
> developers group...too expensive...but I am a paying member for
their
> regular live data service.
>
> I have their OCX and have code that calls for the data. There OCX
> registers as a result of Qcharts installation, and the object,
> property and method syntax can be had.
>
> There has been change in the wind at Q with the switch from Qfeed
to
> QDP for deveolopers, and on top of that, you will still need a Live
> Data subscription. QDP is delayed, but also includes 24 hour
> simulators allowing for testing outside of normal market hours....
>
> QDP has an initiation fee of 300 bucks, costs 160 bucks a month,
and
> you will need another 80-150 for live data per month! Can you
believe
> that?
>
> Qcharts and Lycos Pissed alot of people off when they instituted
the
> QDP program....I understand quite a few folks just said screw it
and
> either abandoned QCharts data for further developement, or bailed
> altogether....
>
> You can also grab DDE data from Q if you want under the normal
> subscription....thier DDE feed and thier XLS plug-in do not use VBA
> from what I can tell...it looks like all XLS type scripts...
>
> Of course you will need Qcharts membership...starts at 80 bucks +
> exchange fees. Emini is available for 10 bucks.
>
> TAL has an excellent developers program, and a very reliable feed
> from what I understand...more than I can say for Q. Bit pricey
though.
>
> Scott??
>
>
> --- In twsapi@y..., "Daniel Rosen" wrote:
> > Which data provider do you use that has an ActiveX component?
> >?
> > ... Dan
> >?
> >
> > -----Original Message-----
> > From: marinindextrader [mailto:marinindextrader@y...]
> > Sent: Wednesday, June 12, 2002 10:34 AM
> > To: twsapi@y...
> > Subject: [twsapi] Re: time stamps
> >
> >
> > At the risk of being redundent...
> >
> > Yes it lacks time stamps and there are implications to this.
> >
> > First off tickPrice and tickSize do NOT pulse concurentley.
> > Early on with my developement I crafted a TOS (time of sales)
grid.
> > When I logged on to try it out, the size and price columns
quickley
> > got out of sync.
> >
> > Both tickPrice and tickSize only pulse when there is a change. To
> do
> > so otherwise would in essence make IB a data provider.
> >
> > I for one do not want to see IB turn into a data provider.
> >
> > I simply included an ActiveX component from my data provider and
> was
> > able to bring in a secondary feed. I can now print a TOS grid,
and
> > compare Last from two sources if desired...
> >
> > Scott
> >
> >
> >
> >
> > --- In twsapi@y..., tripack44 wrote:
> > > You're right. It doesn't have time stamps or cumulative volume.
> > >
> > >
> > > --- In twsapi@y..., Richard Foulk wrote:
> > > > Aloha,
> > > >
> > > > The API appears not to support time stamps on quotes.? Is
this
> > > correct?
> > > > Or did I miss it?
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Richard
> >
> >
> > 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
> > <> .
>
>
>
> Yahoo! Groups Sponsor?????
>
> ADVERTISEMENT
>?
>
<
05
> 632198:HM/A=1079284/R=0/*>
?????
>?
> <
M=226676.2052966.3526627.1992722/D=egrou
> pmail/S=1705632198:HM/A=1079284/rand=559238288> ?????
>
> 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@...



Your use of Yahoo! Groups is subject to the .


AW: TWSAPI: General: Anyone know how to refrence a webpage and read it?

 

¿ªÔÆÌåÓý

David,

?

>> Can you look inside the java window using perl and parse it?

?

No way if they use pure Java, because the Java GUI isn¡¯t tightly integrated with the MS Windowing system.? If the Java App doesn¡¯t provide help it¡¯s even hard to print a Java Panel.? You might consider this a bad thing, but it¡¯s done by purpose to make the GUI independent from the OS and to give the application all the control over the data.

?

If you have access to the Java Source of the App (you might try to re-generate it from the binary which is sometimes possible but in most cases illegal), you may add code to split off the desired data.? Just for fun I tried it on the IB client long ago. It worked but I would not recommend this to the public.

?

I don¡¯t think it¡¯s a good idea to rely on some output format anyhow, because this layer usually is fastest changing part of any application.? Perl certainly is an good tool to read HTML streams and parse text data because it has so nice pattern matching facilities. It¡¯s easy to do this in Java as well.

?

I hope this comments are of some value ¨C or is this forum just a VB/Excel training camp. ?In that case I would stop posting.

?

Gernot

-----±«°ù²õ±è°ù¨¹²Ô²µ±ô¾±³¦³ó±ð Nachricht-----
Von: David [mailto:kotomo@...]
Gesendet
:
Friday, June 14, 2002 10:50 PM
An: twsapi@...
Betreff: Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?
Wichtigkeit: Hoch

?

Richard,

dont know Perl but Daniel is spot on for VB and VC..

Now, in Perl can you look at Java Window and parse it?

To give you an example - in VB i find JAva window through API's and copy the content and parse it. Fortunately it is in text format. It is an awkward step as you need to focus mouse on that window.

Can you look inside the java window using perl and parse it?

I just need direction? - if yes i will learn about it.

Thanks

David

?

----- Original Message -----

Sent: Saturday, June 15, 2002 1:24 AM

Subject: Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

?

} Does anyone know how to refrence a webpage and read its content
} programatically?
}
} A friend of mine was able to read the CME settlement page and get the
} settlement price for SPoos and Noodles using ensign charting scripts
}
} Here is the site:
}
}
} html
}
} It apparently is in a delimited format and can be read. Any ideas on
} how to do that in VB or C++
}
} Useful for including Net change in your spreadsheets, without relying
} on a secondary feed or manual entry.
}
} Scott
}

I do that stuff in Perl all the time.

BTW:? just got some stuff back from IB ... they say they sample quotes
every .7 seconds.? So I guess the filtering isn't very complex ...

Oh and Noodles?? Are you from Jay's Smurf room?? :-)


Richard

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: General: Anyone know how to refrence a webpage and read it?

Richard Foulk
 

I haven't used Perl to parse Java. But it's a good tool for parsing
all kinds of text, as in the original question.


Richard

} Richard,
} dont know Perl but Daniel is spot on for VB and VC..
} Now, in Perl can you look at Java Window and parse it?
} To give you an example - in VB i find JAva window through API's and copy th
} e content and parse it. Fortunately it is in text format. It is an awkward
} step as you need to focus mouse on that window.
} Can you look inside the java window using perl and parse it?
} I just need direction - if yes i will learn about it.
} Thanks
} David
}

} ----- Original Message -----
} From: Richard Foulk=20
} To: twsapi@...=20
} Sent: Saturday, June 15, 2002 1:24 AM
} Subject: Re: TWSAPI: General: Anyone know how to refrence a webpage and r
} ead it?
}
}
} } Does anyone know how to refrence a webpage and read its content
} } programatically?
} }
} } A friend of mine was able to read the CME settlement page and get the
} } settlement price for SPoos and Noodles using ensign charting scripts
} }
} } Here is the site:
} }
} } .
} } html
} }
} } It apparently is in a delimited format and can be read. Any ideas on
} } how to do that in VB or C++
} }
} } Useful for including Net change in your spreadsheets, without relying
} } on a secondary feed or manual entry.
} }
} } Scott
} }
}
} I do that stuff in Perl all the time.
}
} BTW: just got some stuff back from IB ... they say they sample quotes
} every .7 seconds. So I guess the filtering isn't very complex ...
}
} Oh and Noodles? Are you from Jay's Smurf room? :-)
}
}
} Richard


General: Request for sharing code

Amit Kulkarni
 

Hello:
I need help in coding a conditional execution in Excel. If one of my
OCA orders execute, I need to determine which one and then fire off a
stop loss and my main order. I read somebody saying they have code for
conditional execution in Excel. Willing to share? I just know Java.

Thanks

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup


Re : General: Anyone know how to refrence a webpage and read it?

Amit Kulkarni
 

Scott:
Get wget & perl



wget -O cmeprices.html
"

perl html2text cmeprices.html

then use this script to remove those HTML tags...
And then parse using one of Jan/Feb/Mar/Apr strings...

HTH

#!/usr/bin/perl
######################################################################
# HTML to text converter Version 1.01 #
# Copyright 1999 Frederic TYNDIUK (FTLS) All Rights Reserved. #
# E-Mail: tyndiuk@... Script License: GPL #
# Created 06/30/99 Last Modified 06/30/99 #
# Scripts Archive at: #
######################################################################
# Function : #
# Suppress All HTML TAGs in a file. #
######################################################################
##################### license & copyright header #####################
# #
# Copyright (c) 1999 TYNDIUK Frederic #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License as #
# published by the Free Software Foundation; either version 2 of #
# the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program in the file 'COPYING'; if not, write to #
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, #
# Boston, MA 02111-1307, USA, or contact the author: #
# #
# TYNDIUK Frederic <tyndiuk@...> #
# <> #
# #
################### end license & copyright header ###################
######################################################################
$Version = "1.01";
$Copyright = "HTML to Text converter v$Version (C) 1999 Frederic
TYNDIUK (alias FTLS)&#92;n";
$Copyright .= "Report bugs to tyndiuk&#92;@ftls.org, News and Updates:
;n";
$NameResultFile = $BgColor = "";
$UsePre = $No = 0;


# En: Check Args
# Fr: Verification des aguments
while ($ARGV[0] =~ /^-/) {
if (($ARGV[0] eq "-r") || ($ARGV[0] eq "--result")) {
shift(@ARGV); if($ARGV[0]) { $NameResultFile = $ARGV[0];
$NameResultFile =~ s/&#92;.txt//;} }
if (($ARGV[0] eq "-v") || ($ARGV[0] eq "--version")) { print
$Copyright; exit; }
if (($ARGV[0] eq "-h") || ($ARGV[0] eq "--help")) { &Usage(); }
shift(@ARGV);
}

if (@ARGV < 1) {
&Usage;
}

while ($ARGV[0] ne "") {
$SourceFile = $ARGV[0];
if ($NameResultFile eq "") {
$ResultFile = $SourceFile;
$ResultFile =~ s/&#92;.&#92;w*//;
} else {
$ResultFile = $NameResultFile;
}
if (($No > 0) && ($NameResultFile ne "")) {
$ResultFile .= "-".$No;
}
$No++;
$ResultFile .= ".txt";
&html2txt($SourceFile, $ResultFile);
shift(@ARGV);
}

sub html2txt {
my($SourceFile, $ResultFile) = @_;
my($HTML, @HTMLPage, $SymbLine, $ascii, $html);

open(FILE, "$SourceFile") || die("Cannot open HTML source file :
$SourceFile, Error $!&#92;n");
@HTMLPage = <FILE>;
close(FILE);

$HTML = join("", @HTMLPage);
($Head, $HTML) = split(/<&#92;/HEAD>/i, $HTML);

$HTML =~ s/&nbsp;/ /g;
$HTML =~ s/&#92;s&#92;s*/ /g;
$HTML =~ s/<p[^>]*>/&#92;n&#92;n/gi; #<p> -> &#92;n&#92;n
$HTML =~
s/<br>|<&#92;/*h[1-6][^>]*>|<li[^>]*>|<dt[^>]*>|<dd[^>]*>|<&#92;/tr[^>]*>/&#92;n/gi;

# <br> or <H*> or <li> or </tr> or <dt> or <dd> -> &#92;n
$HTML =~ s/(<[^>]*>)*//g;
$HTML =~ s/&#92;n&#92;s*&#92;n&#92;s*/&#92;n&#92;n/g;
$HTML =~ s/&#92;n */&#92;n/g;
foreach $SymbLine (&HTMLSymb) {
($ascii, $html) = split(/&#92;s&#92;s*/,$SymbLine);
$HTML =~ s/$html/$ascii/g;
}

# En: Write result file
# Fr: Ecrit le fichier resultat
open(COM, ">$ResultFile") || die("Cannot write file $ResultFile, Error
$!");
print COM $HTML;
close(COM);
}

sub Usage {
print STDERR <<EOF;
$Copyright
Usage: $0 [Options] HTMLFile...
Options:
-r File, --result File result file Name (without .txt)
-v, --version output version information and
exit
-h, --help display this help and exit
EOF
exit 1;
}

# HTML Codes
sub HTMLSymb {
return (
"& &amp;",
"&#92;" "",
"< <",
"> >",
"? &copy;",
"? &reg;",
"? &AElig;",
"? &Aacute;",
"? &Acirc;",
"? &Agrave;",
"? &Aring;",
"? &Atilde;",
"? &Auml;",
"? &Ccedil;",
"? &ETH;",
"? &Eacute;",
"? &Ecirc;",
"? &Egrave;",
"? &Euml;",
"? &Iacute;",
"? &Icirc;",
"? &Igrave;",
"? &Iuml;",
"? &Ntilde;",
"? &Oacute;",
"? &Ocirc;",
"? &Ograve;",
"? &Oslash;",
"? &Otilde;",
"? &Ouml;",
"? &THORN;",
"? &Uacute;",
"? &Ucirc;",
"? &Ugrave;",
"? &Uuml;",
"? &Yacute;",
"? &aacute;",
"? &acirc;",
"? &aelig;",
"? &agrave;",
"? &aring;",
"? &atilde;",
"? &auml;",
"? &ccedil;",
"? &eacute;",
"? &ecirc;",
"? &egrave;",
"? &eth;",
"? &euml;",
"? &iacute;",
"? &icirc;",
"? &igrave;",
"? &iuml;",
"? &ntilde;",
"? &oacute;",
"? &ocirc;",
"? &ograve;",
"? &oslash;",
"? &otilde;",
"? &ouml;",
"? &szlig;",
"? &thorn;",
"? &uacute;",
"? &ucirc;",
"? &ugrave;",
"? &uuml;",
"? &yacute;",
"? &yuml;",
" &#160;",
"? &#161;",
"? &#162;",
"? &#163;",
"? &#165;",
"? &#166;",
"? &#167;",
"? &#168;",
"? &#169;",
"? &#170;",
"? &#171;",
"? &#172;",
"? &#173;",
"? &#174;",
"? &#175;",
"? &#176;",
"? &#177;",
"? &#178;",
"? &#179;",
"? &#180;",
"? &#181;",
"? &#182;",
"? &#183;",
"? &#184;",
"? &#185;",
"? &#186;",
"? &#187;",
"? &#188;",
"? &#189;",
"? &#190;",
"? &#191;",
"? &#215;",
"? &#222;",
"? &#247;")
}

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup


Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

David
 

¿ªÔÆÌåÓý

Richard,
dont know Perl but Daniel is spot on for VB and VC..
Now, in Perl can you look at Java Window and parse it?
To give you an example - in VB i find JAva window through API's and copy the content and parse it. Fortunately it is in text format. It is an awkward step as you need to focus mouse on that window.
Can you look inside the java window using perl and parse it?
I just need direction? - if yes i will learn about it.
Thanks
David
?

----- Original Message -----
Sent: Saturday, June 15, 2002 1:24 AM
Subject: Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

} Does anyone know how to refrence a webpage and read its content
} programatically?
}
} A friend of mine was able to read the CME settlement page and get the
} settlement price for SPoos and Noodles using ensign charting scripts
}
} Here is the site:
}
}
} html
}
} It apparently is in a delimited format and can be read. Any ideas on
} how to do that in VB or C++
}
} Useful for including Net change in your spreadsheets, without relying
} on a secondary feed or manual entry.
}
} Scott
}

I do that stuff in Perl all the time.

BTW:? just got some stuff back from IB ... they say they sample quotes
every .7 seconds.? So I guess the filtering isn't very complex ...

Oh and Noodles?? Are you from Jay's Smurf room?? :-)


Richard

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



Your use of Yahoo! Groups is subject to the .


Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

marinindextrader
 

RAL room

Futures only here


--- In twsapi@y..., Richard Foulk <richard@s...> wrote:
} Does anyone know how to refrence a webpage and read its content
} programatically?
}
} A friend of mine was able to read the CME settlement page and get
the
} settlement price for SPoos and Noodles using ensign charting
scripts
}
} Here is the site:
}
}
.
} html
}
} It apparently is in a delimited format and can be read. Any ideas
on
} how to do that in VB or C++
}
} Useful for including Net change in your spreadsheets, without
relying
} on a secondary feed or manual entry.
}
} Scott
}

I do that stuff in Perl all the time.

BTW: just got some stuff back from IB ... they say they sample
quotes
every .7 seconds. So I guess the filtering isn't very complex ...

Oh and Noodles? Are you from Jay's Smurf room? :-)


Richard


Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

Daniel Rosen
 

¿ªÔÆÌåÓý

Its easy to do. In VB look at the internet transfer control in the docs (ITC).? Basically you include the ITC on your form and execute something similar to:
?
dim s as string
s = inet1.openurl("html")
?
In C++ you would use the wininet dll.? the ITC is an OCX wrapper around the wininet.dll.?
?
There are other techniques using the browser as a control and then reading the contents (mshtml), but these are the easiest techniques in my opinion.? Once you have the data, parsing is straightforward.
?
... Dan
?

-----Original Message-----
From: marinindextrader [mailto:marinindextrader@...]
Sent: Friday, June 14, 2002 11:05 AM
To: twsapi@...
Subject: TWSAPI: General: Anyone know how to refrence a webpage and read it?

Does anyone know how to refrence a webpage and read its content
programatically?

A friend of mine was able to read the CME settlement page and get the
settlement price for SPoos and Noodles using ensign charting scripts

Here is the site:


html

It apparently is in a delimited format and can be read. Any ideas on
how to do that in VB or C++

Useful for including Net change in your spreadsheets, without relying
on a secondary feed or manual entry.

Scott







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



Your use of Yahoo! Groups is subject to the .


Re: TWSAPI: General: Anyone know how to refrence a webpage and read it?

Richard Foulk
 

} Does anyone know how to refrence a webpage and read its content
} programatically?
}
} A friend of mine was able to read the CME settlement page and get the
} settlement price for SPoos and Noodles using ensign charting scripts
}
} Here is the site:
}
} .
} html
}
} It apparently is in a delimited format and can be read. Any ideas on
} how to do that in VB or C++
}
} Useful for including Net change in your spreadsheets, without relying
} on a secondary feed or manual entry.
}
} Scott
}

I do that stuff in Perl all the time.

BTW: just got some stuff back from IB ... they say they sample quotes
every .7 seconds. So I guess the filtering isn't very complex ...

Oh and Noodles? Are you from Jay's Smurf room? :-)


Richard