We launched live trading at the beginning of this year and the success has been outstanding – we’re listening to your feedback and adding more features!
The algorithm already has access to the portfolio attributes, including the cash, positions, and portfolio value. Today we’re adding more: broker account information is now available to the algorithm.
This makes it easier to trade based on the settled cash, tracking your margin, and controlling the leverage in the account.
In backtesting, these fields will take on default values. The default values are listed in the API help doc below. In live trading, the algorithm will use values as reported by the broker.
The list of available fields is:
- accrued_interest
- available_funds
- buying_power
- cushion
- day_trades_remaining
- equity_with_loan
- excess_liquidity
- initial_margin_requirement
- leverage
- maintenance_margin_requirement
- net_liquidation
- regt_equity
- regt_margin
- settled_cash
- total_positions_value
These fields are accessible from the newly created account object. Read more about the overview and the API in the help doc!