def my_notes(self, start_index=<NUM_LIT:0>, limit=<NUM_LIT:100>, get_all=False, sort_by='<STR_LIT>', sort_dir='<STR_LIT>'):
index = start_index<EOL>notes = {<EOL>'<STR_LIT>': [],<EOL>'<STR_LIT>': <NUM_LIT:0>,<EOL>'<STR_LIT:result>': '<STR_LIT:success>'<EOL>}<EOL>while True:<EOL><INDENT>payload = {<EOL>'<STR_LIT>': sort_by,<EOL>'<STR_LIT>': sort_dir,<EOL>'<STR_LIT>': index,<EOL>'<STR_LIT>': limit,<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>response = self.session.post('<STR_LIT>', data=payload)<EOL>json_response = response.json()<EOL>if self.session.json_success(json_response):<EOL><INDENT>notes['<STR_LIT>'] += json_response['<STR_LIT>']['<STR_LIT>']<EOL>notes['<STR_LIT>'] = json_response['<STR_LIT>']['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>notes['<STR_LIT:result>'] = json_response['<STR_LIT:result>']<EOL>break<EOL><DEDENT>if get_all is True and len(notes['<STR_LIT>']) < notes['<STR_LIT>']:<EOL><INDENT>index += limit<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return notes<EOL>
Return all the loan notes you've already invested in. By default it'll return 100 results at a time.

Parameters
----------
start_index : int, optional
    The result index to start on. By default only 100 records will be returned at a time, so use this
    to start at a later index in the results. For example, to get results 200 - 300, set `start_index` to 200.
    (default is 0)
limit : int, optional
    The number of results to return per request. (default is 100)
get_all : boolean, optional
    Return all results in one request, instead of 100 per request.
sort_by : string, optional
    What key to sort on
sort_dir : {'asc', 'desc'}, optional
    Which direction to sort

Returns
-------
dict
    A dictionary with a list of matching notes on the `loans` key