nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
fin-infra / API Reference

TaxBitProvider

from fin_infra.providers.tax import TaxBitProvider
View source
fin_infra.providers.tax
Extends:TaxProvider

TaxBit provider for crypto tax calculations (v2 - not yet implemented). **Subscription Required**: - Base fee: $50-$200/month - Per-user fee: $1-$5/user - Total cost: $10k-$50k/month for 10,000 users **Authentication**: - OAuth 2.0 with client credentials - Access token refresh every 24 hours - Rate limit: 100 requests/minute **Environment Variables**: - TAXBIT_CLIENT_ID: OAuth client ID - TAXBIT_CLIENT_SECRET: OAuth client secret - TAXBIT_BASE_URL: API endpoint (default: https://api.taxbit.com) **Supported Features**: - Form 8949: Sales and Other Dispositions of Capital Assets - 1099-B: Proceeds from Broker Transactions (crypto) - 1099-MISC: Staking rewards, airdrops - Capital gains/losses calculation (FIFO, LIFO, HIFO) - Cost basis tracking **Not Supported**: - Traditional tax forms (W-2, 1099-INT/DIV) - use IRS provider

Example

>>> provider = TaxBitProvider( ... client_id=os.getenv("TAXBIT_CLIENT_ID"), ... client_secret=os.getenv("TAXBIT_CLIENT_SECRET") ... ) >>> # Raises NotImplementedError until v2 implementation

Constructor
TaxBitProvider(client_id: str | None = None, client_secret: str | None = None, base_url: str = 'https://api.taxbit.com', kwargs = {})
ParameterTypeDefaultDescription
client_idstr|NoneNoneOAuth client ID (required)
client_secretstr|NoneNoneOAuth client secret (required)
base_urlstr'https://api.taxbit.com'TaxBit API endpoint (default: production)
kwargsAny{}—

Methods

On This Page

Constructorcalculate_crypto_gainscalculate_tax_liabilitydownload_documentget_tax_documentget_tax_documentsget_tax_forms