In finance you'll find low accountability for developers. Basically finance is where great developers go to get paid a lot to become horrible developers. Very few companies in finance are pushing the bar on quality code since they culturally cannot accept the cost of that. It doesn't make sense until it is too late and by then their code base is too entrenched. I've seen this at countless finance companies, and from…
High-Speed Trading Firm Deleted Some Code by Accident
41–50 of 63 posts
Re: High-Speed Trading Firm Deleted Some Code by Accident
#42Earlier quoted context omitted.
Some unit tests would be nice. Maybe even a special folder full of tests that know when laws have been broken.
Or how about at least some code documentation. In this case the programer deleted the code because he didn't understand why it was there. Well a simple "# Needed to Comply with regulation X" would probably have prevented this problem.
With that said, libraries that send orders to exchanges are required by the exchanges to be certified against their expected behaviors. If you want to send routed ISO orders, you have to test that with them. When making changes to said libraries, it can often be good to re-certify to ensure things are still working as expected.
Re: High-Speed Trading Firm Deleted Some Code by Accident
#43In finance you'll find low accountability for developers. Basically finance is where great developers go to get paid a lot to become horrible developers. Very few companies in finance are pushing the bar on quality code since they culturally cannot accept the cost of that. It doesn't make sense until it is too late and by then their code base is too entrenched. I've seen this at countless finance companies, and from…
I can confirm this. I just wish I had known about it before I accepted my current contract...
Re: High-Speed Trading Firm Deleted Some Code by Accident
#44Earlier quoted context omitted.
It is not about confidence. It is about ownership and being a good engineer. A good engineer would have cared about the code base and ensured that a test would fail, a use case would be linked to that failure, and someone would see that they have now violated a regulation. Then if the regulation changed, someone would grep through the use cases, and see what behavior is occuring/ how to modify the code base to cope w…
Real engineers are like true Scotsmen, because you can never have enough process. In this case, of course tests really do prove the absence of bugs rather than just (not) proving their presence. I really don't like the whole "unit tests lets you not worry about breaking things" view. That's not confidence, it's overconfidence . And it doesn't even mostly work for things where "correct" is more fuzzy than "eventually…
What would you propose as an alternative?
Re: High-Speed Trading Firm Deleted Some Code by Accident
#45Earlier quoted context omitted.
It is not about confidence. It is about ownership and being a good engineer. A good engineer would have cared about the code base and ensured that a test would fail, a use case would be linked to that failure, and someone would see that they have now violated a regulation. Then if the regulation changed, someone would grep through the use cases, and see what behavior is occuring/ how to modify the code base to cope w…
I'd be surprised if they didn't make postmortem changes to prevent such incidents in the future. Your posts in this thread imply that no mistake should ever happen, but let's be real - mistakes will always happen, the key is to do proper postmortem analysis and learn from them (and obviously prevent recurrences).
My understanding is that companies such as this rely purely on manual testing. Thus it is easy for things to slip through the cracks. Usually they never get hit by penalties or get caught so the pressure to do better is not there.
Re: High-Speed Trading Firm Deleted Some Code by Accident
#46In finance you'll find low accountability for developers. Basically finance is where great developers go to get paid a lot to become horrible developers. Very few companies in finance are pushing the bar on quality code since they culturally cannot accept the cost of that. It doesn't make sense until it is too late and by then their code base is too entrenched. I've seen this at countless finance companies, and from…
But is it enough to put a company that doesn't do that at a competitive advantage? Is this really just company culture and assumptions, or are there actual market forces behind it?
In finance technology is seen as a cost center, not a profit center. They want the minimum needed to ship. Early on this results in a lot of tech debt. Later on, fixing the system is too hard and thus they need to hire super smart people to figure out the mess they are in for any code change.
Enforcement actions are INCREDIBLY rare. The penalties are shockingly low. Thus the cost of failure to comply is low, and the businesses are not prioritizing compliance.
Re: High-Speed Trading Firm Deleted Some Code by Accident
#47Can someone explain why the SEC rules insist you must buy from the exchange with the lowest price first? It appears to me to be a rule just to keep the small exchanges alive.
Otherwise a broker would just route mom n' pop's orders to the exchange that pays the biggest bribe to the broker (and screw mom n' pop).
And retail brokers already do what you suggest. All their marketable flow gets sold to off-exchange market makers, while their limit order flow gets routed to exchanges that pay the highest liquidity rebates, Reg NMS just mandates what price it can trade at: http://news.indiana.edu/releases/iu/2014/02/study-of-potenti...
Re: High-Speed Trading Firm Deleted Some Code by Accident
#48Earlier quoted context omitted.
But is it enough to put a company that doesn't do that at a competitive advantage? Is this really just company culture and assumptions, or are there actual market forces behind it?
It is a mixed bag. In finance technology is seen as a cost center, not a profit center. They want the minimum needed to ship. Early on this results in a lot of tech debt. Later on, fixing the system is too hard and thus they need to hire super smart people to figure out the mess they are in for any code change. Enforcement actions are INCREDIBLY rare. The penalties are shockingly low. Thus the cost of failure to comp…
If enforcement actions are rare, it's probably because these firms are playing clean for the most part, contrary to popular belief. If you trade 5-10% of the market, regulators are going to audit you every year. They are looking for even the smallest issues to give a fine, even minor things like not having the right Head Trader's name on your supervisory forms after someone quits.
Re: High-Speed Trading Firm Deleted Some Code by Accident
#49Re: High-Speed Trading Firm Deleted Some Code by Accident
#50Earlier quoted context omitted.
Why does the SEC care that you bought shares at a price higher than the cheapest? How does that hurt anyone other than yourself?
And relatedly, what is the point in the existence of multiple markets, if not that you can choose which market to trade on for your own technical–logistic reasons?
In Europe and Asia, there are competitive exchanges, but no rule to force people to route there. There are some guidelines for brokers with customer orders to have a duty of "best execution", but for proprietary traders or professionals, they can do whatever they feel is ideal.
And guess what, there are very few "trade throughs" or cases where markets invert with each other despite lacking such a rule. People usually act in their economic best interest without a law mandating they do so. If it happens, it's an arbitrage that someone will eliminate very quickly.