GetFloat returns 0 for valid symbols
Author: richard1000
Creation Date: 4/10/2017 10:59 PM
profile picture


Tried on Dow 30

Please log in to see this code.

Some symbols such as T, UNH, UTX, etc. return 0 float even though Yahoo website shows the data.

profile picture


The website is not being parsed in this case so it's not a (solid) indication. Here's my PrintDebug log:

UNH 944963000
T 6136595000
UTX 749330000

So no parsing error in sight. Do me a favor, please click on these links, save CSV to disk, then zip and attach them for me to see:

...links removed...

This should let me see if the data is formatted differently when Y! returns it to you. Maybe you're hitting a different server in CDN? Or it returns some garbage.

P.S. By the way, GetFloat resides in Community Components and is a so called 'extension method' in C#. This is why it gives an impression of a built-in WealthScript function.
profile picture


Everything is back to normal. I don't know what caused it. Maybe it was a temporary glitch and I should have just waited a day or two.
profile picture


Looks like a network issue. Perhaps you were hitting a server with bad data.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).