This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Buy as many notes out of the goodness_dict that we can | |
purchasedNotes = pd.DataFrame(columns=notedf.columns) | |
for key in goodness_dict: | |
row = notedf.loc[key] | |
loanId = row["LoanId"] | |
orderId = row["OrderId"] | |
noteId = row["NoteId"] | |
price = row["AskPrice"] | |
log.write("Attempting to buy note\n") | |
log.write("\tLoanId: " + str(loanId) + "\tOrderId: " + str(orderId) + \ |