<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Agent Risk Desk</title>
    <description>The latest articles on DEV Community by Agent Risk Desk (@agentriskdesk).</description>
    <link>https://dev.to/agentriskdesk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4194325%2F060939db-0531-4bce-9426-111ca7a847c8.png</url>
      <title>DEV Community: Agent Risk Desk</title>
      <link>https://dev.to/agentriskdesk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agentriskdesk"/>
    <language>en</language>
    <item>
      <title>Your trading agent still thinks the PDT rule exists</title>
      <dc:creator>Agent Risk Desk</dc:creator>
      <pubDate>Mon, 19 Oct 2026 14:24:17 +0000</pubDate>
      <link>https://dev.to/agentriskdesk/your-trading-agent-still-thinks-the-pdt-rule-exists-4bb1</link>
      <guid>https://dev.to/agentriskdesk/your-trading-agent-still-thinks-the-pdt-rule-exists-4bb1</guid>
      <description>&lt;p&gt;Ask most LLMs about day trading and they will tell you about the Pattern Day Trader rule: four day trades in five business days, and you need $25,000 in the account.&lt;/p&gt;

&lt;p&gt;That rule is gone. FINRA Regulatory Notice 26-10 replaced it on June 4, 2026 with an intraday margin standard. A margin account now builds an intraday margin deficit when it buys or sells short. The trader must meet that deficit promptly. Leaving deficits unmet past the 5th business day as a practice triggers a 90-day restriction. Brokers may keep the old PDT rule until October 20, 2027, so your agent also needs to know which regime its broker uses.&lt;/p&gt;

&lt;p&gt;This matters if you run an agent against a real broker. An agent that believes the old rule will refuse trades it could make. An agent that ignores both rules will get its account restricted.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check the current rules from your agent
&lt;/h3&gt;

&lt;p&gt;I built a small service that returns the current rules with effective dates and sources. The rules endpoint is free:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://agent-financial-advisor.agent-financial-advisor.workers.dev/v1/tools/rules_digest &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"content-type: application/json"&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Check an order before you send it
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;pre_trade_check&lt;/code&gt; tool runs an order past a compliance and risk review. It checks buying power, settlement violations, intraday margin, Reg SHO, wash sales, concentration and fat-finger prices. It returns approve, approve_with_warnings or reject, with reasons.&lt;/p&gt;

&lt;h3&gt;
  
  
  Size a position
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://agent-financial-advisor.agent-financial-advisor.workers.dev/v1/tools/position_size &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"content-type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"equity":50000,"entry_price":100,"stop_price":95,"method":"fixed_fractional"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That call sizes a position to risk 1% of equity to the stop: 100 shares, $500 at risk.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use it as an MCP server
&lt;/h3&gt;

&lt;p&gt;Point any MCP client at &lt;code&gt;https://agent-financial-advisor.agent-financial-advisor.workers.dev/mcp&lt;/code&gt;. The agent sees 8 tools, including position sizing, tax-lot planning and a backtest audit that computes the Deflated Sharpe Ratio.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pricing
&lt;/h3&gt;

&lt;p&gt;The rules digest is free. Each IP gets 5 free calls a day, and a free API key gets 25. After that, calls cost 1 to 10 cents in USDC via the x402 protocol, so an agent can pay for itself without a human signing up.&lt;/p&gt;

&lt;p&gt;The outputs are automated rule checks, not investment advice. Verify broker-specific rules before you rely on them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>trading</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
