Skip to main content

at-common-schemas

Common schema definitions used by Apex Trader services, built with Pydantic.

Installation

pip install at-common-schemas

Features

  • Standardized data models for financial market data
  • Built with Pydantic for robust data validation
  • Comprehensive type hints and documentation
  • Automatic serialization of datetime and enum values

Available Schemas

Stock Data

  • Profile information
  • Real-time quotes
  • Daily candlestick data
  • Technical indicators
  • Financial statements
    • Balance Sheet
    • Income Statement
    • Cash Flow
  • Financial analysis
    • Key metrics
    • Financial ratios
    • TTM (Trailing Twelve Months) metrics
  • Earnings call transcripts

Market Data

  • Stock symbols by exchange
  • Market news
  • Company-specific news
  • Calendar events
    • Earnings announcements
    • Dividend declarations
    • Stock splits

Usage Examples

Fetching Stock Quote Data

from at_common_schemas.service.data.stock.quote import StockQuoteRequest, StockQuoteResponse

# Single stock quote request
request = StockQuoteRequest(symbol="AAPL")

# Batch quote request
batch_request = StockQuoteBatchRequest(symbols=["AAPL", "MSFT", "GOOGL"])

Working with Financial Statements

from at_common_schemas.service.data.stock.financial import StockFinancialStatementBatchRequest
from at_common_schemas.common.stock import StockFinancialPeriod

request = StockFinancialStatementBatchRequest(
    symbol="AAPL",
    period=StockFinancialPeriod.QUARTERLY,
    limit=4
)

Development

Requirements:

  • Python 3.11+
  • pydantic 2.10.6+
  • annotated-types 0.7.0+
  • typing_extensions 4.12.2+

License

This project is licensed for private use and internal purposes only. Redistribution or modification is not permitted without prior consent.

Contributing

Contributions are welcome for internal use only. Please ensure that any changes adhere to the project's coding standards and are reviewed before submission.

Metadata

Release files for at-common-schemas 1.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for at-common-schemas 1.1.13
File Size Uploaded Provenance Actions
at_common_schemas-1.1.13.tar.gz 13.6 kB Without provenance Details for at_common_schemas-1.1.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for at-common-schemas 1.1.13
File Interpreter ABI Platform Actions
at_common_schemas-1.1.13-py3-none-any.whl Python 3 none any Details for at_common_schemas-1.1.13-py3-none-any.whl

Total release size: 29.2 kB

Release files / at_common_schemas-1.1.13.tar.gz

Download URL at_common_schemas-1.1.13.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1fde569cc25346b315998e4740ec3e6f38e2c8db5646aad2c451d87249783a15
BLAKE2b-256 checksum
How to use checksums
1026363a57506c918b907551776baef732908c04ba8dac3c82c098aeb087c0f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / at_common_schemas-1.1.13-py3-none-any.whl

Download URL at_common_schemas-1.1.13-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38878fd7d2d5c1e0033173be5ceee54c19d44d1595c32f685f73a03c44c93704
BLAKE2b-256 checksum
How to use checksums
4e1f18b1b121eb508ff29ba0f474edb58d183dd59e4818600faab427d50c1c7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for at-common-schemas 1.1.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.13 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page