Top Gainers API

The Api print(nse_get_top_gainers()) provides only 5 stocks. Is it possible to make it to 30. Can this made variable so that you can fetch number of stocks as per your requirement ? By the way thanks for your time & efforts.