Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17191 > unrolled thread
| Started by | davidbupt@yahoo.com |
|---|---|
| First post | 2016-12-07 17:28 -0800 |
| Last post | 2016-12-09 19:37 -0500 |
| Articles | 8 — 6 participants |
Back to article view | Back to comp.lang.php
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Broken script davidbupt@yahoo.com - 2016-12-07 17:28 -0800
Re: Broken script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-08 11:07 +0100
Re: Broken script davidbupt@yahoo.com - 2016-12-09 11:16 -0800
Re: Broken script davidbupt@yahoo.com - 2016-12-09 11:18 -0800
Re: Broken script Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-12-09 14:33 -0500
Re: Broken script usahotjobscall@gmail.com - 2016-12-09 15:12 -0800
Re: Broken script "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-12-10 01:28 +0100
Re: Broken script Jerry Stuckle <jstucklex@attglobal.net> - 2016-12-09 19:37 -0500
| From | davidbupt@yahoo.com |
|---|---|
| Date | 2016-12-07 17:28 -0800 |
| Subject | Re: Broken script |
| Message-ID | <ece3b158-88ac-40ef-b2d3-c826bdee7e53@googlegroups.com> |
I have the c (or c++) code to download the option data from cboe web site.
How much do you want to pay for the program?
David
On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna wrote:
> The following 'optionchain.php' script used to work pretty well in
> downloading an option chain from CBOE. For example, you could get a
> whole Microsoft option chain by typing :
>
> php optionchain MSFT
>
> You could get the same result by typing 'MSFT' and hitting the
> Download button at http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
>
> Since a few days the script doesn't work anymore. :-( . I suspect that
> something changed on the website. I am not familiar with php and I
> can't fix things myself. I was wondering if there was any kind soul
> willing to help.
>
> Thanks in advance.
>
> Arturo.
>
>
> =======================
>
>
> <?php
> // cookie and error log path - SET THIS BEFORE TESTING
> define(TMPFILEPATH, "/mf/home/unicorn/shell/tmp");
>
> /*
> * This script gets option chain data in a comma-delimited text file
> * from the Chicago Board of Options web site www.cboe.com.
> *
> * Example for Microsoft (MSFT) stock options:
> *
> * URL syntax: http://example.com/optionchain.php?ticker=MSFT
> *
> * Commandline: % php optionchain.php MSFT
> */
>
> $tickersymbol = isset($_GET['ticker']) ? $_GET['ticker']
> : $_SERVER['argv'][1]; // get argument from commandline if no $_GET
>
> $ch = curl_init(); // initialize curl
>
> curl_setopt($ch, CURLOPT_VERBOSE, true); // verbose errors
> $er = fopen(TMPFILEPATH.'/curl_err.txt', 'w'); // error log file
> curl_setopt($ch, CURLOPT_STDERR, $er); // log the errors
>
> curl_setopt($ch, CURLOPT_AUTOREFERER, true);
> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
>
> curl_setopt($ch, CURLOPT_COOKIEJAR, TMPFILEPATH.'/cboe_cookie.txt');
> curl_setopt($ch, CURLOPT_REFERER,
> 'http://www.cboe.com/delayedQuote/QuoteTableDownload.aspx');
> curl_setopt($ch, CURLOPT_URL,
> 'http://www.cboe.com/delayedQuote/QuoteTableDownload.aspx');
> curl_setopt($ch, CURLOPT_USERAGENT,
> 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)');
>
> // "log in" to web site by accessing first page (sets cookie)
> $discard = curl_exec($ch);
>
> // now post the form. The result will come after setting more
> // cookies and receiving a redirect to a different URL,
> // http://www.cboe.com/delayedQuote/QuoteData.dat
> // which returns data using the query data contained in a cookie.
> // AFTER that we get redirected back to the original page,
> // so limit redirects to 1
>
> curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
> curl_setopt($ch, CURLOPT_POST, true); // enable HTTP POST
> curl_setopt($ch, CURLOPT_POSTFIELDS,
> '__EVENTTARGET='
> .'&__EVENTARGUMENT='
> .'&__VIEWSTATE='.urlencode('dDwtODQ5MjIyNjc7Oz5rmegY+4O27l7uWcpGd4iU
> +1RpAA==')
> .'&ucHeader:ucCBOEHeaderLinks:ucCBOEHeaderSearch:searchtext='
> .'&ucHeader:ucCBOEHeaderLinks:ucCBOEHeaderSearch:Button1=Search'
> .'&ucQuoteTableDownloadCtl:txtTicker='.$tickersymbol
> .'&ucQuoteTableDownloadCtl:cmdSubmit=Download');
>
> // Get data (RETURNS NULL FROM BROWSER, WORKS FROM COMMANDLINE ??)
> $content = curl_exec($ch);
>
> // Close resources
> curl_close ($ch);
> fclose($er);
>
> // display result
> print "<pre>Data:\n{$content}\nEnd</pre>\n";
> ?>
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2016-12-08 11:07 +0100 |
| Message-ID | <19241349.EfDdHjke4D@PointedEars.de> |
| In reply to | #17191 |
davidbupt@yahoo.com wrote in comp.lang.php:
^^^
> I have the c (or c++) code to download the option data from cboe web site.
> How much do you want to pay for the program?
>
> David
>
> On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna wrote:
^^^^
>> The following 'optionchain.php' script used to work pretty well in
>> downloading an option chain from CBOE. […]
This is a joke, right?
--
PointedEars
Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | davidbupt@yahoo.com |
|---|---|
| Date | 2016-12-09 11:16 -0800 |
| Message-ID | <6c3fd1e6-14d1-49b5-8d50-b8c3608a257d@googlegroups.com> |
| In reply to | #17192 |
I saved some history option data: +--------+--------+--------+--------+--------+-------+------+----------+----------------- | strike | lprice | bprice | aprice | volume | opint | iv | exchange | opraw +--------+--------+--------+--------+--------+-------+------+----------+----------------- | 17.5 | 17.5 | 4.7 | 5.2 | 0 | 15 | 0 | ALL | (AKRX1616L17.5) | 17.5 | 17.5 | 0.05 | 0.2 | 0 | 21 | 0 | ALL | (AKRX1616X17.5) | 20 | 20 | 2.45 | 2.9 | 0 | 81 | 0 | ALL | (AKRX1616L20) | 20 | 20 | 0.2 | 0.5 | 0 | 391 | 0 | ALL | (AKRX1616X20) | 22.5 | 22.5 | 0.75 | 1.1 | 70 | 384 | 0.42 | ALL | (AKRX1616L22.5) | 22.5 | 22.5 | 1 | 1.45 | 1 | 228 | 0.54 | ALL | (AKRX1616X22.5) | 25 | 25 | 0.1 | 0.35 | 2 | 301 | 0.43 | ALL | (AKRX1616L25) | 25 | 25 | 2.7 | 3.2 | 4 | 762 | 0.56 | ALL | (AKRX1616X25) | 27.5 | 27.5 | 0 | 0.1 | 0 | 173 | 0 | ALL | (AKRX1616L27.5) | 27.5 | 27.5 | 4.9 | 5.8 | 0 | 60 | 0 | ALL | (AKRX1616X27.5) | 30 | 30 | 0 | 0.1 | 0 | 1003 | 0 | ALL | (AKRX1616L30) | 30 | 30 | 6.7 | 8.5 | 0 | 39 | 0 | ALL | (AKRX1616X30) On Thursday, December 8, 2016 at 2:07:30 AM UTC-8, Thomas 'PointedEars' Lahn wrote: > davidbupt@yahoo.com wrote in comp.lang.php: > ^^^ > > I have the c (or c++) code to download the option data from cboe web site. > > How much do you want to pay for the program? > > > > David > > > > On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna wrote: > ^^^^ > >> The following 'optionchain.php' script used to work pretty well in > >> downloading an option chain from CBOE. […] > > This is a joke, right? > > -- > PointedEars > Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953> > <https://github.com/PointedEars> | <http://PointedEars.de/wsvn> > Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | davidbupt@yahoo.com |
|---|---|
| Date | 2016-12-09 11:18 -0800 |
| Message-ID | <70f47c22-4c18-4af1-938a-6ab456a15ed3@googlegroups.com> |
| In reply to | #17194 |
mysql> select * from fop where symbol = 'akrx'; ----------+----------+--------+--------+--------+--------+--------+-------+------+----------+-----------------+ expdate | qdate | strike | lprice | bprice | aprice | volume | opint | iv | exchange | opraw | ----------+----------+--------+--------+--------+--------+--------+-------+------+----------+-----------------+ 20161216 | 20161123 | 17.5 | 17.5 | 4.7 | 5.2 | 0 | 15 | 0 | ALL | (AKRX1616L17.5) | 20161216 | 20161123 | 17.5 | 17.5 | 0.05 | 0.2 | 0 | 21 | 0 | ALL | (AKRX1616X17.5) | 20161216 | 20161123 | 20 | 20 | 2.45 | 2.9 | 0 | 81 | 0 | ALL | (AKRX1616L20) | 20161216 | 20161123 | 20 | 20 | 0.2 | 0.5 | 0 | 391 | 0 | ALL | (AKRX1616X20) | 20161216 | 20161123 | 22.5 | 22.5 | 0.75 | 1.1 | 70 | 384 | 0.42 | ALL | (AKRX1616L22.5) | 20161216 | 20161123 | 22.5 | 22.5 | 1 | 1.45 | 1 | 228 | 0.54 | ALL | (AKRX1616X22.5) | 20161216 | 20161123 | 25 | 25 | 0.1 | 0.35 | 2 | 301 | 0.43 | ALL | (AKRX1616L25) | 20161216 | 20161123 | 25 | 25 | 2.7 | 3.2 | 4 | 762 | 0.56 | ALL | (AKRX1616X25) | 20161216 | 20161123 | 27.5 | 27.5 | 0 | 0.1 | 0 | 173 | 0 | ALL | (AKRX1616L27.5) | 20161216 | 20161123 | 27.5 | 27.5 | 4.9 | 5.8 | 0 | 60 | 0 | ALL | (AKRX1616X27.5) | 20161216 | 20161123 | 30 | 30 | 0 | 0.1 | 0 | 1003 | 0 | ALL | (AKRX1616L30) | 20161216 | 20161123 | 30 | 30 | 6.7 | 8.5 | 0 | 39 | 0 | ALL | (AKRX1616X30) | 20161216 | 20161123 | 35 | 35 | 0 | 0.05 | 0 | 1910 | 0 | ALL | (AKRX1616L35) | 20161216 | 20161123 | 35 | 35 | 11.6 | 13.9 | 0 | 2 | 0 | ALL | (AKRX1616X35) | 20161216 | 20161123 | 37.5 | 37.5 | 0 | 0.1 | 0 | 51 | 0 | ALL | (AKRX1616L37.5) | On Friday, December 9, 2016 at 11:17:10 AM UTC-8, davi...@yahoo.com wrote: > I saved some history option data: > > > > +--------+--------+--------+--------+--------+-------+------+----------+----------------- > | strike | lprice | bprice | aprice | volume | opint | iv | exchange | opraw > +--------+--------+--------+--------+--------+-------+------+----------+----------------- > | 17.5 | 17.5 | 4.7 | 5.2 | 0 | 15 | 0 | ALL | (AKRX1616L17.5) > | 17.5 | 17.5 | 0.05 | 0.2 | 0 | 21 | 0 | ALL | (AKRX1616X17.5) > | 20 | 20 | 2.45 | 2.9 | 0 | 81 | 0 | ALL | (AKRX1616L20) > | 20 | 20 | 0.2 | 0.5 | 0 | 391 | 0 | ALL | (AKRX1616X20) > | 22.5 | 22.5 | 0.75 | 1.1 | 70 | 384 | 0.42 | ALL | (AKRX1616L22.5) > | 22.5 | 22.5 | 1 | 1.45 | 1 | 228 | 0.54 | ALL | (AKRX1616X22.5) > | 25 | 25 | 0.1 | 0.35 | 2 | 301 | 0.43 | ALL | (AKRX1616L25) > | 25 | 25 | 2.7 | 3.2 | 4 | 762 | 0.56 | ALL | (AKRX1616X25) > | 27.5 | 27.5 | 0 | 0.1 | 0 | 173 | 0 | ALL | (AKRX1616L27.5) > | 27.5 | 27.5 | 4.9 | 5.8 | 0 | 60 | 0 | ALL | (AKRX1616X27.5) > | 30 | 30 | 0 | 0.1 | 0 | 1003 | 0 | ALL | (AKRX1616L30) > | 30 | 30 | 6.7 | 8.5 | 0 | 39 | 0 | ALL | (AKRX1616X30) > > > On Thursday, December 8, 2016 at 2:07:30 AM UTC-8, Thomas 'PointedEars' Lahn wrote: > > davidbupt@yahoo.com wrote in comp.lang.php: > > ^^^ > > > I have the c (or c++) code to download the option data from cboe web site. > > > How much do you want to pay for the program? > > > > > > David > > > > > > On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna wrote: > > ^^^^ > > >> The following 'optionchain.php' script used to work pretty well in > > >> downloading an option chain from CBOE. […] > > > > This is a joke, right? > > > > -- > > PointedEars > > Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953> > > <https://github.com/PointedEars> | <http://PointedEars.de/wsvn> > > Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Lew Pitcher <lew.pitcher@digitalfreehold.ca> |
|---|---|
| Date | 2016-12-09 14:33 -0500 |
| Message-ID | <o2f0rj$e7d$1@dont-email.me> |
| In reply to | #17195 |
On Friday December 9 2016 14:18, in comp.lang.php, "davidbupt@yahoo.com" <davidbupt@yahoo.com> wrote: > mysql> select * from fop where symbol = 'akrx'; > ----------+----------+--------+--------+--------+--------+--------+-------+------+----------+-----------------+ > expdate | qdate | strike | lprice | bprice | aprice | volume | opint | > iv | exchange | opraw | [snip] It is interesting that the column "symbol" isn't part of the resultset. I would have expected it to be included. > > > On Friday, December 9, 2016 at 11:17:10 AM UTC-8, davi...@yahoo.com wrote: >> I saved some history option data: >> >> >> >> +--------+--------+--------+--------+--------+-------+------+----------+----------------- >> | strike | lprice | bprice | aprice | volume | opint | iv | exchange | >> | opraw [snip] >> >> On Thursday, December 8, 2016 at 2:07:30 AM UTC-8, Thomas 'PointedEars' >> Lahn wrote: >> > davidbupt@yahoo.com wrote in comp.lang.php: >> > ^^^ >> > > I have the c (or c++) code to download the option data from cboe web >> > > site. How much do you want to pay for the program? >> > > >> > > David >> > > >> > > On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna >> > > wrote: >> > ^^^^ >> > >> The following 'optionchain.php' script used to work pretty well in >> > >> downloading an option chain from CBOE. […] >> > >> > This is a joke, right? Now, I know you are trolling. First, you wait 6 years to reply to a post Second, you post with an off-topic reply Third, you post irrelevant data in your reply to the post calling you out, and Fourth, you post more irrelevant (and apparently manufactured) data -- Lew Pitcher "In Skills, We Trust" PGP public key available upon request
[toc] | [prev] | [next] | [standalone]
| From | usahotjobscall@gmail.com |
|---|---|
| Date | 2016-12-09 15:12 -0800 |
| Message-ID | <76b69c6c-77e4-47ea-b96e-d9a0c43af18b@googlegroups.com> |
| In reply to | #17196 |
you can request any symbol's option data, then I can put here. It shows I have the code to download the data and save into mysql db. ******************** cboe uses the large string which exceeds the max string size(c, c++), so I send the http requests with two socket requests. "__EVENTTARGET=&__EVENTARGUMENT=... The string size is more than 41044 On Friday, December 9, 2016 at 11:33:29 AM UTC-8, Lew Pitcher wrote: > On Friday December 9 2016 14:18, in comp.lang.php, "davidbupt@yahoo.com" > <davidbupt@yahoo.com> wrote: > > > mysql> select * from fop where symbol = 'akrx'; > > ----------+----------+--------+--------+--------+--------+--------+-------+------+----------+-----------------+ > > expdate | qdate | strike | lprice | bprice | aprice | volume | opint | > > iv | exchange | opraw | > [snip] > > It is interesting that the column "symbol" isn't part of the resultset. I > would have expected it to be included. > > > > > > > On Friday, December 9, 2016 at 11:17:10 AM UTC-8, davi...@yahoo.com wrote: > >> I saved some history option data: > >> > >> > >> > >> > +--------+--------+--------+--------+--------+-------+------+----------+----------------- > >> | strike | lprice | bprice | aprice | volume | opint | iv | exchange | > >> | opraw > [snip] > >> > >> On Thursday, December 8, 2016 at 2:07:30 AM UTC-8, Thomas 'PointedEars' > >> Lahn wrote: > >> > davidbupt@yahoo.com wrote in comp.lang.php: > >> > ^^^ > >> > > I have the c (or c++) code to download the option data from cboe web > >> > > site. How much do you want to pay for the program? > >> > > > >> > > David > >> > > > >> > > On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna > >> > > wrote: > >> > ^^^^ > >> > >> The following 'optionchain.php' script used to work pretty well in > >> > >> downloading an option chain from CBOE. […] > >> > > >> > This is a joke, right? > > Now, I know you are trolling. > > First, you wait 6 years to reply to a post > Second, you post with an off-topic reply > Third, you post irrelevant data in your reply to the post calling you out, and > Fourth, you post more irrelevant (and apparently manufactured) data > > > -- > Lew Pitcher > "In Skills, We Trust" > PGP public key available upon request
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2016-12-10 01:28 +0100 |
| Message-ID | <o2fi7h$g9i$1@solani.org> |
| In reply to | #17196 |
On 09.12.2016 at 20:33, Lew Pitcher wrote: > Now, I know you are trolling. Why do you feed them then? -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-12-09 19:37 -0500 |
| Message-ID | <o2filb$kh3$1@jstuckle.eternal-september.org> |
| In reply to | #17196 |
On 12/9/2016 2:33 PM, Lew Pitcher wrote: > On Friday December 9 2016 14:18, in comp.lang.php, "davidbupt@yahoo.com" > <davidbupt@yahoo.com> wrote: > >> mysql> select * from fop where symbol = 'akrx'; >> ----------+----------+--------+--------+--------+--------+--------+-------+------+----------+-----------------+ >> expdate | qdate | strike | lprice | bprice | aprice | volume | opint | >> iv | exchange | opraw | > [snip] > > It is interesting that the column "symbol" isn't part of the resultset. I > would have expected it to be included. > >> >> >> On Friday, December 9, 2016 at 11:17:10 AM UTC-8, davi...@yahoo.com wrote: >>> I saved some history option data: >>> >>> >>> >>> > +--------+--------+--------+--------+--------+-------+------+----------+----------------- >>> | strike | lprice | bprice | aprice | volume | opint | iv | exchange | >>> | opraw > [snip] >>> >>> On Thursday, December 8, 2016 at 2:07:30 AM UTC-8, Thomas 'PointedEars' >>> Lahn wrote: >>>> davidbupt@yahoo.com wrote in comp.lang.php: >>>> ^^^ >>>>> I have the c (or c++) code to download the option data from cboe web >>>>> site. How much do you want to pay for the program? >>>>> >>>>> David >>>>> >>>>> On Thursday, February 4, 2010 at 1:44:12 PM UTC-8, Arturo.DiDonna >>>>> wrote: >>>> ^^^^ >>>>>> The following 'optionchain.php' script used to work pretty well in >>>>>> downloading an option chain from CBOE. […] >>>> >>>> This is a joke, right? > > Now, I know you are trolling. > > First, you wait 6 years to reply to a post > Second, you post with an off-topic reply > Third, you post irrelevant data in your reply to the post calling you out, and > Fourth, you post more irrelevant (and apparently manufactured) data > > No, Lew, he isn't trolling. He's just another Google Groupie who doesn't know any better. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web