You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
orders.create() silently defaults count=1 and action="buy" on the kwarg path #242
Money risk. For a real-money SDK the kwarg-form client.orders.create(ticker=..., side="yes") quietly places a 1-contract BUY when the caller forgot count/action (or typoed the kwarg name). Materializing client-side defaults — instead of omitting and letting the server default apply (or raising) — converts a missing-arg bug into a real fill. The request= overload is unaffected; only the convenience kwargs are.
Drop the silent defaults: require count and action in the kwarg overload (raise TypeError when None, mirroring the ticker/side guard right above), or omit them from the body so the server applies its own default. Document either way in the docstring. Add a regression test that calls orders.create(ticker="X", side="yes") and asserts the call raises rather than silently placing.
Activity
release: 2.5.0 — post-v2.4 multi-reviewer SDK audit closure (#273) (#294
fix(models): AmendOrderRequest Literal narrowing + V1 ge=0 + create()…