Homework H16
Creating transactions
Learning Goals
Creating stock transactions and run compliance checks on them.
Context
“It is time to start thinking about trading,” Stockton declares, appearing at your desk with the momentum of a man delivering breaking
news, “and I have a DAZZLING idea.”
You swivel your chair toward him.
“Building a full trading algorithm from scratch,” he continues, “would be MONUMENTALLY complex. Strategy selection, order sizing,
compliance - A jungle!” He chops the air with his hand.
“So, we simplify.”
You wait.
“We split the problem into two stages.”
He leans over your monitor and begins sketching imaginary architecture in the air.
“Stage one: a trading workstation. Clean interface. Symbol selection. Order sizing and execution. A human trader could sit down and
operate it.”
You nod slowly.
“Stage two,” he continues, raising one finger theatrically, “we add the brain.”
“The algorithm?” you ask.
“EXACTLY! The algorithm will use the workstation the same way a human trader would. It selects symbols. Sizes order. Executes trades. But
instead of fingers on a keyboard-” he taps his temple “-machine intelligence.”
“So you’re suggesting I build the trading functionality first,” you say. “Without worrying yet about whether the operator is a person or
the algorithm.”
Stockton beams.-“PRECISELY! You and I are operating on EXQUISITELY calibrated intellectual wavelengths!”
You’re not entirely convinced about those calibrated wavelengths, but the design logic makes sense: build the trading infrastructure
first, plug intelligence into it later.
You can build that.
“I am on it, Boss.”
Stockton slaps the desk approvingly. “MAGNIFICENT!”
Task
Build a system that satisfies the requirements.
Want to submit as a team? These are are instructions.
Criteria/Requirements
Your work must satisfy the following requirements
Hints and Tips
Patches