egular trade optimization and optional maximum withdrawal
amount calculations. It ensures all trades are properly formatted and NaN values
are replaced with None for JSON serialization.</p>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="service.oracle.Oracle.set_restrictions">
<span class="sig-name descname"><span class="pre">set_restrictions</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">stock_restrictions</span></span><span