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.

Implemented Add flood checking to purchase and sell

Discussion in 'Stock Trader Closed Suggestions' started by realaqu, Feb 11, 2014.

  1. realaqu

    realaqu Member Showcase Sportsbook

    I bought same stock twice, say aapl in a short time, because no response from the server, say 1000 aapl, then again another 1000 AAPL, now my credit is -10, 0000$, I have 2000 AAPL right now, but next morning, I found my cash reset to 0, now I got 1000 free AAPL, please correct this bug
     
  2. Bob

    Bob Developer Staff Member

    I don't understand. Can you please try and post a more detailed explanation of what happened. Stock Trader doesn't just "RESET" anything.
     
  3. realaqu

    realaqu Member Showcase Sportsbook

    do you have the step to check if there is a network delay, user can submit purchasing request twice in a short time? you know the addon called "merge duplicate post"? something like that.
     
  4. realaqu

    realaqu Member Showcase Sportsbook

    say I have 100$ in hand and can buy max 20 shares of stocks A, but because of network delay, I can actually submit twice even I do not have enough credit, so I actually have 40 shares of stock A with a negative balance
     
  5. Bob

    Bob Developer Staff Member

    you mean like FLOOD Checking?
     
  6. Bob

    Bob Developer Staff Member

    btw, you can't have a negative balance with stock trader cash. Stock Trader cash is an unsigned field which means only positive integers. Did you modify the field or addon or are you using another cash system that allows for negative cash values?
     
  7. realaqu

    realaqu Member Showcase Sportsbook

    I m using the free addon called credit
     
  8. realaqu

    realaqu Member Showcase Sportsbook

    I guess so
     
  9. Bob

    Bob Developer Staff Member

    I moved this to suggestions and changed the title to "Add Flood checking to purchase and sell" as this isn't a bug.
     
  10. Bob

    Bob Developer Staff Member

    Flood checking has been added to both BUY and SELL actions.

    PHP:
    $this->assertNotFlooding('post');
     
  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.