I would definitely like to work with any and all that are interested in getting data from opentick.com
I am just getting up to speed using the API that opentick.com provides for perl. In addition to Perl, they have API's for C++, C# and Java. Anybody have an opinion of which language would produce a smooth transition of data to J? My main expertise is C/C++. I have never used C#. I have written some Java. I am leaning toward C/C++ because I know it very well and Perl because I know it also. take a look at www.opentick.com to see what they provide and how much they charge for it. On Thu, 2007-06-21 at 10:27 +0800, [EMAIL PROTECTED] wrote: > Send Programming mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.jsoftware.com/cgi-bin/mailman/listinfo/programming > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Programming digest..." > > > Today's Topics: > > 1. Re: How to use a proxy? (Yuvaraj Athur Raghuvir) > 2. Re: How to use a proxy? (Yuvaraj Athur Raghuvir) > 3. Re: How to use a proxy? (Raul Miller) > 4. Re: How to use a proxy? (Raul Miller) > 5. J language API for www.opentick.com stock data feed? > ([EMAIL PROTECTED]) > 6. RE: J language API for www.opentick.com stock data feed? > (Henry Rich) > 7. Application gives error in jwdp but not jwdw (Sherlock, Ric) > 8. Re: Application gives error in jwdp but not jwdw (bill lam) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 20 Jun 2007 10:38:57 +0530 > From: "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]> > Subject: Re: [Jprogramming] How to use a proxy? > To: "Programming forum" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Now I am getting blocked at the line that checks for Content-Length in > header. Looks like the header instead has Transfer-Encoding (for > http://www.google.com) and so the code block there does not work. > > Let me try to understand the response and accordingly adapt the code. > > Thanks. > > On 6/20/07, Raul Miller <[EMAIL PROTECTED]> wrote: > > > > On 6/19/07, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> wrote: > > > The scripts I was referring to are from Oleg (httpget - from Wiki) and > > Raul > > > (httpGet - from forum archives). I want to tweak the given > > implementation to > > > use http proxy server on the client side. > > > > Hmm... I haven't tested these changes (I am in no position to do > > so), but if you are using my script from > > http://www.jsoftware.com/pipermail/programming/2007-February/005275.html > > > > I would try these changes: > > > > urlToRequest=:3 :0 > > 'host abs_path'=.splitUrl y > > 'GET ',y,httpMiddle,host,CRLF,CRLF > > ) > > > > urlToSocket=:3 :0 > > hostport=.0{::splitUrl PROXYURL > > 'host port'=.2{.<;._2 hostport,':80:' > > sock=:socket'' > > connect sock;(gethostbyname host),<0".port > > sock > > ) > > > > Note that you would also need to define PROXYURL > > to point at your proxy. > > > > Note also that there might be other changes needed > > by a proxy, so let us know if this works. > > > > -- > > Raul > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ------------------------------ > > Message: 2 > Date: Wed, 20 Jun 2007 10:46:22 +0530 > From: "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]> > Subject: Re: [Jprogramming] How to use a proxy? > To: "Programming forum" <[email protected]> > Cc: General forum <[EMAIL PROTECTED]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > >From my experience with IE at office, the LAN settings must point to a proxy > server for any internet access to succeed. I assumed that at the level of > socket programming, this would make a difference. Looks like I am mistaken > in that assumption. > > Many utilities have a special parameter to take the proxy address in order > to operate from within organizations. > > To help me understand this proxy business - what is the role of setting a > proxy server in the IE or simple command line utilities? [clearly this is > not a J programming question - so I am cross posting into General forum] > > On 6/20/07, bill lam <[EMAIL PROTECTED]> wrote: > > > > I'm not sure why a firewall will dysfunction url resolution. However if > > you are > > banned from certain websites by your corporation or isp, a proxy server > > may be a > > solution. > > 0. google for a list of proxy server. > > 1. make a socket connection to a public proxy server, _not_ that local > > proxy > > server currently banning you. > > 2. pass the whole url, including the url's server name, in the get > > command. eg > > GET http://www.jsoftware.com/index.html > > instead of > > GET /index.html > > > > Yuvaraj Athur Raghuvir wrote: > > > Ok, this is what I know: > > > 0) I am using the J socket > > > 1) If there is a http proxy-server (e.g. behind a firewall), then the > > > direct > > > socket connection using sdconnect will fail since the url cannot be > > > resolved. > > > 2) This, I believe, means that in my J program, I need to establish a > > > connection to the local http proxy server first and then ask the proxy > > > server to connect to the web site of interest. > > > > > > Am I right so far? > > > > > > 3) So, I see the connection to the external world of two steps > > > a) connect to proxy-server first > > > b) pass the url to the proxy-server to resolve on my behalf > > > c) establish the transparency between the J Client - Proxy & Proxy - > > > External URL for further request-response cycles. > > > > > > So, using plain J socket api's how do I establish this? Is this part of > > the > > > request? Or is it part of the connection mechanism? > > > > > > More specifically: > > > The scripts I was referring to are from Oleg (httpget - from Wiki) and > > Raul > > > (httpGet - from forum archives). I want to tweak the given > > > implementation to > > > use http proxy server on the client side. > > > > > > > > > Regards, > > > Yuva > > > > -- > > regards, > > bill > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ------------------------------ > > Message: 3 > Date: Wed, 20 Jun 2007 08:27:06 -0400 > From: "Raul Miller" <[EMAIL PROTECTED]> > Subject: Re: [Jprogramming] How to use a proxy? > To: "Programming forum" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 6/20/07, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> wrote: > > Now I am getting blocked at the line that checks for Content-Length in > > header. Looks like the header instead has Transfer-Encoding (for > > http://www.google.com) and so the code block there does not work. > > > > Let me try to understand the response and accordingly adapt the code. > > Ok... my httpGet is not a very sophisticated mechanism. > > In real life, the Content-Length header is optional -- when it's not > supplied, the client is supposed to read until nothing more is sent. > In other words, until the connection is closed by the server. > (Or, maybe, if the response has further structure - like a multipart > mime, that might take precedence?) > > As for transfer encodings... My script also does not deal with those > either. Usually, those are used when the content is not being sent > over a tcp connection (email for example), or when the content is > compressed (Transfer-Encoding: gzip). > > Anyways, if you can post an example of what's getting sent by the > proxy, I might (or might not) be able to understand what it's trying > to do. > > -- > Raul > > > ------------------------------ > > Message: 4 > Date: Wed, 20 Jun 2007 14:16:50 -0400 > From: "Raul Miller" <[EMAIL PROTECTED]> > Subject: Re: [Jprogramming] How to use a proxy? > To: "Programming forum" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 6/20/07, I wrote: > > Ok... my httpGet is not a very sophisticated mechanism. > > I should add: it was specifically written to pull down binary files > from jsoftware.com. This narrow domain let me write use a > fairly simple implementation, since I did not need to deal with > a lot of cases which did not matter in that context. > > Transfer Encodings, and lack of Content Length are just two > examples of this. Other issues, for example, is that it requres > urls have at least three '/' characters, and it also only deals with > the http: protocol. (no ftp:, no file:, no about:, etc.) > > FYI, > > -- > Raul > > > ------------------------------ > > Message: 5 > Date: Wed, 20 Jun 2007 12:51:16 -0800 > From: [EMAIL PROTECTED] > Subject: [Jprogramming] J language API for www.opentick.com stock data > feed? > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > https://www.opentick.com > > provides APIs in various languages to access their > free/cheap stock exchange data feeds. > > Has anybody developed an API for the J language that does > the same thing. > > I was planning on using Perl and making writing an API that > would provide the data I received from opentick to a J > application. > > > > > ------------------------------ > > Message: 6 > Date: Wed, 20 Jun 2007 17:35:21 -0400 > From: "Henry Rich" <[EMAIL PROTECTED]> > Subject: RE: [Jprogramming] J language API for www.opentick.com stock > data feed? > To: "'Programming forum'" <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > I would love to work with you on this. > > Unfortunately, I don't know Perl. But I do know J, and > I have a trading platform written in J that I can test with. > > A Perl app that did real-time updates to a mapped file > would fit right in to my system. > > Henry Rich > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > [EMAIL PROTECTED] > > Sent: Wednesday, June 20, 2007 4:51 PM > > To: [email protected] > > Subject: [Jprogramming] J language API for www.opentick.com > > stock data feed? > > > > https://www.opentick.com > > > > provides APIs in various languages to access their > > free/cheap stock exchange data feeds. > > > > Has anybody developed an API for the J language that does > > the same thing. > > > > I was planning on using Perl and making writing an API that > > would provide the data I received from opentick to a J > > application. > > > > > > ---------------------------------------------------------------------- > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > ------------------------------ > > Message: 7 > Date: Thu, 21 Jun 2007 13:46:36 +1200 > From: "Sherlock, Ric" <[EMAIL PROTECTED]> > Subject: [Jprogramming] Application gives error in jwdp but not jwdw > To: "Programming forum" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > I have a Jwd application developed in Windows that runs fine in Jwdw, > but won't run in Jwdp. According to > http://jsoftware.com/help/user/overview.htm , this is perhaps because I > am using Windows specific features. As far as I can see, my application > doesn't have any Windows dependent functionality, but I'm most probably > mistaken! Is there a list of these Windows-specific features of Jwdw > that I can refer to somewhere? > > I have another application that works fine in both Jwdw & Jwdp but can't > work out what the deciding difference is. > > When I test the application in Jwdp ijx, I get an domain error when it > comes to initialise the form: > |domain error: wd > | wd F > > Where F is the following form definition: > > F=: 0 : 0 > pc f nomax; > menupop "&File"; > menu con "&Connect" "" "" ""; > menusep; > menu exit "E&xit" "" "" ""; > menupopz; > menupop "&Tools"; > menu updAllREVs "&Update All REVs" "" "" ""; > menusep; > menu impCat "&Import Sale Catalogue" "" "" ""; > menu viewCat "&View Sale Catalogue" "" "" ""; > menupopz; > menupop "&Help"; > menu about "&About" "" "" ""; > menupopz; > xywh 21 10 50 10;cc ccstatic static;cn "Clients"; > xywh 17 22 64 149;cc lsObj listbox ws_vscroll es_autovscroll > es_autohscroll bottommove; > xywh 90 8 205 188;cc tab tab bottommove rightmove; > xywh 96 23 195 172;cc grid isigraph bottommove rightmove; > xywh 300 21 57 16;cc btEdit button leftmove rightmove;cn "&Edit"; > xywh 300 41 57 16;cc btSave button leftmove rightmove;cn "&Save > Changes"; > xywh 300 61 57 16;cc btCancel button leftmove rightmove;cn "&Cancel > Changes"; > xywh 300 81 57 16;cc btcalcREVs button leftmove rightmove;cn "Calculate > &REVs"; > xywh 300 101 57 16;cc btFlip button leftmove rightmove;cn "&Flip"; > xywh 312 177 44 12;cc btClose button leftmove rightmove;cn "Close"; > xywh 300 41 57 16;cc btChoose button leftmove rightmove;cn "C&hoose > Profile"; > xywh 300 21 57 16;cc btAdd button leftmove rightmove;cn "&Add"; > pas 6 6;pcenter; > rem form end; > ) > > > ------------------------------ > > Message: 8 > Date: Thu, 21 Jun 2007 10:40:41 +0800 > From: bill lam <[EMAIL PROTECTED]> > Subject: Re: [Jprogramming] Application gives error in jwdp but not > jwdw > To: Programming forum <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > not sure what caused your error, but you can use wd'qer' to query more > specific > error information. > > Sherlock, Ric wrote: > > I have a Jwd application developed in Windows that runs fine in Jwdw, > > but won't run in Jwdp. According to > > http://jsoftware.com/help/user/overview.htm , this is perhaps because I > > am using Windows specific features. As far as I can see, my application > > doesn't have any Windows dependent functionality, but I'm most probably > > mistaken! Is there a list of these Windows-specific features of Jwdw > > that I can refer to somewhere? > > > > I have another application that works fine in both Jwdw & Jwdp but can't > > work out what the deciding difference is. > > > > When I test the application in Jwdp ijx, I get an domain error when it > > comes to initialise the form: > > |domain error: wd > > | wd F > > > > Where F is the following form definition: > > > > F=: 0 : 0 > > pc f nomax; > > menupop "&File"; > > menu con "&Connect" "" "" ""; > > menusep; > > menu exit "E&xit" "" "" ""; > > menupopz; > > menupop "&Tools"; > > menu updAllREVs "&Update All REVs" "" "" ""; > > menusep; > > menu impCat "&Import Sale Catalogue" "" "" ""; > > menu viewCat "&View Sale Catalogue" "" "" ""; > > menupopz; > > menupop "&Help"; > > menu about "&About" "" "" ""; > > menupopz; > > xywh 21 10 50 10;cc ccstatic static;cn "Clients"; > > xywh 17 22 64 149;cc lsObj listbox ws_vscroll es_autovscroll > > es_autohscroll bottommove; > > xywh 90 8 205 188;cc tab tab bottommove rightmove; > > xywh 96 23 195 172;cc grid isigraph bottommove rightmove; > > xywh 300 21 57 16;cc btEdit button leftmove rightmove;cn "&Edit"; > > xywh 300 41 57 16;cc btSave button leftmove rightmove;cn "&Save > > Changes"; > > xywh 300 61 57 16;cc btCancel button leftmove rightmove;cn "&Cancel > > Changes"; > > xywh 300 81 57 16;cc btcalcREVs button leftmove rightmove;cn "Calculate > > &REVs"; > > xywh 300 101 57 16;cc btFlip button leftmove rightmove;cn "&Flip"; > > xywh 312 177 44 12;cc btClose button leftmove rightmove;cn "Close"; > > xywh 300 41 57 16;cc btChoose button leftmove rightmove;cn "C&hoose > > Profile"; > > xywh 300 21 57 16;cc btAdd button leftmove rightmove;cn "&Add"; > > pas 6 6;pcenter; > > rem form end; > > ) > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
