TraderMemos
API 參考

Trades

GET/api/v1/trades

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Query Parameters

account_id?string

Account scope. Accepts a single account id, a comma-separated list, or the parameter repeated (portfolio mode). Multi-account scopes must share one base currency; mixed-currency selections return 400 mixed_currencies. Omit for all accounts.

from?string

RFC3339 start time

Formatdate-time
to?string

RFC3339 end time

Formatdate-time
status?string

Response Body

application/json

curl -X GET "https://example.com/api/v1/trades"
[  {}]
GET/api/v1/trades/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/trades/string"
{}
PATCH/api/v1/trades/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/api/v1/trades/string" \  -H "Content-Type: application/json" \  -d '{}'
Empty
DELETE/api/v1/trades/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

id*string

Response Body

curl -X DELETE "https://example.com/api/v1/trades/string"
Empty