Quick answer
Vanguard does not provide a trading or market-data API for individual investors. Long-term, buy-and-hold investors rarely need one; if you want to automate a strategy on ETFs (including Vanguard funds), hold them at a broker with an API such as Schwab, Alpaca or Interactive Brokers.
Vanguard API at a glance
- Pricing
- No public API
- Availability
- US
- Paper trading
- Not applicable (data only)
- Integration type
- No public API
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Official API
- None for individuals
- Vanguard ETFs elsewhere
- Tradable at any broker with an API
Build a Vanguard strategy with AlgoGP
AlgoGP does not connect to Vanguard natively yet. Vanguard has no supported public trading or data API.
- 1
Design and backtest in AlgoGP
Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.
- 2
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in Vanguard
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with Vanguard’s SDK, or keep a built-in platform for paper trading and add Vanguard when you go live.
Built-in data sources for the same markets: Alpaca, Yahoo Finance, Alpha Vantage, Tradier.
Vanguard API: frequently asked questions
Can I trade Vanguard ETFs with an API?
Yes, at another broker such as Schwab, Alpaca or IBKR.
Automate the strategy you would run on Vanguard
Describe your rules, backtest them on years of stock, crypto or forex data, and export Python for a broker that has a real API.
- No API key needed to start
- Built-in Alpaca, Tradier, OANDA, Binance and more
- Free plan, no card
Free plan, no card required.
Vanguard alternatives
- Charles Schwab Trader API GuideThe successor to the TD Ameritrade API: stocks, ETFs and options trading plus quotes and history, via OAuth 2.0.
- Alpaca API Built into AlgoGPCommission-free API-first broker for US stocks, ETFs and crypto, with a free paper-trading account.
- Interactive Brokers API Built into AlgoGPThe broadest multi-asset broker API: stocks, options, futures, FX and bonds on 150+ markets, through TWS or IB Gateway.
- Tradier API Built into AlgoGPDeveloper-focused US brokerage for stocks and options, with a REST API and a free sandbox token.
Independent guide. AlgoGP is not affiliated with Vanguard. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.