• Hi there people, first time poster here and total wordpress noob

    I hope I’ve chosen the right part of the forums to post this

    The things is I have this java based platform which gives me different windows that have numbers, and few letters, changing all the time as they come from a real time feed, and I don’t have the code of this java platform since it is not mine

    one of the windows shows like this: (not adjusted size)

    View post on imgur.com

    and it’d go changing all the time, something like this:

    View post on imgur.com

    I’m trying to figure this out how could it be done the easiest way but can’t get over it. Not sure this is possible at all, even though all I read about wordpress dot org is that anything is possible ??

    • This topic was modified 6 years, 9 months ago by gofiodetrigo.
Viewing 15 replies - 1 through 15 (of 16 total)
  • What is it you are trying to do integrate the java application into WordPress? or replicate what it is doing in WordPress?

    Moderator bcworkz

    (@bcworkz)

    It’s true, just about anything is possible, given adequate resources.

    If you don’t have the source code, you would be starting over. In that case, I’d avoid Java if you can. IMO, it does not integrate well into web pages. If you are coding your own, the best approach partly depends on what languages you are comfortable with and who your target audience is. Developing a mobile app is going to be different than developing a traditional web page. A progressive web app is a sort of hybrid web page/mobile app that might be a good solution.

    You will want to minimize server requests for updated data, so some sort of simulated progress is called for. True real time data is impractical. A good part of the code will likely be JavaScript (not the same as Java), along with some server side PHP to feed the client app updated data. Unless it’s strictly a mobile app. WP is well suited for JS/PHP based web page apps run in a browser.

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    hey, thank you very much latro666 and bcworkz to chiming in and taking your time to answer

    I’m gonna try to make this long story as short as possible. Here is the thing, I’m not a programmer, nor english is my mother’s tongue, so first of all excuse my ignorance and my lousy english. I’m just the one who’s gonna put the content in, but that content is about trading, currencies, gold, dollar, etc, that kinda stuff, and so usually have an “account summary” window, or folder, where it resumes, real time, how you’re doing, and that’s what i want to show – most people like to see the other fail, u know that= visits

    I wished i could just grab and paste my little java window to the left of the screen and everybody could see it, but it’s been a hard time figuring out just how, and I think you are confirming me it is just not as easy as anyone would have thought – oh, just make a blog, it’s so easy, people say

    If I don’t show exactly what I see in my screen, in my opinion, credibility is lost. I know I can not do it, not capable, but i know it can be done, taking that data from that window, and kinda building my own window, with same result, but how anybody knows it aint manipulated that data? Just wondering. Also thought about some kind of screen sharing, partially, but haven’t found much about it either

    Honestly i don’t know how to get over this, but without that window there is no blog (they actually two windows, an “account balance” one, and an “exposure” one, really tiny -1/6th of a 15” screen wld be it – left sided, with a double column format, two different posts but about the same thing, just like the two sides of a coin)

    after a long while of research found out wordpress dot org would be what I was looking for, and I still believe it can be done, it is just I don’t know (yet) how

    haven’t seen anybody else doing this so far

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    by the way, i haven’t yet asked the broker who provides this java based platform if there’d be a way to get the code, as they back in the day offered a really expensive API, and given I’m sad I’m not a fortune teller, or otherwise i’d have goten the 128 million euro lottery yesterday, I’m gonna ask’em, since i already have the “no”, and see what happens next

    having the code would change things a bit, wouldn’t it?

    Moderator bcworkz

    (@bcworkz)

    Thanks for the additional information. Yes, if you had the Java applet available on your site, users could install the JRE browser extension on their computer and the applet will run for them. There is likely some sort of data restriction so they couldn’t get the necessary data without some additional configuration. The problem is more getting the data than displaying it.

    You are right, the validity of the data presented could (and should) be questioned. You should be disclosing the source of the data. Users could compare your data with that directly from the source to convince themselves all is as it should be.

    The data comes from some kind of API. When it comes to commodities trading data, it’s typically not something the API provider is willing to let out unrestricted for free. Some data may be available to the general public that you could tap into, but that would become a custom development project you would need to hire out. Such public data is not real time, it’s delayed by some period of time, like 15 min or something. The true real time data used by professional traders only comes at a very premium price AFAIK.

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    interesting (to me at least) how hotmail (well, outlook now) sent first answer here (in this thread) to the unwanted folder (“correo no deseado” in spanish – my set up) while the second one did not, that is the emails that notify the replys

    did not know i had another answer before posting this, just wanted to notice the email thing – hope it is not a problem i take the time to read it and reply later…

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    thanks again for the answer bcworkz, u know, after reading ur lasts posts, and starting to thinking I might give up on the showing the window I wanted, thinking “everything could be done”, and that it could be done so easily (my own falacy), I thought about this web (wont give names), that is got already its “reputation”, as a credible “auditor”, let say, I have to double check, but I think they do give the code of the aplets they give to the user in order to see the data. The thing is I give the web my password and they take all the data straight from the platform, and show the performance…trading history, and all that, and even though it is not real time data, its got its delay, which is not the real “issue”, but that that data is TRUE, in which case the reputation of this web would valid, as a third party, not as if I made the data up myself. Will follow that path too, see where it leads me.

    I wanted to start showing the data from a “white label” source as much as I could, that is not givin the name of the broker since there’s no deal with them, but at the same time ending up with legal issues, so now if I could use this shortcut, it could be a two birds one stone kinda thing, so again thanks for throwing some light to this darkness

    About the real real time data you are right and more so nowadays with all the HFT (high frecuency trading) and all that stuff going on, which makes almost impossible to match what you see in the screen with what is really going on in the market, but in this case the data comes from a market maker, I get it myself, and it is not really important the data you see is real time with the market, but that it comes in a sequenced flow, or don’t know how to say it. That the numbers change in a fluid manner, just as the animated gif I posted earlier, because that’s what you see in the account balance once there are trades on, and so it all fluctuates constantly, and that’s what i’d like people could see in the wordpress dot org blog, so everytime you come in and visit, the results are gonna be different.

    That’s more or less what I mean by “real time” in this case, and the auditor web I mentioned can do that. It’s got its delay, but it changes every few seconds, so that could work, while at the same time I can make a public profile in the web, so anybody can go and see all the same info I could see, that is date of trades…sizes…pairs…etc etc. Let see ??

    Moderator bcworkz

    (@bcworkz)

    It sounds like you’ve some good thoughts to consider. I wonder how “real time” the data displays you refer to really are. Forgetting the built in delay, just the constantly changing values, even if they are “stale”. True data feeds like that to hundreds of thousands of users ends up being a huge server load. I would not be surprised if the data shown is extrapolated from the latest trend until solid data can again be retrieved. So maybe the solid data comes once a minute or so. Any “updates” in between are speculative. Of course as soon as you begin to do something real like place an order, everything is refreshed so you are seeing true data again. It’s only when the display is “idling” when the data is speculative.

    I’ve no evidence that this is the case. I’m only guessing, I’ve not done any real investigation into such displays. There’s also a difference between a large brokerage feeding data to account holders and feeding the same data to the general public. A brokerage can afford the server resources to serve account holders with “real time” data. Serving the general public would have to be at least partly speculative in my opinion. Of course, if your user base is small, you could get away with true real time data through regular “heartbeat” Ajax requests. But it will not scale well.

    Thanks for pointing out the notification issues, but there’s not much we can do about what mail clients do with our notifications. Determining what’s no deseado is really a black art. Very few can tell you how it really works and those few aren’t talking. Any mail server that sends out huge volumes of email is going to be suspect. Some percentage of recipients are going to report notifications as spam regardless if they in fact opted in or not. I don’t use Outlook, but I think there is a way to whitelist forum notifications so they don’t go to no deseado. It may not carry over to Hotmail though. It may be all you can do is keep moving notifications out of no deseado and into your inbox. Supposedly the system eventually learns to not send such messages to no deseado. YMMV

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    that’s exactly what I’m so far doing about the email bcworkz (I find it somehow weird I can’t quote somebody else’s post being in a forum, or perhaps it is still don’t know how) as matter of fact I’m answering out of the gate right now cuz I checked again, randomly, as usual, the “no deseado” (hehe) folder, and found the email with the notification. Again marked it as “it is not no deseado”, and hopefully it will finally learn haha. Anyways I’m checking the no deseado folder now more often than usual, which is almost never. And so, yeap, I’m having this little issue with the mail, so plz excuse me I’m not answering earlier. Now I want to read your answer with time and then will answer back. Haven’t checked either about the code from the “other” source. Wasn’t expecting so much feedback so soon. Very much apreciated ??

    • This reply was modified 6 years, 9 months ago by gofiodetrigo.
    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    OoK, great, I think I’ve got some good news, at least for me. Finally had a look into that other “auditor” web, and found out they have “widgets”, so, before a deeper look, sounds like an open door to me, after months of closed ones.

    About the “real time” thing, I’ll try to brief it hopefully once for all and so it also works for me for the future. At first, given I was thinking I could use my broker’s data, that was kinda real real time data, and not thinking in huge numbers of connections, I thought I could paste easily that real time window in the blog, but it is not a need for the blog, it is more like a tracking tool, that it works at a glance. It is not a need for the content I mean, it is more for the audience, potential, audience.

    The blog wont have anything to do with all that kinda real time news…commentary…not at all financial advise, etc, with all the disclaimers needed, even ad nauseam if neccesary, nor any kinda way of selling nothing, no advise, no signals, no bull, just a kinda showin off blog, if u will. And only once a day. Like a stand up comedy show if you will, hopefully also entertaining for the few minutes it should take to read/watch it, since most commonly will have a chart attached. Shorter than this post

    that is, one comment about some data, chart, etc I find it worth commenting, in one column, and the second post with what I do, trading wise, regardless of the previous comment in some ocasions, in the market itself, takin a position, not necessarily day trade, which in case one haven’t read the full load of the blog, wont matter because anyone will see the “edge”, as it is called, at the right of the screen, with a little number and a negative symbol in front, or no symbol at all, meaning positive. It is thought to be on a one hundred per cent basis, so no need to know the starting amount, it is either above or below 100

    and just a double post a day (hopefully in the future in two languages english, first, and spanish, second (two separate domains), targeted also for english speakers interested in learning spanish language – I’ve heard it’s kinda cool that nowadays in India, a huge player in gold global market, by the way, and one of my main public targets)

    So, I bet your’re gonna get now right away bcworkz what i meant by real time and what I mean now. That is, once every minute a real update:? That sounds great to me. If can be less time it’ll be better of course, but I could manage that, as long as the “widget” reads, as it does, “this is our trusted data”, you know. I can take “slower” data, let’s call it that way, if it is trustworthy in the same way

    Thank you very much for your interest and help bcworkz cuz believe it or not I’ve been able to make it further after a long stagnation time (Saturn’s fault, not mine, lol, just kidding :-p)

    • This reply was modified 6 years, 9 months ago by gofiodetrigo.
    • This reply was modified 6 years, 9 months ago by gofiodetrigo.
    Moderator bcworkz

    (@bcworkz)

    Thanks for the explanation, it’s helpful. It’s still hard to comment without knowing what resources already exist. And the specifics of the implementation can largely affect server load and scalability. It’s a lot different if the widget or whatever is only displayed on a single blog view or if a number all appear on an archive page, each reflecting their blog post’s unique data. A minute update interval may be fine or it could bury the server. Of course it depends on the server resources as well. Shared hosting will be overloaded much sooner than a VPS or even better hosting setups.

    Where the raw data is coming from will also factor in. Assuming some sort of API is available, it’s likely limited in how many requests you can make in a time interval. Your widget would want to have a caching element on your server so a single API request can serve many many client updates using the same cached data.

    What you have to initially work with makes a difference. It might be anything from an existing widget in a WP plugin you can just use, to a completely bespoke app developed to work with whatever API is available.

    I guess the first thing to do is find out what resources already exist that you might be able to utilize.

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    once I’ve opened the new account for the project in this “auditor” web choice, could I paste here the “widget”, code, screenshot, or whatever would be related to it, so there could be a better image/idea of what is it? or would it be considered as spam? thanks in advance

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    so far I’ve installed wordpress in two local hosts I can regularly work with, so my intention is to keep working on that base till further move into some paid server if the thing gets legs

    Moderator bcworkz

    (@bcworkz)

    Please use pastebin.com or gist.github.com for anything more than brief snippets of code. Then just link to it here. It’s not any of my business what happens beyond these forums, but you shouldn’t be posting copyrighted code for public review anywhere. Just sayin’. If the code is intended to be placed on a public website, that seems like something that’s permitted to be published in pastebin. Embed and tracking codes for example.

    Thread Starter gofiodetrigo

    (@gofiodetrigo)

    Sounds great. Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Real Time Feeds’ is closed to new replies.