Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [finance]

Finance is for anything related to currency, payment systems, credit card number validation, etc.

2
votes
2answers
72 views

Loan repayment calculator

I am having some trouble figuring out how to modularize this code without rewriting it entirely. I know I should be able to break it up into modules for main, gathering info, doing calculation and the ...
0
votes
1answer
158 views

Simple calculation of sector coefficients using PHP

Function This class extends the key class, called EQ, and does basic calculation based on minutely data. It then calculates weight coefficients (e.g., [0, 1]) for ...
3
votes
1answer
24 views

Mortgage calculator with Swing for Helsinki MOOC

New to Java, just finished the Helsinki MOOC course. I programmed a basic mortgage calculator as my first solo project and while it works, I have a few questions about coding style: The listener and ...
3
votes
1answer
59 views

Tracking stock prices using Python and Google Sheets

The purpose of this program is to keep track of some stocks that we bought in a game and every week we must list the closing prices of each stock in a Google Sheet. I thought since I had a lot of ...
5
votes
2answers
402 views

OOP bank account program in Python 3

Python beginner here. Building an OOP bank account program with SQLite and starting to struggle a bit with its design. From a design standpoint I have a file (bank) which calls ATM. ATM simulates an ...
0
votes
2answers
87 views

Loan calculator in C

I wanted to create a loan calculator, but the code I could think of was using 3 functions, and calling them and getting result. But I felt it was easy but bad code because I thought this can be ...
0
votes
1answer
151 views

Predicting credit card default

I have this code for predicting credit card default and it works perfectly, but I am checking here to see if anybody could make it more efficient or compact. It is pretty long though, but please bear ...
1
vote
1answer
53 views

Python 'Cashflow' object

In the code shown below, I have created 3 classes. The first of these are an 'Payment' class and a 'Annuity' class, which allow the user to create objects representing individual or recurring payments ...
0
votes
2answers
67 views

Python 'interest rate' object

I have only recently started learning python and the below is my attempt to create an 'interest rate' object which, given one of several types of interest/discount rate, gives the user access to all ...
1
vote
1answer
79 views

Renting vs. owning comparison calculation

I have working code that compares rental prices and owning costs, given some parameters. It works, but it surely does not look good. I hadn't worked with time-series before and I wonder how I could ...
2
votes
2answers
50 views

The importance of consistency in percentage returns when investing

It is said that Being consistent in percentage annual returns leads to larger amount over time. That is for any given principal, getting 20% successively for 2 years is better than 30% for first ...
-1
votes
1answer
254 views

Compound interest calculator homework [closed]

I am a beginner at coding Java and am having a tough time understanding what is wrong with this code. This is an assignment I had posted about earlier and I also went to a Java tutor at my school for ...
7
votes
3answers
978 views

Reversible tax calculator class

I have a class that contains 2 properties of the same type. decimal NetAmount and decimal GrossAmount I would like to ...
2
votes
2answers
137 views

JavaScript interest rate calculator

As I am still new to web development, refactoring my code is still something that gives me some trouble. I would really appreciate it if someone could look over the Javascript for an interest rate ...
2
votes
1answer
271 views

Profit Margin Calculator in Python (with installments)

I was sent here from StackOverflow to get some insight on how I can improve my code. I'm a beginner and the program is not streamlined at all. What the program does: Takes an input of the Retail ...
6
votes
1answer
461 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 ...
2
votes
1answer
106 views

Kids bank account in Clojure

I'm learning clojure. A while back I made a python bank account for my kids, teaching them to save. Have a look here. The Python one was a class and it created a table that had a little interest ...
7
votes
2answers
857 views

Bank Management System

I'm new to C++ and wrote this Bank Management System app. It's one of the projects that everyone does as a beginner. This app runs perfectly so far. I tried to use OOP and encapsulation in this app. ...
1
vote
1answer
119 views

Currency exchange app

I'm making a currency exchange app, it works as follows: User types in on desired currency input and the rest of the input fields change with state based on the currency value from the input used, I'...
4
votes
1answer
1k views

A little stock market game in Python

This is a stock market game I made in Python a while ago, and I wanted to go ahead and share it on here. If you are wondering, the reason why there is only 2 stocks is due to the fact that creating a ...
6
votes
1answer
749 views

Bank saving account class in Python (pandas)

I am setting up a kids bank account class to teach them how to save, and myself how to write a class in Python. The original idea was to create a pandas DataFrame that will show how the money gains ...
2
votes
0answers
85 views

Computing most-cost effective loans in financial graphs using Java

Problem statement We are given a directed graph \$G = (V, A)\$, where \$V\$ is the set of actors and \$A \subseteq V^2\$ is the set of directed arcs. Existence of an arc \$(u, v) \in A\$ is ...
3
votes
0answers
81 views

Investment tracker allowing users to store investment information and later access it

This investment tracker allows users to store investment information and later call upon it. This is a simple solution to making investing easier to maintain. This application has a simple login ...
21
votes
3answers
4k views

Financial website scraper

I wrote the code that would scrap Finviz for tickers and href that attach to the ticker. I tested with multi-page as well as one page. I'm new to python programming and therefore believe my code is ...
6
votes
1answer
848 views

Expense Tracker for keeping track of payment information

This system is a expense tracker. It allows ordinary people to track expenses, like bills , car notes, and keep up with the payments they make. I had this idea after my father and mother began to mess ...
7
votes
2answers
4k views

Banking application for practice

A few weeks ago I have started to teach myself C# and just finished my first little project, a very basic banking application. I don't expect it to be good but would like to get feedback (no matter ...
2
votes
1answer
5k views

OOP ATM application

As part of my studies, I need to gather peer feedback as part of my object-oriented ATM application. I have only used classes (inheritance etc.) and no GUI is required for this. Could you please give ...
3
votes
1answer
1k views

Calculate EMI based on principal, rate, duration (month or years)

I am trying to create an EMI calculator for a loan. The problem description is: Given a principal amount, rate of interest, monthly or quarterly installment terms and duration of loan in months/...
4
votes
1answer
2k views

Basic Java bank account

I'm having a bit of trouble setting up a basic bank account in Java. I'm trying to create a transfer method that I can call to transfer funds from one account to another. The problem is that the ...
2
votes
1answer
511 views

Bank ATM machine in Ruby

I've made a simple implementation of a bank ATM machine in pure Ruby. I'd like to hear some recommendations to make my code more idiomatic. atm.rb This is the startup file. I didn't use a class and ...
2
votes
0answers
73 views

Back-testing algorithm for equity

I've written a code on python which back tests on equities data, to compare result of strategy against a benchmark. I want someone to review to assure that program works as desired, and any changes ...
1
vote
1answer
609 views

Stock trading script

The script uses a financial indicator called moving averages and their crossover points to recommend best actions for stock trading (buy vs sell). starting_cash: ...
4
votes
1answer
250 views

Banking: Calculate the Capital Requirement to calculate Risk-Weighted Assets

I know it's not the perfect code, but it outputs the correct values. Could anyone give me some pointers on how to make the operation more Pythonic? ...
9
votes
4answers
10k views

Simple budget program

I've decided to start working on a budget application for the purposes of enhancing my Python skills. In its current form this program takes given expenses and income and tells the user whether they ...
24
votes
4answers
10k 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 ...
4
votes
3answers
423 views

Payments Service

The code that I am working with below is a payment service and MakePaymentRequest request takes in two account numbers, a receiving and a sending account, payment ...
7
votes
1answer
86 views

A command-line application that manages my lending accounts

I'm learning Python and tried to solve a problem that I have. That problem is "managing" the people who owe me money. Basically, my project goal is: v0.1 - command line application v0.1.1 - command ...
15
votes
3answers
13k views

Basic Python OO bank account

I am learning Python and in particular learning about classes. Since I'm self teaching, I'd appreciate any feedback and constructive criticism. I have a couple specific questions: In Python you can ...
5
votes
1answer
198 views

Buy-sell order board, as a TDD interview

I recently did a technical test for a well known Bank in 'The City' and as a result got no further. They were also kind enough not to give me any feedback. The test entailed a TDD approach to a simple ...
2
votes
3answers
169 views

Calculating money made per hour

I am new to coding and made myself my first little program, which lets me calculate the amount of money I make per hour doing a transcription project. While my code works (yay!) and I am proud of my ...
3
votes
1answer
207 views

Student project that calculates the return on an investment

This is a simple student project that calculates the return on an investment with a given investment amount, number of years invested, and annual interest rate. I know this is pretty basic, but I'm ...
1
vote
0answers
46 views

Processing string market data and perform calculations

I would like to know how I can make the following more readable/maintainable, reduce side effects and account for edge cases, unit test cases and things I need to be aware of with extreme values. ...
8
votes
2answers
142 views
5
votes
5answers
2k views

App that calculates interest into a monthly payment

This does work and serves the purpose. But, being my first code, it's sloppy and I know there are somethings I could of done to make it easier. I would like everyone's opinion on what I could do to ...
3
votes
3answers
316 views

Claiming coupons [closed]

I am currently creating a system that allows a user to claim a coupon, after the coupon is claimed the receive currency on their account. I recently ran into an issue in which if 2 requests with the ...
2
votes
1answer
2k views

IRS Tax Calculator in Java

I am working on a tax calculator for a school assignment and was hoping to get some feedback on my current progress. I kind of feel like I over-complicated the code. NOTE: I am required to do all of ...
3
votes
1answer
1k 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 ...
1
vote
2answers
72 views

Expense family script

I wrote a script in Ruby for a better family budget overview. The expenses are hold under a CSV file. Any feedback is welcomed! ...
1
vote
0answers
1k views

Barrier Option Pricing using Python

This is my implementation of pricing an exotic option (in this case an up-and-in barrier option) using the Monte Carlo simulation in Python. I use NumPy where I can. Any ideas to optimize this code? <...
3
votes
1answer
783 views

My Basic Tax Calculator

The goal is: I can add many services as I need. I can add many taxes as I need (the idea is that services has all of this taxes) Calculate per services each tax value Sum all the taxes of each ...