Skip to content

v3.0.1: Complete API Coverage & Enhanced Features

Latest

Choose a tag to compare

@TexasCoding TexasCoding released this 21 Sep 02:28
· 2 commits to main since this release
f88c2e8

🎉 py-alpaca-api v3.0.1

🚀 Major Milestone: 100% Alpaca API Coverage!

We're thrilled to announce that py-alpaca-api now provides complete coverage of the Alpaca Trading and Market Data APIs!

📊 Coverage Stats

  • Trading API: 28/28 endpoints (100%)
  • Market Data API: 11/11 endpoints (100%)
  • Total Tests: 350+ unit and integration tests
  • Type Safety: Full mypy strict mode compliance

✨ New Features

📈 Market Data Endpoints

Historical Quotes

# Get bid/ask quotes with spread analysis
quotes = api.stock.quotes.get_historical_quotes(
    "AAPL",
    start="2024-01-01",
    end="2024-01-31"
)
# Automatic spread calculation included!

Auction Data

# Get opening and closing auction prices
auctions = api.stock.auctions.get_auctions(
    "AAPL",
    start="2024-01-01", 
    end="2024-01-31"
)

# Daily auction summaries
daily = api.stock.auctions.get_daily_auctions(
    ["AAPL", "MSFT"],
    start="2024-01-01",
    end="2024-01-31"
)

Latest Bars

# Get the most recent bar for symbols
bars = api.stock.history.get_latest_bars(
    ["AAPL", "MSFT", "GOOGL"]
)

Company Logos

# Multiple ways to get company logos
url = api.stock.logos.get_logo_url("AAPL")
data = api.stock.logos.get_logo("AAPL")
base64 = api.stock.logos.get_logo_base64("AAPL")
api.stock.logos.save_logo("AAPL", "logo.png")

# Batch operations
logos = api.stock.logos.get_multiple_logos(
    ["AAPL", "MSFT", "GOOGL"]
)

📊 Trading Enhancements

Get All Orders

# Retrieve all orders with advanced filtering
orders = api.trading.orders.get_all_orders(
    status="all",
    limit=100,
    after="2024-01-01",
    symbols=["AAPL", "MSFT"]
)

Close All Positions

# Close all positions at once
api.trading.positions.close_all(
    cancel_orders=True  # Also cancel pending orders
)

📚 Documentation

  • Complete API Reference: Every method documented with examples
  • User Guides: Practical tutorials for all modules
  • Type Hints: Full typing information for IDE support
  • Error Handling: Comprehensive exception documentation

🛠️ Improvements

  • Enhanced package metadata for better PyPI integration
  • Improved error messages and validation
  • Better pagination handling for large datasets
  • Automatic feed fallback (SIP → IEX → OTC)
  • Optimized batch operations for 200+ symbols

🔧 Bug Fixes

  • Fixed DataFrame type preservation in filtering operations
  • Resolved Union type issues in type checking
  • Corrected daily aggregation in auction data
  • Fixed binary data handling for logo endpoints

📦 Installation

pip install py-alpaca-api==3.0.1

🙏 Thank You

A huge thank you to all contributors and users who have helped make py-alpaca-api the most comprehensive Python wrapper for the Alpaca API!

📊 What's Next?

  • WebSocket support for real-time data streaming
  • Advanced portfolio analytics
  • Options trading support (when available)
  • Performance optimizations for large-scale operations

📖 Resources


Full Changelog: v3.0.0...v3.0.1