1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Partial Fix problem with missing Stock Name Data (AMD)

Discussion in 'Stock Trader Resolved Bug Reports' started by realaqu, Jan 31, 2015.

  1. realaqu

    realaqu Member Showcase Sportsbook

    Hi, Bob
    when I try to buy AMD stock on my website, throws out an error, attached picture

    any inputs? 2015-01-31_19-35-34.jpg
     
  2. Bob

    Bob Developer Staff Member

    Not much I can do about that. Its corrupt data provided by the API (Data feed). Its missing the NAME of the stock and the code requires that data. I'd give it 24 (well, more like sometime on Monday) hours to see if they fix the issue. I just checked the FEED and it is missing, so that is why the error is being thrown.
     
  3. realaqu

    realaqu Member Showcase Sportsbook

    thanks for the update
     
  4. Bob

    Bob Developer Staff Member

    If you remember, bump this after the market opens on Monday. Looks like its only in the Public API Data feed as the LOOKUP (which is a different API) has the name and so does the Private API. I've seen this several times over the past decade and they always fix it eventually.
     
  5. realaqu

    realaqu Member Showcase Sportsbook

    bump
     
  6. Bob

    Bob Developer Staff Member

    Doesn't look like its been fixed yet (the API data feed still has empty data for the name field). The NAME of the stock is a required field. You are going to have to wait and see if they fix it. This is one of the unfortunate issues with using an unsupported API (which is still BY FAR the best free API available)
     
  7. Bob

    Bob Developer Staff Member

    Marked as Partial Fix as I've added some code into Stock Trader to compensate for missing "Name" data (which was required). I've removed the "required" dependency within the Data Writer and set a default value to "na" if no "Name" data is provided (mainly for custom code that some people may have).

    I've modified the actionBuyShares Method to check for NAME data and if that data is EMPTY, I then replace it with the Stock SYMBOL... ie, (AMD) has no NAME data, so it will now look like AMD (AMD) for the various displays throughout Stock Trader.

    Working like a charm now.

    Selection_705.png


    Selection_704.png
     
    Last edited: Feb 5, 2015
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.