vsjha18 / nsetools

Realtime Data From National Stock Exchange (India)
http://nsetools.readthedocs.io
MIT License
807 stars 421 forks source link

AttributeError at /gameservice/nse/ 'Nse' object has no attribute 'get_top_gainers' #86

Open Devesh14 opened 4 years ago

Devesh14 commented 4 years ago

from nsetools import Nse

class Nse(APIView):

def get(self, request):
    nse = Nse()
    index_codes = nse.get_top_gainers()
    return JsonResponse(index_codes)