Skip to main content

All Questions

Tagged with
6 votes
1 answer
987 views

Calculate implied volatility for options on stocks and futures with two models

I wrote a code for a quant finance job and they told me that, besides it worked, it was poorly written. I asked for a more detailed feedback but they did not send it to me. I paste it here with ...
spec3's user avatar
  • 165
25 votes
4 answers
18k views

Validating Credit Card Numbers

This is one of the puzzles I was trying to solve, where the question is to validate the credit card number with following characteristics: It must contain exactly 16 digits. It must start ...
Here_2_learn's user avatar
8 votes
2 answers
154 views

Developing an investment strategy based on stock movements

Below is my code ...
Pankaj Jain's user avatar
4 votes
1 answer
3k views

Calculate stock portfolio profit based on CSV data

import time import csv import argparse from nsetools import Nse from colorama import Fore nse = Nse() t = time.time() CSV file contains the following data, I ...
Dana's user avatar
  • 175
8 votes
4 answers
6k views

Convert an amount to Indian Notation

I need to convert an amount to an Indian currency format: ...
User_Targaryen's user avatar
0 votes
2 answers
3k views

Calculating and printing a credit card balance

I am working on a problem that simply calculates and prints the credit card balance. I hope this code can be improved/optimized a lot. I am from a Java background. If it was Java code, I would have ...
srk's user avatar
  • 608
3 votes
3 answers
20k views

Python 2.7 Payroll Calculator program

This is a calculator I'm working on. The ultimate goal is to calculate multiple payrolls before selecting to end the program, please review current version in that context. PSA: I'm a beginner. <...
Aaron's user avatar
  • 347
6 votes
2 answers
3k views

Python tuition calculator

I'm a student learning Python, I made this calculator that will tell you the tuition for the next 5 years at an increase of 3% per year. How can I improve on this and did I do anything that isn't best ...
Aaron's user avatar
  • 347