v1

latestOpenAPI 3.0.02026-07-26166415635.8 KB
Trading

Update Trading Configurations for an Account

You can also set the margin settings for your users' account by passing a PATCH request. By default any account with funds under $2,000 is set a margin multiplier of 1.0, and accounts with over $2,000 are set to 2.0.

patch/v1/trading/accounts/{account_id}/account/configurations

Request body

disable_overnight_tradingboolean

If true, overnight trading is disabled.

fractional_tradingboolean

If true, account is able to participate in fractional trading

max_margin_multiplierstring

Can be "1" or "2"

max_options_trading_level0 | 1 | 2 | 3

The desired maximum options trading level. 0=disabled, 1=Covered Call/Cash-Secured Put, 2=Long Call/Put, 3=Spreads/Straddles.

no_shortingboolean

If true, account becomes long-only mode.

ptp_no_exception_entrystring

If set to true then Alpaca will accept orders for PTP symbols with no exception. Default is false.

suspend_tradeboolean

If true, new orders are blocked.

trade_confirm_email'all' | 'none'

all or none. If none, emails for order fills are not sent.

Response

Response will contain the account configuration settings for the account.

disable_overnight_tradingboolean

If true, overnight trading is disabled.

fractional_tradingboolean

If true, account is able to participate in fractional trading

max_margin_multiplierstring

Can be "1" or "2"

max_options_trading_level0 | 1 | 2 | 3

The desired maximum options trading level. 0=disabled, 1=Covered Call/Cash-Secured Put, 2=Long Call/Put, 3=Spreads/Straddles.

no_shortingboolean

If true, account becomes long-only mode.

ptp_no_exception_entrystring

If set to true then Alpaca will accept orders for PTP symbols with no exception. Default is false.

suspend_tradeboolean

If true, new orders are blocked.

trade_confirm_email'all' | 'none'

all or none. If none, emails for order fills are not sent.