Enhance Python Trading Bots Infrastructure

via Freelancer ·

Budget / Salary£20–250
TypeFreelance project
LocationRemote
Posted3 weeks ago
Python Dev — Harden Live OANDA/Schwab Trading Bot Infrastructure (No Strategy Work)
Description:
We run two Python trading bots: one on OANDA (FX/CFD), one on Schwab (options). We need infrastructure fixes, NOT a new trading strategy — we already tested and rejected a breakout strategy against real historical data, so please don’t pitch indicators or “high win rate” ideas.
Scope:
1. Asset lock (OANDA): Restrict the bot to a short instrument allow-list (e.g. NAS100_USD, SPX500_USD, EUR_USD), enforced at the order-request level, not just config.
2. Permanent trade log: Append-only CSV/SQLite logger recording every order decision (timestamp, instrument, reasoning, size, SL/TP, result) — must survive outside system journald, which currently loses history after ~32 hours.
3. Schwab options sizing fix: Refactor contract sizing to enforce a $500 minimum trade size (via ceiling math), $300 max per-contract ask, 5-contract cap, with up to $600 total overrun allowed. Include unit tests.
4. Defensive coding: Proper exception handling on all API calls, no silent failures, safe fallback states.
Not in scope: Any change to entry/exit signal logic or new strategies. Any future strategy work will be scoped separately after independent backtesting.
Requirements: Proven experience with OANDA v20 REST API and/or Schwab API. Clean, tested, defensive code. Must explain how they’d catch an overfit strategy before going live (out-of-sample testing, real transaction costs) — this is a screening question, reject vague or evasive answers.
Deliverable: Working code, unit tests, brief documentation — reviewed before deploying to our live server. Current Bot Performance Disclosure (add to job post)
Important — please read before bidding:
Both bots are currently net-negative on realized trading P&L, verified directly against broker account data as of 29 Aug 2026:
• OANDA (spot FX/CFD bot): Account opened 24 Apr 2026. Lifetime realized P&L is -£103.55 on a £686.87 current balance.
• Schwab (options bot): Account opened 20 Apr 2026. Realized trade P&L across 154 trade transactions is -$1,143.59, on $2,104.11 current equity.
This project is infrastructure hardening only (reliability, logging, error handling, risk-limit enforcement) — it does not include changing entry/exit logic, signal generation, or strategy design. You are not being hired to fix profitability; you’re being hired to make the existing systems more robust and observable so they fail safely and log correctly. Please scope your bid accordingly.
php python software architecture software testing c++ programming software development api financial apis
Apply on Freelancer →

Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.