Fixed

Order side enum corrected to "buy" and "sell" only

Broker API

The OrderSide schema now lists only buy and sell, matching the values the API actually accepts and returns for orders.

  • Removes buy_minus, sell_plus, undisclosed, cross, sell_short, sell_short_exempt, and cross_short from OrderSide.
  • Adds a separate TradeActivitySide schema for the side field on trade activities, which continues to report the full set of execution-side values.

Affected Endpoints

  • POST /v1/trading/accounts/{account_id}/orders
  • GET /v1/trading/accounts/{account_id}/orders
  • GET /v1/trading/accounts/{account_id}/orders/{order_id}
  • GET /v1/trading/accounts/{account_id}/orders:by_client_order_id
  • PATCH /v1/trading/accounts/{account_id}/orders/{order_id}
  • DELETE /v1/trading/accounts/{account_id}/orders
  • POST /v1/trading/accounts/{account_id}/orders/estimation
  • DELETE /v1/trading/accounts/{account_id}/positions
  • DELETE /v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}
  • GET /v1/rebalancing/runs
  • GET /v1/rebalancing/runs/{run_id}
  • GET /v2/events/trades
  • GET /v1/accounts/activities
  • GET /v1/accounts/activities/{activity_type}