![]() |
Could those of you who have seen the after-hours-trading-cheat in action please try this fix to see if this resolves the problem?
I've attached one file to this post. Simply upload this file to your /includes directory, overwriting the already existing file. If this does fix the cheat, I will include this in an official update. |
Quote:
|
Today I'm getting an error (it worked perfectly for two days. I haven't changed a thing):
Quote:
|
Quote:
|
Quote:
|
Quote:
In theory, if a user tries to buy something early in the morning, it should use the current price and not the previous day's price. |
Should there be something for icash on my forumhome that would work with the stock trader? My stock trader links are in the navbar, but they lead to non-existent pages
|
I've posted a new update which includes two fixes:
1) mutual funds can now be bought/sold 2) the after-hours-purchasing cheat should be fixed |
Quote:
|
i heard report from my users today that when they buy before market opens, vbtrader shows the market is already open. This is by design right ?
|
Quote:
At least this is what I suspect. I don't know enough about stocks, live quotes, etc, to know for sure. The data field of Yahoo's I'm using seems to change by the second, so I'm guessing it actually is the "real time" quote. Actually, now that I think about it... this won't fix the cheat. Crap! I will have to think on this again. QUESTION: From where can I get after hour stock quotes? |
Quote:
|
I sincerely doubt that this is real time, as you need to pay for those. I remain convinced that the only way to get around it would be to put the trade on hold and to execute it 15 minutes later, making sure that user still has enough money to do transaction (price variance)
|
I think you're confusing "getting real time quotes" with "displaying real time quotes". However, you may be right -- I wonder if there's anyway to tell? Let me ask you, does it cost money for you to view real time quotes?
The old field I was using, the price would only update every 10-15 minutes or so. The new field I'm using, the price seems to change by the second. I suspect it is a real-time quote. Streaming the data and polling the data are two very different things. Let me ask a stupid question. I'm trying to figure out a way to determine if the market is open based on the data of one specific stock. I'm thinking of using the "Last Trade Date" and "Last Trade Time" fields. If a stock hasn't been traded in say the last 30 minutes, is it "safe" to assume the market is closed? Or is it possible a stock may go hours, days or even longer without ever being traded? |
I get real time quotes from my broker, or when I was doing daytrading, it cost me a hefty penny to see the market live. I believe they do it like that in order to protect the brokerage firms.
It's very possible for a low volume stock to remain idle (no transactions) while legitimately open for trade. Market is open Monday to Friday from 9:30 sharp to 4:00 PM EST. And there again it will not be foolproof because of holidays. |
*clicks uninstall*
Good idea, but I can't get it to work with iCash on 3.6. I reinstalled everything 3+ times and still nothing. |
Quote:
|
any feeds for uk stock exchange?
|
Hi. Is there any point in changing the exchange rate of forum points -> USD?
Additionally, might I suggest the option of adding a multiplier to any gains, as it would provide faster short term gains for forum users? |
Additionally, there seems to be a bug with one of the rows in the table on the 'Sell Preview' screen.
See here: http://img239.imageshack.us/img239/6...rscreengd5.jpg When you have capital gains tax set, the row for capital gains tax pops out instead. |
I tried to install this on 3.6.4....but when I got the the vbtrade page it is nothing but jibberish meaning:
"symbol", "n" => "name", "l1" => "lasttrade", "v" => "volume", "c1" => "change", "p2" => "perchange", "d1" => "lasttradedate", "t1" => "lasttradetime", "x" => "exchange", ); var $service_url = 'http://quote.yahoo.com/d/quotes.csv'; var $format = null; var $request = null; function StockRequester() { foreach ($this->request_formats as $code => $key) $this->format .= $code; $this->request = $this->service_url."?s=%1&f=".$this->format; } function BuildHash($string) { $retval = null; $string = str_replace("\"","",$string); $stack = explode(',',$string); foreach ($this->request_formats as $code => $key) { $retval[$key] = trim(array_shift($stack)); } return $retval; } function GetSingleQuote($symbol) { $request = str_replace('%1',$symbol,$this->request); $response = implode ('', file($request)); return $this->BuildHash($response); } function The entire page looks like this, can someone help me get this working? I love the idea behind this would love to have it up and running :) |
Quote:
|
I did reinstall 3 times, even download the files again :(
|
I fixed it, at the top of the php page, you have this:
PHP Code:
PHP Code:
99% of the time this does not matter, in this case it does....seems ok now :) |
it stops working today...something wrong with the yahoo feed ?
|
Quote:
you saved the day for me. I was getting lots of emails about site being unaccessible. After your message I disabled the vbadvanced stock trader and all is fine. Yahoo probably closed the feed. |
Looks like Yahoo change the subdomain of their feed, which is causing Stock Trader not to work at all. Upload the attached class_stocktrader.php file to your /includes directory, overwriting the existing one, and this should fix the problem.
|
Glad I spotted this early.
Overwrite with new file and all is fine. Thanks Zethon for the quick fix. I posted a bunch on your board about this ;) |
A quick question
How would I use template conditional to show in the postbit the $post[ambportval] only for members whose portfolio > 0 Otherwise, don't display that since I have lot of people with portfolio = 0 Something like this (not quite right yet) Code:
<if condition="$post[ambportval] == 0"> |
After playing with it for a couple of minutes...I found out a way to do this. Hope this helps
Code:
<if condition="($show['reputation']) AND ($post[ambportval] != 0)"><div class="pbit" align="left">Portfolio: $$post[ambportval] <br> |
Hi zethon,
Love your mod. Is there any I could use this mod with other stock exchange? I'm thinking of using it with the Singapore Stock Exchange (SGX). Please advise. |
I have problem i do not have the icash and money ,
i am using reputation , but that is not increasing , can you provide any option so that i can give all a single amount so that can use the same for trading amount putting all on parity with starting amount. |
I had this installed and it was working great. But now I am receiving intermittent problems which will last for hours at a time. It seems it is unable to retrieve the CSV file from finance.yahoo.com despite the fact that you can browse directly to the url it passed to file() and the CSV file is served up just fine. What's the deal?
The error looks like: Quote:
|
Can you make the plugin not to be viewed by guests/not logged-in users?
|
all working fine..
just found a bug for one stock Infy.ns if i buy it , it works fine, but if i sell it then the status of the stock shows 0 value. error message Quote:
|
Hi,
I installed it using REPUTATION field and it works fine 2 questions 1) How would we put "a" yahoo stock runner in there 2) How can we see the other players stats |
Well its already july... where is the full version o.O
- edit I cant buy some stocks... does it only allow a few stocks to buy? |
how can i add it to navbar?
|
Quote:
Just installed stock trader with the new vbcredits and it works good, had to put credits for the money row. Only negative thing is it shows 12 decimal spots for the amount of cash on hand. |
I'm having a problem, I just installed it and pressed "stock trader" and it goes to a blank page, nothing is happening. It's turned on and everything too from the options.
|
All times are GMT. The time now is 09:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|