Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Andrew Dinh
    @andrewtdinh
    Hi Christian

    function buyStocks(){
    var symbol = $('#stockID').val();
    var porfolio = $('#portfolio-list').val();
    var shares = $('#shareNum').val();
    var url = 'http://dev.markitondemand.com/Api/v2/Quote/jsonp?symbol=' +symbol+ '$callback=?';
    var position;
    $.getJASON(url, function(response){
    position = response.LastPrice * 1;
    });
    var stock = {};
    stock.symbol = symbol;
    stock.shares = shares;
    stock.position = position;

    }

    $('#buyStocks').click(buyStocks);