Create Portfolio
create_portfolioCreate an accounting portfolio in an existing workspace, optionally choosing jurisdiction and policies; Canada and US profiles require matching currency, entity type, and timezone. If no jurisdiction is selected, Tokenbooks uses generic accounting defaults. Search help for policy choices.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceRef": "<workspaceRef>",
"name": "<name>"
},
"name": "create_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Portfolio name | |
| currency | No | Functional currency (default USD) | |
| workspaceRef | Yes | Workspace name or slug. Call list_workspaces to resolve it. | |
| legalEntityType | No | Legal entity classification for an explicit country profile | |
| jurisdictionCode | No | Exact assigned ISO country code, or custom. If omitted, resolves Custom regardless of currency | |
| reportingTimezone | No | Canonical IANA reporting timezone (default UTC) | |
| costBasisLotMethod | No | Lot-matching method for disposals | |
| costBasisPerWallet | No | Whether acquisition lots stay scoped to each wallet | |
| stablecoinTreatment | No | Stablecoin valuation treatment; this does not change lot tracking | |
| gasFeeAccountingTreatment | No | Accounting treatment for gas spend | |
| financialReportingFramework | No | Financial reporting framework (default TAX_ONLY) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | ||
| currency | Yes | ||
| createdAt | Yes | ||
| updatedAt | Yes | ||
| legalEntityType | No | ||
| hasPostedActivity | Yes | ||
| reportingTimezone | Yes | ||
| accountingConfiguration | Yes |