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

richard1000

#1
Tried on Dow 30

CODE:
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

Eugene

#2
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:

QUOTE:
...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

richard1000

#3
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

Eugene

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