• Invest: 1-855-880-2559
  • Open 24/7

Ally Invest API Documentation

Build your application to connect to our investment platform and the 250,000 traders connected to it.

POST accounts/:id/orders/preview{.format}


This call will allow you to preview an order prior to actually placing it. This does not place the order.

Authentication Required
Yes OAuth 1.0a
URI Parameters
id a valid account number
format a response format, default is xml (See Response Structure)
Example URL

Special Considerations

The request for order preview must be FIXML format submitted within the message body. Please visit the FIXML and Trading pages for more information on how to place orders.

Data Fields

In addition to quote information relating to the order, you may receive fields outlined in the table below.

Data Tag Description
estcommission Estimated commission for this order
marginrequirement Estimated margin requirement for trade (for margin accounts)
principal Estimated total cost (positive) or proceeds (negative) from order.
secfee Estimate of any SEC sale fee to be assessed on the order.
warningtext Description of a possible error in the order

Request Example

POST /v1/accounts/123456878/orders/preview.xml HTTP/1.1
Authorization: OAuth
Connection: close
Host: devapi.invest.ally.com
<?xml version="1.0" encoding="UTF-8"?>
<FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2">
  <Order TmInForce="0" Typ="1" Side="1" Acct="12345678">
    <Instrmt SecTyp="CS" Sym="GE"/>
    <OrdQty Qty="1"/>

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<response id="77cf30da:12e0091b2c0:-56c9">
        <desc>SIRIUS XM RADIO INC</desc>
        <desc>SIRIUS XM RADIO INC</desc>

Any mention of actual symbols are to be used for coding purposes only and do not imply a recommendation or solicitation to buy or sell a particular security or to engage in any particular investment strategy.

At the time of publication and in the preceding month, Ally Invest did not have ownership greater than 1% in any stocks mentioned here and does not have any other actual, material conflict of interest known at the time of publication.

Ally Invest did not receive compensation from a public offering or from investment banking services related to any companies mentioned here within the past 12 months, or expects to receive any in the next 3 months. Ally Invest did not engage in market making in the securities mentioned here.

Ally Invest Securities' background can be found at FINRA's BrokerCheck. Options involve risk and are not suitable for all investors.

Review the Characteristics and Risks of Standardized Options brochure before you begin trading options. Options investors may lose the entire amount of their investment in a relatively short period of time.