All Questions
Tagged with finance python-2.x
8
questions
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 ...
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 ...
8
votes
2
answers
154
views
Developing an investment strategy based on stock movements
Below is my code
...
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 ...
8
votes
4
answers
6k
views
Convert an amount to Indian Notation
I need to convert an amount to an Indian currency format:
...
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 ...
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.
<...
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 ...