def __init__(self): self.e = EU() self.reqparse = reqparse.RequestParser() self.reqparse.add_argument('query', required=True, help="No company name provided", location="json") super(edgarCIKAPI, self).__init__()
def do_getciks (self, cik): e = EU() all_companies = e.getAllCIKs(cik) printer (all_companies)
def do_getdetails (self, cik): e = EU() all_companies = e.getCompanyDetails(cik) printer (all_companies)
def do_getsummary (self, query): e = EU() all_companies = e.getAllSummary(query) printer (all_companies)
def do_getall (self, query): e = EU() all_companies = e.getAll(query) printer (all_companies)