TradeStation API Risk Controls

Job ID: 39727021

Budget: $250 – $750 USD

I trade intraday through TradeStation Spy option, QQQ option, SPXW option and need a small utility that sits between my order-entry workflow and the TradeStation API, adding hard risk limits:

• Per-symbol exposure must never exceed 10 % of total account equity( can adjust). If an incoming buy would push the position past that threshold, the order must be rejected and a short, clear message returned (e.g., “Size exceeds 5 % cap”).
• Once a symbol has been closed at a loss for the day, any further buy attempts in that symbol must be blocked only allowed close.
* Hard close and exit if loss over 50%, if profit over 20% and move stop loss to Par.
* Hard close and exit if price <1$, reject buy any price <$1 for SPXW option
* I have a few my own signals from taradesttaion verion 9.5, Could I use them as auto trade signal, such as signalA= Buy @market, SignalB =Sell@market


The flow I imagine is simple: your code listens for my orders, queries the current account balance and open-position size via the TradeStation REST API (or WebSocket if you prefer lower latency), evaluates the two rules above, and either forwards the order unchanged or returns the rejection message. Day-trading speed is important, so please choose a language and architecture that keep decision latency low; Python with async or Node.js are both fine, but I’m open to suggestions.

Deliverables
• Well-commented source code that compiles/runs out of the box
• A brief README covering setup, required API keys/permissions, and how to edit the 5 % threshold if needed
• Simple log output showing every intercepted order and the decision taken

Acceptance test: running a scripted sequence that (1) tries to exceed 5 % exposure and (2) rebuys a losing symbol must produce the expected rejection messages while all compliant orders go through unchanged.

If any TradeStation sandbox credentials or specific endpoints are required, let me know—otherwise I’ll supply live keys for final verification.