4
votes
Accepted
Fast OrderBook Implementation
Adding to pacmaninbw's review:
There's a hole in struct Order
There's a hole between price and ...
4
votes
Fast OrderBook Implementation
General Observations
The general impression of the code is that this is a fast and dirty implementation. Take the time you need to design and implement a proper solution.
Some things that the code is ...
3
votes
OrderBook Implementation - Follow up
There are no include guards for the header.
using orderid_t = uint32_t;
uint32_t is not defined. I recommend
...
3
votes
Design decisions for an efficient OrderBook
I have to admit that I struggle to follow this. The code seems quite jumbled, rather than well-organised and clear.
The biggest issue I have is with representing everything as arrays of strings, ...
2
votes
Fast OrderBook Implementation - Follow Up
There's still a hole in struct Order
You moved short price to the end of the struct, but ...
2
votes
Fast OrderBook Implementation - Follow Up
General Observations
The code is still missing the #include <sstream> directive in main.cpp and does not compile for me without it. The file ...
2
votes
Simple credit card validation with Luhn's Algorithm
Follow the specs
Credit card numbering is a well-defined system, standardized in ISO/IEC 7812. While accessing the standard text is expensive, the outline of its contents is well documented and ...
2
votes
Design decisions for an efficient OrderBook
Create a type for currency
Instead of passing currency around as a long long or double, I strongly suggest you create a new type ...
2
votes
edgar: Programmatic access to SEC's Edgar API in Python / via command-line
Optional
from typing import ..., Optional
Type annotations have been evolving.
In recently authored source code,
prefer e.g. ...
1
vote
edgar: Programmatic access to SEC's Edgar API in Python / via command-line
If you need to throttle access against rate-limited resources or implement retry on failure you can use urllib3 in conjunction with requests like this:
Source: Example: Automatic Retries
...
1
vote
edgar: Programmatic access to SEC's Edgar API in Python / via command-line
Don't inherit from object in Python 3.
Limiter has been designed at the incorrect level of instantiation. Its ...
1
vote
Accepted
Aggregate transactions in slips
How can I improve ... performance and scalability?
use an appropriate data structure
The inner loop makes a O(N) linear scan over the array of all transactions,
for each slip transaction. There are ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
finance × 263python × 66
java × 55
beginner × 42
c# × 31
c++ × 28
object-oriented × 23
calculator × 20
performance × 19
javascript × 16
python-3.x × 16
php × 16
validation × 16
homework × 14
sql × 11
algorithm × 10
pandas × 9
python-2.x × 8
ruby × 7
interview-questions × 7
c × 6
programming-challenge × 6
multithreading × 6
unit-testing × 6
web-scraping × 6