Skip to content

Instantly share code, notes, and snippets.

View anthonymorast's full-sized avatar

Anthony Morast anthonymorast

View GitHub Profile
## 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) + \