File tree Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
2
3
3
//API key goes here
4
- const api_key = '[API KEY GOES HERE ]' ;
4
+ const api_key = '[REDACT ]' ;
5
5
6
6
//Object containing all the endpoints/params
7
7
const req_set = {
Original file line number Diff line number Diff line change @@ -247,30 +247,32 @@ Returns: ```Object```
247
247
248
248
#### Example input:
249
249
``` javascript
250
- sas .getTimeSeries (' AAPL' );
250
+ sas .getQuotes (' AAPL' );
251
251
```
252
252
253
253
#### Example output:
254
254
``` javascript
255
255
{
256
- ' 0P000000GY' : [
257
- {
258
- datetime: ' 2021-04-01T15:30:00Z' ,
259
- volume: 569393 ,
260
- lastPrice: 123.175 ,
261
- openPrice: 123.2751 ,
262
- lowPrice: 123.17 ,
263
- highPrice: 123.31
264
- },
265
- {
266
- datetime: ' 2021-04-01T15:25:00Z' ,
267
- volume: 535491 ,
268
- lastPrice: 123.2783 ,
269
- openPrice: 123.22 ,
270
- lowPrice: 123.19 ,
271
- highPrice: 123.34
272
- },
273
- ...
274
- ]
256
+ ' 0P000000GY' : {
257
+ name: ' Apple Inc' ,
258
+ exchange: ' XNAS' ,
259
+ region: ' USA' ,
260
+ ticker: ' AAPL' ,
261
+ price: 122.67 ,
262
+ priceChange: 0.52 ,
263
+ percentChange: 0.4257 ,
264
+ openPrice: 123.66 ,
265
+ volume: 55853864 ,
266
+ yesterdayPrice: 122.15 ,
267
+ dayHigh: 124.18 ,
268
+ dayLow: 122.57 ,
269
+ fiftyTwoWeekHigh: 145.09 ,
270
+ fiftyTwoWeekLow: 59.225 ,
271
+ currency: ' USD' ,
272
+ marketPhase: ' Open' ,
273
+ activityTimeUTC: ' 2021-04-01T19:03:11Z' ,
274
+ exchangeActivityTimeLabel: ' 04/01/2021 03:03 PM EDT' ,
275
+ securityId: ' 0P000000GY'
276
+ }
275
277
}
276
278
```
You can’t perform that action at this time.
0 commit comments