You will get
You will get
- Support for buy, sell, and transfer operations
- Automatically updates your portfolio holdings
- Validates transaction data before recording
- Returns the details of the created transaction
Required
Required
- shareToken: Get this from your CoinStats portfolio page
- Transaction details in request body:
- coinId: The cryptocurrency’s identifier
- count: Amount (negative for sells)
- date: Transaction timestamp (optional)
- price: Price at time of transaction (optional)
Optional
Optional
- notes: Add personal notes to the transaction
- currency: Specify currency for price (default: USD)
- passcode: Passcode for accessing protected portfolio data (can be passed in header or query parameter)
Authorizations
API key needed to access the endpoints. Example: 'demo-api-key'
Headers
Passcode for accessing protected portfolio data
"123456"
Query Parameters
Passcode for accessing protected portfolio data
"123456"
Body
Coin ID from CoinStats API. For fiats you can send coin ID like this: FiatCoinUSD.
"bitcoin"
Amount of coin. For sell transactions, this should be negative.
0.1
Transaction date in milliseconds. If not provided, current date will be used.
1715948176654
Price of coin in USD at the time of transaction.
66252.93
If shared portfolio is not manual portfolio, then this field is required.
"xobgM6CHi1zaEJaCXmPWenVoS"
Default is USD.
"USD"
Transaction notes.
"Some notes."
Response
PortfolioTransactions
Type of transaction performed
Sent
, Dust Convert
, Roll In
, Received
, Swap
, Buy
, Sell
"Roll In"
ISO 8601 timestamp of when the transaction occurred
"2025-08-28T08:35:50.384Z"
Profit and loss information for the transaction
Transaction fee information
Information about the portfolio where the transaction occurred
Main coin data for the transaction (optional for some transaction types)
List of transfers involved in the transaction (e.g., coins received/sent)