Skip to main content

All Questions

Tagged with
2 votes
1 answer
195 views

OrderBook Implementation - Follow up

This is a follow up to my previous implementation: The input is of the format ...
Avengerx9's user avatar
2 votes
2 answers
289 views

Design decisions for an efficient OrderBook

I am designing code for OrderBook based in C++, based on STL library. Note that there is a related question here, however it is more simple - it does not support deletion of orders, and I intend to ...
Avengerx9's user avatar
2 votes
2 answers
612 views

Fast OrderBook Implementation - Follow Up

Following up from: Fast OrderBook Implementation Here is the updated version (I've also implemented some extra functionality) ==> Order.hpp <== ...
jpf's user avatar
  • 63
4 votes
2 answers
2k views

Fast OrderBook Implementation

I'm creating a simple yet fast OrderBook, that only adds orders and matches them (no cancelling or modifications, etc.). I'm using partial template specialization to reduce branching in the hotpath, ...
jpf's user avatar
  • 63
2 votes
1 answer
271 views

Heston model implementation in C++

I have implemented an option pricing algorithm following the Heston model. The simulation involves specifying the number of simulations, then generating a discretized path for each simulation (code ...
MattA's user avatar
  • 23
2 votes
2 answers
3k views

Calculating Discount C++

The following question is from the book Problem Solving With C++. This is given as an exercise in the chapter "Functions for all subtasks": Write a function that calculates a discount ...
Strange Alchemist's user avatar
4 votes
1 answer
470 views

C++ bond mathematics calculator

I have written a program in C++ that processes financial bond mathematics, making extensive use of the valarray class, so that mathematical functions and operations ...
Giogre's user avatar
  • 331
2 votes
2 answers
2k 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 ...
Eight's user avatar
  • 21
7 votes
2 answers
2k 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. ...
A J's user avatar
  • 478
3 votes
3 answers
132 views

Data accumulator collecting monthly expenditure

The idea of the program is to serve as a data accumulator collecting monthly expenditure from a user and later display it. I wanted to implement classes/methods and just basic stuff that I understand ...
Big Head's user avatar
3 votes
1 answer
605 views

Calculating the interest on a series of loans

I am a college student and started my first week of C++ and we were given an assignment to convert a Java program that calculate the interest on a series of loans given the amount of the principal, ...
Kamanzi Munroe's user avatar
1 vote
1 answer
3k views

Downloading yahoo finance stock historical data as CSV using C++

This post is a continuation of my previous post where I used jsoncpp package to fetch exchange rates from fixer.io. In this post I have reused the above code and used it to fetch stock historical ...
Eka's user avatar
  • 349
2 votes
3 answers
204 views

Mortgage calculator for homework

I needed to create a mortgage calculator for an intro to CS class. As part of the assignment, with an interest rate of 6% needs to change to 7% after 3 years hence that ...
Jonathan Hall's user avatar
9 votes
3 answers
5k views

Basic mortgage calculator

I'm making a few forms of a mortgage calculator for my intro to computer science class. With inputs, I currently have it outputting the monthly payments. I'll eventually be outputting how long it will ...
Jonathan Hall's user avatar
4 votes
1 answer
413 views

Fake bank account class

I just some reviews on how I can make it more efficient or cleaner and what I should fix in general. ...
Magirldooger's user avatar

15 30 50 per page