naftiko: 1.0.0-alpha2 info: label: TD Ameritrade Accounts and Trading API — Transactions description: 'TD Ameritrade Accounts and Trading API — Transactions. 2 operations. Lead operation: Get Transactions. Self-contained Naftiko capability covering one Td Ameritrade Holding business surface.' tags: - Td Ameritrade Holding - Transactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TD_AMERITRADE_HOLDING_API_KEY: TD_AMERITRADE_HOLDING_API_KEY capability: consumes: - type: http namespace: td-ameritrade-accounts-trading-transactions baseUri: https://api.tdameritrade.com/v1 description: TD Ameritrade Accounts and Trading API — Transactions business capability. Self-contained, no shared references. resources: - name: accounts-accountId-transactions path: /accounts/{accountId}/transactions operations: - name: gettransactions method: GET description: Get Transactions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: type in: query type: string description: Only retrieve transactions of specific type - name: symbol in: query type: string description: Only retrieve transactions for a specific symbol - name: startDate in: query type: string description: Start date filter (yyyy-MM-dd) - name: endDate in: query type: string description: End date filter (yyyy-MM-dd) - name: accounts-accountId-transactions-transactionId path: /accounts/{accountId}/transactions/{transactionId} operations: - name: gettransaction method: GET description: Get Transaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: transactionId in: path type: string description: Unique transaction identifier required: true authentication: type: bearer token: '{{env.TD_AMERITRADE_HOLDING_API_KEY}}' exposes: - type: rest namespace: td-ameritrade-accounts-trading-transactions-rest port: 8080 description: REST adapter for TD Ameritrade Accounts and Trading API — Transactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{accountid}/transactions name: accounts-accountid-transactions description: REST surface for accounts-accountId-transactions. operations: - method: GET name: gettransactions description: Get Transactions call: td-ameritrade-accounts-trading-transactions.gettransactions with: type: rest.type symbol: rest.symbol startDate: rest.startDate endDate: rest.endDate outputParameters: - type: object mapping: $. - path: /v1/accounts/{accountid}/transactions/{transactionid} name: accounts-accountid-transactions-transactionid description: REST surface for accounts-accountId-transactions-transactionId. operations: - method: GET name: gettransaction description: Get Transaction call: td-ameritrade-accounts-trading-transactions.gettransaction with: transactionId: rest.transactionId outputParameters: - type: object mapping: $. - type: mcp namespace: td-ameritrade-accounts-trading-transactions-mcp port: 9090 transport: http description: MCP adapter for TD Ameritrade Accounts and Trading API — Transactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-transactions description: Get Transactions hints: readOnly: true destructive: false idempotent: true call: td-ameritrade-accounts-trading-transactions.gettransactions with: type: tools.type symbol: tools.symbol startDate: tools.startDate endDate: tools.endDate outputParameters: - type: object mapping: $. - name: get-transaction description: Get Transaction hints: readOnly: true destructive: false idempotent: true call: td-ameritrade-accounts-trading-transactions.gettransaction with: transactionId: tools.transactionId outputParameters: - type: object mapping: $.