Accounts
/api/v1/accountsAuthorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/accounts"[ { "id": "string", "name": "string", "broker": "string", "account_type": "string", "base_currency": "string", "starting_balance": 0 }]/api/v1/accountsAuthorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/accounts" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "string", "name": "string", "broker": "string", "account_type": "string", "base_currency": "string", "starting_balance": 0}/api/v1/accounts/{id}Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/accounts/string"{ "id": "string", "name": "string", "broker": "string", "account_type": "string", "base_currency": "string", "starting_balance": 0}/api/v1/accounts/{id}Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
Response Body
curl -X DELETE "https://example.com/api/v1/accounts/string"/api/v1/accounts/{id}Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://example.com/api/v1/accounts/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "name": "string", "broker": "string", "account_type": "string", "base_currency": "string", "starting_balance": 0}