@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
109 lines (74 loc) • 3.91 kB
Markdown
All URIs are relative to *https://api.tdameritrade.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**accountsAccountIdTransactionsGET**](TransactionsApi.md
[**accountsAccountIdTransactionsTransactionIdGET**](TransactionsApi.md
<a name="accountsAccountIdTransactionsGET"></a>
> Transaction accountsAccountIdTransactionsGET(accountId, opts)
Get Transactions
Transaction for a specific account.
### Example
```javascript
import GitChrisQueen_TDA_JS from '@gitchrisqueen/tdameritrade-api-js-client';
let defaultClient = GitChrisQueen_TDA_JS.ApiClient.instance;
let apiInstance = new GitChrisQueen_TDA_JS.TransactionsApi();
let accountId = "accountId_example"; // String |
let opts = {
'type': "type_example", // String | Only transactions with the specified type will be returned.
'symbol': "symbol_example", // String | Only transactions with the specified symbol will be returned.
'startDate': "startDate_example", // String | Only transactions after the Start Date will be returned. Note: The maximum date range is one year. Valid ISO-8601 formats are : yyyy-MM-dd.
'endDate': "endDate_example" // String | Only transactions after the end Date will be returned. Note: The maximum date range is one year. Valid ISO-8601 formats are : yyyy-MM-dd.
};
apiInstance.accountsAccountIdTransactionsGET(accountId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| |
**type** | **String**| Only transactions with the specified type will be returned. | [optional]
**symbol** | **String**| Only transactions with the specified symbol will be returned. | [optional]
**startDate** | **String**| Only transactions after the Start Date will be returned. Note: The maximum date range is one year. Valid ISO-8601 formats are : yyyy-MM-dd. | [optional]
**endDate** | **String**| Only transactions after the end Date will be returned. Note: The maximum date range is one year. Valid ISO-8601 formats are : yyyy-MM-dd. | [optional]
[**Transaction**](Transaction.md)
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="accountsAccountIdTransactionsTransactionIdGET"></a>
> Transaction accountsAccountIdTransactionsTransactionIdGET(accountId, transactionId)
Get Transaction
Transaction for a specific account.
### Example
```javascript
import GitChrisQueen_TDA_JS from '@gitchrisqueen/tdameritrade-api-js-client';
let defaultClient = GitChrisQueen_TDA_JS.ApiClient.instance;
let apiInstance = new GitChrisQueen_TDA_JS.TransactionsApi();
let accountId = "accountId_example"; // String |
let transactionId = "transactionId_example"; // String |
apiInstance.accountsAccountIdTransactionsTransactionIdGET(accountId, transactionId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| |
**transactionId** | **String**| |
[**Transaction**](Transaction.md)
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json