01 · The challenge
Algorithmic forex traders had no reliable bridge between their strategy alerts and their actual broker accounts - something has to receive a signal and execute it correctly within seconds.
02 · What I built
A serverless API that receives a strategy signal, interprets it against the trader's current position, decides the correct action - open, close, reverse or scale in - and fires the order to the broker.
03 · The hard part
Trading platform sessions are stateful, but a serverless backend keeps no memory between requests. I externalised all session and position state so any instance can re-establish a broker connection on demand, with graduated retry logic and a position-aware state machine that prevents accidental double-entries.
04 · The outcome
Sub-two-second signal-to-execution. Runs across multiple concurrent traders with no shared-state conflicts. Supports scaling into winning positions instead of closing and re-entering.
05 · Stack