Ally Invest API Documentation
Build your application to connect to our investment platform and the 250,000 traders connected to it.
This call will begin streaming quote and trade payloads for a symbol or list of symbols passed as a query parameter (see query parameters below). While this request type is GET, POST can also be used and is recommended for larger lists of symbols.
|format||a response format, default is xml (See Streaming )|
|symbols||a single symbol or list of comma-delimited symbols (required)|
For option symbols, the symbology needs to follow that of the OCC. This format is up to 21 characters that represents the contract specifications of a particular option. The following components are used in constructing the symbol:
(1) - Underlying symbol
(2) – 2-digit expiration year
(3) – 2-digit expiration month
(4) – 2-digit expiration day
(5) – "C" for Call or "P" for Put
(6) – 8-digit strike price
Notice the strike price is represented in 8 digits no matter what the number of digits of the actual strike price. The strike price is carried to 3 decimal places, but no decimal is used within the symbol. For example, the $200 strike for the IBM option above is represented as "00200000". Also, note the two "0's padded on the front to complete the 8-digit total.
|Data Tag||Payload Type||Data Description|
|asksz||Quote||Size of latest ask (in 100s)|
|bidsz||Quote||Size of latest bid (in 100s)|
|datetime||Quote, Trade||Date and time|
|exch||Quote, Trade||exchange code|
|hi||Trade||High Trade Price for the trading day|
|last||Trade||Last trade price|
|lo||Trade||Low Trade Price for the trading day|
|opn||Trade||Open trade price|
|qcond||Quote||Condition code of quote|
|symbol||Quote, Trade||Symbol from data provider|
|tcond||Trade||Trade condition code – (H) halted or (R) resumed|
|vwap||Trade||Volume weighted average price|
GET /v1/market/quotes.xml?symbols=AAPL,QQQ,MSFT,AAPL120721C00200000 HTTP/1.1
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.