Upload CSV Files
Data Import
Upload CSV Files
Upload and process transaction history and realized gains CSV files from brokerage
POST
Upload CSV Files
Endpoint
Authentication
Requires OAuth 2.0 authentication and user must have brokerage account number set in profile.Content Type
multipart/form-data
Parameters
Transaction history CSV file from your brokerage
Realized gains/losses CSV file from your brokerage
Response Format
The endpoint returns streaming JSON responses to provide real-time progress updates:Success Response Fields
Response type: “progress”, “success”, or “error”
Progress percentage (0-100) for progress type responses
Human-readable status message
Import statistics (only in success response)
Example
Error Responses
400 Bad Request
400 Bad Request
400 Bad Request
CSV File Requirements
Transaction History File
Should include columns such as:- Transaction date
- Symbol
- Action (Buy, Sell, etc.)
- Quantity/Shares
- Price
- Amount
- Account number
Realized Gains File
Should include columns such as:- Symbol
- Date acquired
- Date sold
- Proceeds
- Cost basis
- Gain/Loss
File format requirements may vary by brokerage. The system attempts to automatically detect and parse common formats.
Related Endpoints
Upload History
View history of previous uploads
CSV Upload Feature
Learn more about CSV upload functionality