API Reference
API StatusLogin

Retrieve Account Margin

Retrieves Account Margin details by accountID.

Path Params
string
required

The user's unique account identifier.

Response

Response body
object
string

The user's unique account identifier.

string

The user's unique account number, that is human readable.

string

The type of trading the account will participate in.

CASH MARGIN

string

Time of last update.

margin
object
number

Leverage amounts. 0.5 = 2:1 Leverage. 1 = 1:1 Leverage

0.5 1

number

A real-time dollar value of current holdings.

number

Real-time dollar value of debt; positive dollar amount is a debit balance, negative dollar amount is a credit balance.

number

Real-time dollar value of equity; calculated as longMarketValue – debitBalance.

number

Equity as a fraction of long market value; calculated as equity ÷ longMarketValue.

number

Minimum equity required to stay above a HOUSE margin call. If the account is in a margin call (HOUSE or EXCHANGE) this field will not appear here, but instead appear in the marginCall object.

number

NEEDS DESCRIPTION

number | null

The Day Trading Buying Power (DTBP) in dollars at the beginning of day.

boolean

NEEDS DESCRIPTION

boolean

Account becomes restricted (set to true) if equity is less than 50% of long market value (this is essentially a warning, at 35% the account will be in HOUSE margin call).

number

Current SMA using traditional calculations – Start with beginning of day SMA and update with deposits and withdrawals as well as stock buys and sells during the day. Deposits increase and withdrawals decrease SMA dollar for dollar. Buys increase and sells decrease SMA by 50% of trade dollar value.

number

Equity in excess of equityRequired calculated in real time (more is good).

number

The lower of margin.daySMA and margin.rtExcessEquity. This is risk protection for the user as well as DriveWealth. Using only margin.daySMA for lending on margin has the disadvantage that the SMA can become inflated if the market drops from start of day. If user's were to use their entire daySMA to buy stock on a day when the market drops, they are immediately placed into a HOUSE CALL. The margin.rtExcessEquity prevents that from happening by lending them only a (reduced) amount that would place them above a HOUSE margin call. That is the risk protection provided to both parties.

string

Reason indicating why the user has no buying power: MIN_MARGIN_EQUITY_NOT_MET - margin.equity is less than $2,000 and margin.debitBalance is greater than $0 EFFECTIVE_SMA_ZERO - SMA is $0 HOUSE_CALL - margin.equityfFaction is less than 35% (required house equity) EXCHANGE_CALL - margin.equityfFaction is less than 25% (required exchange equity) * RESTING_ORDERS_WILL_TRIGGER_HOUSE_MARGIN_CALL - Market dropped after resting orders were placed, and will trigger house call if filled.

marginCall
object

Object of margin call calculations. Will only appear if noBuyingPowerReason is equal to MIN_MARGIN_EQUITY_NOT_MET or HOUSE_CALL or EXCHANGE_CALL

number

Total dollar value committed in resting orders that reduces the effectiveSMA

Language
Credentials
URL