There is a problem with the function GetTicker (()) on the analog disk

Author: Mr. Ho, Created: 2018-02-09 09:53:07, Updated:

exchange.GetTicker () Theoretically returns market data within the current 24 hours, in which the High, Low is the highest price and the lowest price within 24 hours, but in the blurry flower display test, but every time every moment is returning a different value, making people suspicious, little dream trouble to see.


More

The Little DreamI understand what you mean, this ticker data has a maximum price, a minimum price Definition Each exchange has different standards, some are used for 24 hours, some are used for a few minutes, etc. There is no uniform standard. So when this value is used to combine the specific exchange to see, BotVS is the highest and lowest in 24 hours. What's up? function main (() { var beginTime is equal to 0 var endTime is equal to 0 Var per ticker is null var isFirst = true while ((true) { This is a list of all the different ways Var ticker is credited in the database. if ((isFirst) { Per ticker is the ticker. startTime = new Date (().getTime (() is the name of the isFirst = false I'm not sure. What do you mean? endTime = new Date (().getTime (() is the name of the If ((ticker.High!== perTicker.High) { is the number of tickers in the list. Log ((endTime - beginTime, "high update cycle of the ticker", (endTime - beginTime) / 1000 / 60, "minutes") Per ticker is the ticker. startTime = new Date (().getTime (() is the name of the // throw "stop" I'm not sure. LogStatus ((_D, ticker) is the name of the file. Sleep ((500) I'm not sure. I'm not sure. What's up? You can test it with this code.