1. Streaming Quotes

Hello Everybody,

How can I port Streaming Quotes from another website into my own Euphoria Program?

Don Cole

new topic     » topic index » view message » categorize

2. Re: Streaming Quotes

wd40 said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Streaming Quotes

ChrisB said...

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Streaming Quotes

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: Streaming Quotes

wd40 said...

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: Streaming Quotes

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: Streaming Quotes

wd40 said...

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: Streaming Quotes

jeremy said...

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.)

new topic     » goto parent     » topic index » view message » categorize

9. Re: Streaming Quotes

wd40 said...

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

new topic     » goto parent     » topic index » view message » categorize

10. Re: Streaming Quotes

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

new topic     » goto parent     » topic index » view message » categorize

11. Re: Streaming Quotes

Thank you Jeremy,jimbrown, ne1uno,and raseu,

This gives me alot to study and research.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu