1. Streaming Quotes
- Posted by wd40 Oct 31, 2009
- 1388 views
Hello Everybody,
How can I port Streaming Quotes from another website into my own Euphoria Program?
Don Cole
2. Re: Streaming Quotes
- Posted by ChrisB (moderator) Oct 31, 2009
- 1411 views
Hello Everybody,
How can I port Streaming Quotes from another website into my own Euphoria Program?
Don Cole
Doesn't Rob Craig do something like this?
How I would do it - use wget to repeatedly poll the page and download it as a file, then parse the info from the file to your app.
Chris
3. Re: Streaming Quotes
- Posted by jeremy (admin) Oct 31, 2009
- 1376 views
Doesn't Rob Craig do something like this?
How I would do it - use wget to repeatedly poll the page and download it as a file, then parse the info from the file to your app.
4.0 has std/net/http.e which includes a few functions, one of which is get_url()... That will download get you the HTML from a web site in a cross platform manner directly into a euphoria sequence.
Jeremy
4. Re: Streaming Quotes
- Posted by wd40 Oct 31, 2009
- 1357 views
Thank you ChrisB and jeremy,
My Streaming Quotes come from a Java Program not really a webpage. Although you have to enter a webpage to get it (the java program).
Don Cole
5. Re: Streaming Quotes
- Posted by jeremy (admin) Nov 01, 2009
- 1368 views
Thank you ChrisB and jeremy,
My Streaming Quotes come from a Java Program not really a webpage. Although you have to enter a webpage to get it (the java program).
Don, how do you get access to the streaming? Is it a console program? If so see std/pipeio.e
Jeremy
6. Re: Streaming Quotes
- Posted by wd40 Nov 01, 2009
- 1345 views
Thank you Jeremy,
I get my quotes from Scottrade.
I probably shouldn't use their name. But why should they care I'm paying enough for it.
I go to the Scottrade main page and click on streaming quotes.
That opens another window that says it's a java based option train,
Then 5 little windows open showing graphs, quickquotes etc.
I don't know how they do it or how to tap in to it.
Don Cole
7. Re: Streaming Quotes
- Posted by jeremy (admin) Nov 02, 2009
- 1306 views
That opens another window that says it's a java based option train,
Then 5 little windows open showing graphs, quickquotes etc.
I don't know how they do it or how to tap in to it.
That sounds a bit difficult to gain access to indeed. I'm at a loss for a suggestion.
Jeremy
8. Re: Streaming Quotes
- Posted by jimcbrown (admin) Nov 02, 2009
- 1297 views
That sounds a bit difficult to gain access to indeed. I'm at a loss for a suggestion.
Jeremy
If they are actually providing access via java (a Java-based API), then we could tap into this using JNI. (A JNI port that wraps Java AWT for Euphoria already exists.)
9. Re: Streaming Quotes
- Posted by ne1uno Nov 02, 2009
- 1332 views
I get my quotes from Scottrade.
I probably shouldn't use their name. But why should they care I'm paying enough for it.
{}
I don't know how they do it or how to tap in to it.
http://www.quotetracker.com/qsources.shtml
the free version lets you store 2 days worth of data. looks like others are frustrated by Scottrade:
http://community.scottrade.com/index.php?page_id=1000&site_page_id=302&sblog_id=7
http://www.elitetrader.com/vb/printthread.php?threadid=83564
yahoo or google might have other stock widgets that can hook you up. http://widgets.yahoo.com/search/?q=quotes&s=rating&os=any
10. Re: Streaming Quotes
- Posted by raseu Nov 04, 2009
- 1262 views
i would use ngrep http://ngrep.sourceforge.net
as a starter to catch snapshots of the realtime
data feed to see if the data can be parsed
along the following lines;
1) open browser to data streaming page
2) open console window for ngrep
3) start ngrep data logging
ngrep -O log.data -d <your device number>
4) once you have captured enough data, you can replay
the data using ngrep
ngrep -I log.data -W byline
which will dump all packets captured to the screen
it would be very simple to parse the
data stream if it is in text format
however, if the data stream is in binary format
that's a whole new ball game
11. Re: Streaming Quotes
- Posted by wd40 Nov 05, 2009
- 1207 views
Thank you Jeremy,jimbrown, ne1uno,and raseu,
This gives me alot to study and research.
Don Cole