Calculate Net Gain/Loss API
Recompute Breezing realized and unrealized net gain or loss across crypto transactions using the company’s cost basis method.
Query Parameters
Organization ID. Use GET /v1/companies to discover available org/company pairs.
"1"
Company ID. Use GET /v1/companies to discover available companies and their access levels.
"1"
Body
Cost-basis method. If omitted, uses the company's configured default (companies.accountingMethod). Changing this overrides the default for this run only.
average, fifo When true, NGL is computed separately per wallet rather than pooled across all wallets per token. If omitted, uses the company's configured default (companies.accountingIsPerWallet). Setting true requires wallets to be a non-empty array.
Optional list of token symbols to include. Omit (or pass an empty array) to include ALL tokens. Note this is heavier and may take significantly longer.
Wallet IDs to include. Required when isPerWallet is true. Ignored otherwise.
x > 0Optional cutoff datetime in format "YYYY-MM-DD HH:mm:ss" (e.g. "2025-12-31 23:59:59"). When provided, NGL is calculated as of this datetime, useful for period-end closes. Omit to use the current time.
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$"2025-12-31 23:59:59"