@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
104 lines (70 loc) • 2.54 kB
Markdown
All URIs are relative to *https://api.tdameritrade.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**marketdataQuotesGET**](QuotesApi.md
[**marketdataSymbolQuotesGET**](QuotesApi.md
<a name="marketdataQuotesGET"></a>
> GetQuoteResponse marketdataQuotesGET(opts)
Get Quotes
Get quote for one or more symbols
### 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.QuotesApi();
let opts = {
'apikey': "apikey_example", // String |
'symbol': "symbol_example" // String |
};
apiInstance.marketdataQuotesGET(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**apikey** | **String**| | [optional]
**symbol** | **String**| | [optional]
[**GetQuoteResponse**](GetQuoteResponse.md)
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="marketdataSymbolQuotesGET"></a>
> GetQuoteResponse marketdataSymbolQuotesGET(symbol, opts)
Get Quote
Get quote for a symbol
### 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.QuotesApi();
let symbol = "symbol_example"; // String |
let opts = {
'apikey': "apikey_example" // String |
};
apiInstance.marketdataSymbolQuotesGET(symbol, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**symbol** | **String**| |
**apikey** | **String**| | [optional]
[**GetQuoteResponse**](GetQuoteResponse.md)
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json