@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
58 lines (40 loc) • 1.52 kB
Markdown
All URIs are relative to *https://api.tdameritrade.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**marketdataIndexMoversGET**](MoversApi.md
<a name="marketdataIndexMoversGET"></a>
> Mover marketdataIndexMoversGET(index, opts)
Get price history 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.MoversApi();
let index = "index_example"; // String |
let opts = {
'apikey': "apikey_example", // String |
'direction': "direction_example", // String |
'change': "change_example" // String |
};
apiInstance.marketdataIndexMoversGET(index, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**index** | **String**| |
**apikey** | **String**| | [optional]
**direction** | **String**| | [optional]
**change** | **String**| | [optional]
[**Mover**](Mover.md)
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json