@discomedia/utils 1.0.59 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +0 -2
  2. package/dist/index-frontend.cjs +215 -43
  3. package/dist/index-frontend.cjs.map +1 -1
  4. package/dist/index-frontend.mjs +215 -43
  5. package/dist/index-frontend.mjs.map +1 -1
  6. package/dist/index.cjs +215 -1421
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.mjs +215 -1421
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/package.json +4 -4
  11. package/dist/test.js +215 -268
  12. package/dist/test.js.map +1 -1
  13. package/dist/types/index.d.ts +0 -82
  14. package/dist/types/index.d.ts.map +1 -1
  15. package/dist/types/misc-utils.d.ts +0 -6
  16. package/dist/types/misc-utils.d.ts.map +1 -1
  17. package/dist/types/types/index.d.ts +0 -2
  18. package/dist/types/types/index.d.ts.map +1 -1
  19. package/dist/types-frontend/index.d.ts +0 -82
  20. package/dist/types-frontend/index.d.ts.map +1 -1
  21. package/dist/types-frontend/misc-utils.d.ts +0 -6
  22. package/dist/types-frontend/misc-utils.d.ts.map +1 -1
  23. package/dist/types-frontend/types/index.d.ts +0 -2
  24. package/dist/types-frontend/types/index.d.ts.map +1 -1
  25. package/package.json +4 -4
  26. package/dist/types/polygon-indices.d.ts +0 -85
  27. package/dist/types/polygon-indices.d.ts.map +0 -1
  28. package/dist/types/polygon.d.ts +0 -126
  29. package/dist/types/polygon.d.ts.map +0 -1
  30. package/dist/types/technical-analysis.d.ts +0 -90
  31. package/dist/types/technical-analysis.d.ts.map +0 -1
  32. package/dist/types/types/polygon-indices-types.d.ts +0 -190
  33. package/dist/types/types/polygon-indices-types.d.ts.map +0 -1
  34. package/dist/types/types/polygon-types.d.ts +0 -204
  35. package/dist/types/types/polygon-types.d.ts.map +0 -1
  36. package/dist/types-frontend/polygon-indices.d.ts +0 -85
  37. package/dist/types-frontend/polygon-indices.d.ts.map +0 -1
  38. package/dist/types-frontend/polygon.d.ts +0 -126
  39. package/dist/types-frontend/polygon.d.ts.map +0 -1
  40. package/dist/types-frontend/technical-analysis.d.ts +0 -90
  41. package/dist/types-frontend/technical-analysis.d.ts.map +0 -1
  42. package/dist/types-frontend/types/polygon-indices-types.d.ts +0 -190
  43. package/dist/types-frontend/types/polygon-indices-types.d.ts.map +0 -1
  44. package/dist/types-frontend/types/polygon-types.d.ts +0 -204
  45. package/dist/types-frontend/types/polygon-types.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"technical-analysis.d.ts","sourceRoot":"","sources":["../../src/technical-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGnE;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,gBAAgB,EAAE,EAC7B,EAAE,MAAW,EAAE,kBAAsB,EAAE,GAAE,oBAAyB,GACjE,kBAAkB,EAAE,CAsCtB;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAW,EAAE,OAAW,EAAE,GAAE,SAAc,GAAG,OAAO,EAAE,CA+DnH;AAED,OAAO,EAAE,aAAa,EAAE,eAAe,EAAkB,MAAM,SAAS,CAAC;AAEzE;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,gBAAgB,EAAE,EAC7B,EACE,cAAmB,EACnB,iBAAqD,EACrD,eAAuC,EACvC,gBAAwB,GACzB,GAAE,eAAoB,GACtB,aAAa,EAAE,CAuDjB;AAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,gBAAgB,EAAE,EAC7B,EAAE,WAAgB,EAAE,UAAe,EAAE,YAAgB,EAAE,GAAE,UAAe,GACvE,QAAQ,EAAE,CAyDZ;AAED,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAW,EAAE,GAAE,SAAc,GAAG,OAAO,EAAE,CA2DtG;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,gBAAgB,EAAE,EAC7B,EAAE,cAAkB,EAAE,YAAgB,EAAE,eAAmB,EAAE,GAAE,gBAAqB,GACnF,SAAS,EAAE,CA8Cb;AAED,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAA0B,MAAM,SAAS,CAAC;AAEjG;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,gBAAgB,EAAE,EAC7B,EAAE,SAAa,EAAE,cAAmB,EAAE,GAAE,uBAA4B,GACnE,qBAAqB,EAAE,CA8GzB"}
@@ -1,190 +0,0 @@
1
- /**
2
- * Types for Polygon Indices API
3
- */
4
- /**
5
- * Base response interface for Polygon API responses
6
- */
7
- export interface PolygonIndicesBaseResponse {
8
- /** The status of the response. */
9
- status: string;
10
- /** The request ID. */
11
- request_id: string;
12
- }
13
- /**
14
- * Error response from Polygon Indices API
15
- */
16
- export interface PolygonIndicesErrorResponse extends PolygonIndicesBaseResponse {
17
- /** The status of the error response. */
18
- status: 'ERROR' | 'NOT_AUTHORIZED' | string;
19
- /** The error message. */
20
- message: string;
21
- }
22
- /**
23
- * Represents a single bar/aggregate data point for an index
24
- */
25
- export interface PolygonIndicesBar {
26
- /** The close value for the index in the given time period. */
27
- c: number;
28
- /** The highest value for the index in the given time period. */
29
- h: number;
30
- /** The lowest value for the index in the given time period. */
31
- l: number;
32
- /** The open value for the index in the given time period. */
33
- o: number;
34
- /** The Unix Msec timestamp for the start of the aggregate window. */
35
- t: number;
36
- }
37
- /**
38
- * Response for the aggregates (bars) endpoint
39
- */
40
- export interface PolygonIndicesAggregatesResponse extends PolygonIndicesBaseResponse {
41
- /** The ticker symbol of the index. */
42
- ticker: string;
43
- /** The number of aggregates used to generate the response. */
44
- queryCount: number;
45
- /** The total number of results for this request. */
46
- resultsCount?: number;
47
- /** The count of results returned. */
48
- count?: number;
49
- /** The array of aggregate results. */
50
- results: PolygonIndicesBar[];
51
- }
52
- /**
53
- * Represents a previous close result for an index
54
- */
55
- export interface PolygonIndicesPrevCloseResult {
56
- /** The ticker symbol. */
57
- T: string;
58
- /** The close value for the index in the given time period. */
59
- c: number;
60
- /** The highest value for the index in the given time period. */
61
- h: number;
62
- /** The lowest value for the index in the given time period. */
63
- l: number;
64
- /** The open value for the index in the given time period. */
65
- o: number;
66
- /** The Unix Msec timestamp for the start of the aggregate window. */
67
- t: number;
68
- }
69
- /**
70
- * Response for the previous close endpoint
71
- */
72
- export interface PolygonIndicesPrevCloseResponse extends PolygonIndicesBaseResponse {
73
- /** The ticker symbol of the index. */
74
- ticker: string;
75
- /** The number of aggregates used to generate the response. */
76
- queryCount: number;
77
- /** The total number of results for this request. */
78
- resultsCount: number;
79
- /** The array of previous close results. */
80
- results: PolygonIndicesPrevCloseResult[];
81
- }
82
- /**
83
- * Response for the daily open/close endpoint
84
- */
85
- export interface PolygonIndicesDailyOpenCloseResponse {
86
- /** The after-hours value of the index, if available. */
87
- afterHours?: number;
88
- /** The close value for the index. */
89
- close: number;
90
- /** The date of the data in ISO format. */
91
- from: string;
92
- /** The highest value for the index during the day. */
93
- high: number;
94
- /** The lowest value for the index during the day. */
95
- low: number;
96
- /** The open value for the index. */
97
- open: number;
98
- /** The pre-market value of the index, if available. */
99
- preMarket?: number;
100
- /** The status of the response. */
101
- status: string;
102
- /** The ticker symbol of the index. */
103
- symbol: string;
104
- }
105
- /**
106
- * Represents a session data for an index in the snapshot
107
- */
108
- export interface PolygonIndicesSession {
109
- /** The value of the change for the index from the previous trading day. */
110
- change: number;
111
- /** The percent of the change for the index from the previous trading day. */
112
- change_percent: number;
113
- /** The closing value for the index of the day. */
114
- close: number;
115
- /** The highest value for the index of the day. */
116
- high: number;
117
- /** The lowest value for the index of the day. */
118
- low: number;
119
- /** The open value for the index of the day. */
120
- open: number;
121
- /** The closing value for the index of previous trading day. */
122
- previous_close: number;
123
- }
124
- /**
125
- * Represents a single index result in the snapshot response
126
- */
127
- export interface PolygonIndicesSnapshotResult {
128
- /** The nanosecond timestamp of when this information was updated. */
129
- last_updated?: number;
130
- /** The market status for the market that trades this index. */
131
- market_status?: string;
132
- /** Name of the index. */
133
- name?: string;
134
- /** Session data for the index. */
135
- session?: PolygonIndicesSession;
136
- /** Ticker of the index. */
137
- ticker: string;
138
- /** The time relevance of the data. */
139
- timeframe?: 'DELAYED' | 'REAL-TIME';
140
- /** The type of the asset. */
141
- type?: 'indices';
142
- /** Value of the index. */
143
- value?: number;
144
- /** Error message if there was an issue with this ticker. */
145
- error?: string;
146
- /** Error message details. */
147
- message?: string;
148
- }
149
- /**
150
- * Response for the indices snapshot endpoint
151
- */
152
- export interface PolygonIndicesSnapshotResponse extends PolygonIndicesBaseResponse {
153
- /** URL for the next page of results, if available. */
154
- next_url?: string;
155
- /** The array of index snapshot results. */
156
- results: PolygonIndicesSnapshotResult[];
157
- }
158
- /**
159
- * Parameters for fetching aggregates (bars) for an index
160
- */
161
- export interface PolygonIndicesAggregatesParams {
162
- /** The ticker symbol of the index. */
163
- indicesTicker: string;
164
- /** The size of the timespan multiplier. */
165
- multiplier: number;
166
- /** The size of the time window (minute, hour, day, week, month, quarter, year). */
167
- timespan: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
168
- /** The start of the aggregate time window (YYYY-MM-DD or millisecond timestamp). */
169
- from: string | number;
170
- /** The end of the aggregate time window (YYYY-MM-DD or millisecond timestamp). */
171
- to: string | number;
172
- /** Sort the results by timestamp (asc or desc). */
173
- sort?: 'asc' | 'desc';
174
- /** Limits the number of base aggregates queried. */
175
- limit?: number;
176
- }
177
- /**
178
- * Parameters for fetching indices snapshot
179
- */
180
- export interface PolygonIndicesSnapshotParams {
181
- /** Comma separated list of tickers. */
182
- tickers?: string[];
183
- /** Order results based on the sort field. */
184
- order?: 'asc' | 'desc';
185
- /** Limit the number of results returned. */
186
- limit?: number;
187
- /** Sort field used for ordering. */
188
- sort?: string;
189
- }
190
- //# sourceMappingURL=polygon-indices-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polygon-indices-types.d.ts","sourceRoot":"","sources":["../../../src/types/polygon-indices-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,0BAA0B;IAC7E,wCAAwC;IACxC,MAAM,EAAE,OAAO,GAAG,gBAAgB,GAAG,MAAM,CAAC;IAC5C,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,8DAA8D;IAC9D,CAAC,EAAE,MAAM,CAAC;IACV,gEAAgE;IAChE,CAAC,EAAE,MAAM,CAAC;IACV,+DAA+D;IAC/D,CAAC,EAAE,MAAM,CAAC;IACV,6DAA6D;IAC7D,CAAC,EAAE,MAAM,CAAC;IACV,qEAAqE;IACrE,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,0BAA0B;IAClF,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,U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GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAC5E,oFAAoF;IACpF,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,kFAAkF;IAClF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -1,204 +0,0 @@
1
- /**
2
- * Represents a unit of price data for a specific symbol on a given date.
3
- */
4
- export type PolygonPriceData = {
5
- /** The symbol of the asset. */
6
- symbol: string;
7
- /** The date of the price data. */
8
- date: string;
9
- /** The timestamp of the price data. */
10
- timeStamp: number;
11
- /** The opening price. */
12
- open: number;
13
- /** The highest price during the period. */
14
- high: number;
15
- /** The lowest price during the period. */
16
- low: number;
17
- /** The closing price. */
18
- close: number;
19
- /** The volume of trades. */
20
- vol: number;
21
- /** The volume-weighted average price. */
22
- vwap: number;
23
- /** The number of trades. */
24
- trades: number;
25
- };
26
- /**
27
- * Represents a quote for a specific asset.
28
- */
29
- export type PolygonQuote = {
30
- /** The price of the asset. */
31
- price: number;
32
- /** The volume of the asset. */
33
- vol: number;
34
- /** The time of the quote. */
35
- time: Date;
36
- };
37
- /**
38
- * The Polygon API response for grouped daily data.
39
- */
40
- export type PolygonGroupedDailyResponse = {
41
- /** Indicates if the data is adjusted. */
42
- adjusted: boolean;
43
- /** The count of queries made. */
44
- queryCount: number;
45
- /** The request ID. */
46
- request_id: string;
47
- /** The count of results returned. */
48
- resultsCount: number;
49
- /** The status of the response. */
50
- status: string;
51
- /** The array of price data results. */
52
- results: PolygonPriceData[];
53
- };
54
- /**
55
- * Represents raw price data from Polygon.
56
- */
57
- export interface RawPolygonPriceData {
58
- /** The ticker symbol. */
59
- T: string;
60
- /** The closing price. */
61
- c: number;
62
- /** The highest price. */
63
- h: number;
64
- /** The lowest price. */
65
- l: number;
66
- /** The number of trades. */
67
- n: number;
68
- /** The opening price. */
69
- o: number;
70
- /** The timestamp. */
71
- t: number;
72
- /** The volume. */
73
- v: number;
74
- /** The volume-weighted average price. */
75
- vw: number;
76
- }
77
- /**
78
- * Represents information about a ticker including its name, market cap, and outstanding shares.
79
- */
80
- export interface PolygonTickerInfo {
81
- /** Indicates if the ticker is active. */
82
- active: boolean;
83
- /** The name of the currency. */
84
- currency_name: string;
85
- /** The UTC time when the ticker was delisted, if applicable. */
86
- delisted_utc?: string;
87
- /** A description of the ticker. */
88
- description: string;
89
- /** The locale of the ticker. */
90
- locale: string;
91
- /** The market in which the ticker operates. */
92
- market: 'stocks' | 'crypto' | 'indices' | 'fx' | 'otc';
93
- /** The market capitalization. */
94
- market_cap: number;
95
- /** The name of the ticker. */
96
- name: string;
97
- /** The primary exchange for the ticker. */
98
- primary_exchange: string;
99
- /** The number of shares outstanding. */
100
- share_class_shares_outstanding?: number | null;
101
- /** The ticker symbol. */
102
- ticker: string;
103
- /** The type of asset - CS, PFD, ETF, etc. */
104
- type: string;
105
- }
106
- /**
107
- * Represents the Polygon API response for ticker information.
108
- */
109
- export interface PolygonTickerResponse {
110
- /** The count of tickers returned. */
111
- count: number;
112
- /** The next URL for pagination, if applicable. */
113
- next_url: string | null;
114
- /** The request ID. */
115
- request_id: string;
116
- /** The array of ticker information results. */
117
- results: PolygonTickerInfo[];
118
- /** The status of the response. */
119
- status: string;
120
- }
121
- /**
122
- * Represents daily open and close data for a ticker for grouped daily data.
123
- */
124
- export interface PolygonDailyOpenClose {
125
- /** The after-hours price, if applicable. */
126
- afterHours?: number;
127
- /** The closing price. */
128
- close: number;
129
- /** The date from which the data is taken. */
130
- from: string;
131
- /** The highest price during the day. */
132
- high: number;
133
- /** The lowest price during the day. */
134
- low: number;
135
- /** The opening price. */
136
- open: number;
137
- /** The pre-market price, if applicable. */
138
- preMarket?: number;
139
- /** The status of the market. */
140
- status: string;
141
- /** The symbol of the asset. */
142
- symbol: string;
143
- /** The volume of trades. */
144
- volume: number;
145
- }
146
- /**
147
- * Represents a trade in the Polygon system.
148
- */
149
- export interface PolygonTrade {
150
- /** The conditions of the trade. */
151
- conditions: number[];
152
- /** The correction status, if applicable. */
153
- correction?: number;
154
- /** The exchange where the trade occurred. */
155
- exchange: number;
156
- /** The unique identifier for the trade. */
157
- id: string;
158
- /** The timestamp of the participant. */
159
- participant_timestamp: number;
160
- /** The price of the trade. */
161
- price: number;
162
- /** The sequence number of the trade. */
163
- sequence_number: number;
164
- /** The timestamp from the SIP. */
165
- sip_timestamp: number;
166
- /** The size of the trade. */
167
- size: number;
168
- /** The tape number, if applicable. */
169
- tape?: number;
170
- /** The transfer ID, if applicable. */
171
- trf_id?: number;
172
- /** The timestamp of the transfer, if applicable. */
173
- trf_timestamp?: number;
174
- }
175
- /**
176
- * Represents the base response structure from Polygon.
177
- */
178
- export interface PolygonBaseResponse {
179
- /** The status of the response. */
180
- status: string;
181
- /** The request ID. */
182
- request_id: string;
183
- }
184
- /**
185
- * Represents the response for trades from Polygon.
186
- */
187
- export interface PolygonTradesResponse extends PolygonBaseResponse {
188
- /** The status of the response, which should be 'OK'. */
189
- status: 'OK';
190
- /** The next URL for pagination, if applicable. */
191
- next_url?: string;
192
- /** The array of trade results. */
193
- results: PolygonTrade[];
194
- }
195
- /**
196
- * Represents an error response from Polygon.
197
- */
198
- export interface PolygonErrorResponse extends PolygonBaseResponse {
199
- /** The status of the error response. */
200
- status: 'ERROR' | 'NOT_AUTHORIZED' | string;
201
- /** The error message. */
202
- message: string;
203
- }
204
- //# sourceMappingURL=polygon-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polygon-types.d.ts","sourceRoot":"","sources":["../../../src/types/polygon-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,yCAAyC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,yBAAyB;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,yBAAyB;I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AE,MAAM,CAAC;IACf,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB;IAChE,wDAAwD;IACxD,MAAM,EAAE,IAAI,CAAC;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,wCAAwC;IACxC,MAAM,EAAE,OAAO,GAAG,gBAAgB,GAAG,MAAM,CAAC;IAC5C,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1,85 +0,0 @@
1
- /**
2
- * Polygon Indices API Implementation
3
- *
4
- * This module provides functions to interact with the Polygon.io Indices API.
5
- */
6
- import { PolygonIndicesAggregatesParams, PolygonIndicesAggregatesResponse, PolygonIndicesPrevCloseResponse, PolygonIndicesDailyOpenCloseResponse, PolygonIndicesSnapshotParams, PolygonIndicesSnapshotResponse } from './types';
7
- /**
8
- * Fetches aggregate bars for an index over a given date range in custom time window sizes.
9
- *
10
- * @param {PolygonIndicesAggregatesParams} params - Parameters for the aggregates request
11
- * @param {Object} [options] - Optional parameters
12
- * @param {string} [options.apiKey] - API key to use for the request
13
- * @returns {Promise<PolygonIndicesAggregatesResponse>} The aggregates response
14
- */
15
- export declare const fetchIndicesAggregates: (params: PolygonIndicesAggregatesParams, options?: {
16
- apiKey?: string;
17
- }) => Promise<PolygonIndicesAggregatesResponse>;
18
- /**
19
- * Gets the previous day's open, high, low, and close (OHLC) for the specified index.
20
- *
21
- * @param {string} indicesTicker - The ticker symbol of the index
22
- * @param {Object} [options] - Optional parameters
23
- * @param {string} [options.apiKey] - API key to use for the request
24
- * @returns {Promise<PolygonIndicesPrevCloseResponse>} The previous close response
25
- */
26
- export declare const fetchIndicesPreviousClose: (indicesTicker: string, options?: {
27
- apiKey?: string;
28
- }) => Promise<PolygonIndicesPrevCloseResponse>;
29
- /**
30
- * Gets the open, close and afterhours values of an index symbol on a certain date.
31
- *
32
- * @param {string} indicesTicker - The ticker symbol of the index
33
- * @param {string} date - The date in YYYY-MM-DD format
34
- * @param {Object} [options] - Optional parameters
35
- * @param {string} [options.apiKey] - API key to use for the request
36
- * @returns {Promise<PolygonIndicesDailyOpenCloseResponse>} The daily open/close response
37
- */
38
- export declare const fetchIndicesDailyOpenClose: (indicesTicker: string, date: string, options?: {
39
- apiKey?: string;
40
- }) => Promise<PolygonIndicesDailyOpenCloseResponse>;
41
- /**
42
- * Gets a snapshot of indices data for specified tickers.
43
- *
44
- * @param {PolygonIndicesSnapshotParams} [params] - Parameters for the snapshot request
45
- * @param {Object} [options] - Optional parameters
46
- * @param {string} [options.apiKey] - API key to use for the request
47
- * @returns {Promise<PolygonIndicesSnapshotResponse>} The indices snapshot response
48
- */
49
- export declare const fetchIndicesSnapshot: (params?: PolygonIndicesSnapshotParams, options?: {
50
- apiKey?: string;
51
- }) => Promise<PolygonIndicesSnapshotResponse>;
52
- /**
53
- * Gets snapshots for assets of all types, including indices.
54
- *
55
- * @param {string[]} tickers - Array of tickers to fetch snapshots for
56
- * @param {Object} [options] - Optional parameters
57
- * @param {string} [options.apiKey] - API key to use for the request
58
- * @param {string} [options.type] - Filter by asset type
59
- * @param {string} [options.order] - Order results
60
- * @param {number} [options.limit] - Limit the number of results
61
- * @param {string} [options.sort] - Sort field
62
- * @returns {Promise<any>} The universal snapshot response
63
- */
64
- export declare const fetchUniversalSnapshot: (tickers: string[], options?: {
65
- apiKey?: string;
66
- type?: string;
67
- order?: string;
68
- limit?: number;
69
- sort?: string;
70
- }) => Promise<any>;
71
- /**
72
- * Converts Polygon Indices bar data to a more standardized format
73
- *
74
- * @param {PolygonIndicesAggregatesResponse} data - The raw aggregates response
75
- * @returns {Array<{date: string, open: number, high: number, low: number, close: number, timestamp: number}>} Formatted bar data
76
- */
77
- export declare const formatIndicesBarData: (data: PolygonIndicesAggregatesResponse) => Array<{
78
- date: string;
79
- open: number;
80
- high: number;
81
- low: number;
82
- close: number;
83
- timestamp: number;
84
- }>;
85
- //# sourceMappingURL=polygon-indices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polygon-indices.d.ts","sourceRoot":"","sources":["../../src/polygon-indices.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,EAChC,+BAA+B,EAC/B,oCAAoC,EACpC,4BAA4B,EAC5B,8BAA8B,EAE/B,MAAM,SAAS,CAAC;AAyBjB;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,8BAA8B,EACtC,UAAU;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,gCAAgC,CAuC1C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACpC,eAAe,MAAM,EACrB,UAAU;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,+BAA+B,CAyBzC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,GACrC,eAAe,MAAM,EACrB,MAAM,MAAM,EACZ,UAAU;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,oCAAoC,CAyB9C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,4BAA4B,EACrC,UAAU;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,8BAA8B,CAyCxC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,MAAM,EAAE,EACjB,UAAU;IACR,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KACA,OAAO,CAAC,GAAG,CA6Cb,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,gCAAgC,KACrC,KAAK,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAYA,CAAC"}
@@ -1,126 +0,0 @@
1
- /**********************************************************************************
2
- * Polygon.io calls
3
- **********************************************************************************/
4
- import { PolygonQuote, PolygonPriceData, PolygonGroupedDailyResponse, PolygonTickerInfo, PolygonDailyOpenClose, PolygonTradesResponse } from './types';
5
- /**
6
- * Fetches general information about a stock ticker.
7
- * @param {string} symbol - The stock ticker symbol to fetch information for.
8
- * @param {Object} [options] - Optional parameters.
9
- * @param {string} [options.apiKey] - The API key to use for the request.
10
- * @returns {Promise<PolygonTickerInfo | null>} The ticker information or null if not found.
11
- */
12
- export declare const fetchTickerInfo: (symbol: string, options?: {
13
- apiKey?: string;
14
- }) => Promise<PolygonTickerInfo | null>;
15
- /**
16
- * Fetches the last trade for a given stock ticker.
17
- * @param {string} symbol - The stock ticker symbol to fetch the last trade for.
18
- * @param {Object} [options] - Optional parameters.
19
- * @param {string} [options.apiKey] - The API key to use for the request.
20
- * @returns {Promise<PolygonQuote>} The last trade information.
21
- */
22
- export declare const fetchLastTrade: (symbol: string, options?: {
23
- apiKey?: string;
24
- }) => Promise<PolygonQuote>;
25
- /**
26
- * Fetches price data for a given stock ticker.
27
- * @param {Object} params - The parameters for fetching price data.
28
- * @param {string} params.ticker - The stock ticker symbol.
29
- * @param {number} params.start - The start timestamp for fetching price data.
30
- * @param {number} [params.end] - The end timestamp for fetching price data.
31
- * @param {number} params.multiplier - The multiplier for the price data.
32
- * @param {string} params.timespan - The timespan for the price data.
33
- * @param {number} [params.limit] - The maximum number of price data points to fetch.
34
- * @param {Object} [options] - Optional parameters.
35
- * @param {string} [options.apiKey] - The API key to use for the request.
36
- * @returns {Promise<PolygonPriceData[]>} The fetched price data.
37
- */
38
- export declare const fetchPrices: (params: {
39
- ticker: string;
40
- start: number;
41
- end?: number;
42
- multiplier: number;
43
- timespan: string;
44
- limit?: number;
45
- }, options?: {
46
- apiKey?: string;
47
- }) => Promise<PolygonPriceData[]>;
48
- /**
49
- * Analyzes the price data for a given stock.
50
- * @param {PolygonPriceData[]} priceData - The price data to analyze.
51
- * @returns {string} The analysis report.
52
- */
53
- export declare function analysePolygonPriceData(priceData: PolygonPriceData[]): string;
54
- /**
55
- * Fetches grouped daily price data for a specific date.
56
- * @param {string} date - The date to fetch grouped daily data for.
57
- * @param {Object} [options] - Optional parameters.
58
- * @param {string} [options.apiKey] - The API key to use for the request.
59
- * @param {boolean} [options.adjusted] - Whether to adjust the data.
60
- * @param {boolean} [options.includeOTC] - Whether to include OTC data.
61
- * @returns {Promise<PolygonGroupedDailyResponse>} The grouped daily response.
62
- */
63
- export declare const fetchGroupedDaily: (date: string, options?: {
64
- apiKey?: string;
65
- adjusted?: boolean;
66
- includeOTC?: boolean;
67
- }) => Promise<PolygonGroupedDailyResponse>;
68
- /**
69
- * Formats the price data into a readable string.
70
- * @param {PolygonPriceData[]} priceData - The price data to format.
71
- * @returns {string} The formatted price data.
72
- */
73
- export declare function formatPriceData(priceData: PolygonPriceData[]): string;
74
- export declare const fetchDailyOpenClose: (
75
- /**
76
- * Fetches the daily open and close data for a given stock ticker.
77
- * @param {string} symbol - The stock ticker symbol to fetch data for.
78
- * @param {Date} [date=new Date()] - The date to fetch data for.
79
- * @param {Object} [options] - Optional parameters.
80
- * @param {string} [options.apiKey] - The API key to use for the request.
81
- * @param {boolean} [options.adjusted] - Whether to adjust the data.
82
- * @returns {Promise<PolygonDailyOpenClose>} The daily open and close data.
83
- */
84
- symbol: string, date?: Date, options?: {
85
- apiKey?: string;
86
- adjusted?: boolean;
87
- }) => Promise<PolygonDailyOpenClose>;
88
- /**
89
- * Gets the previous close price for a given stock ticker.
90
- * @param {string} symbol - The stock ticker symbol to fetch the previous close for.
91
- * @param {Date} [referenceDate] - The reference date to use for fetching the previous close.
92
- * @returns {Promise<{ close: number; date: Date }>} The previous close price and date.
93
- */
94
- export declare function getPreviousClose(symbol: string, referenceDate?: Date, options?: {
95
- apiKey?: string;
96
- }): Promise<{
97
- close: number;
98
- date: Date;
99
- }>;
100
- /**
101
- * Fetches trade data for a given stock ticker.
102
- * @param {string} symbol - The stock ticker symbol to fetch trades for.
103
- * @param {Object} [options] - Optional parameters.
104
- * @param {string} [options.apiKey] - The API key to use for the request.
105
- * @param {string | number} [options.timestamp] - The timestamp for fetching trades.
106
- * @param {string | number} [options.timestampgt] - Greater than timestamp for fetching trades.
107
- * @param {string | number} [options.timestampgte] - Greater than or equal to timestamp for fetching trades.
108
- * @param {string | number} [options.timestamplt] - Less than timestamp for fetching trades.
109
- * @param {string | number} [options.timestamplte] - Less than or equal to timestamp for fetching trades.
110
- * @param {'asc' | 'desc'} [options.order] - The order of the trades.
111
- * @param {number} [options.limit] - The maximum number of trades to fetch.
112
- * @param {string} [options.sort] - The sort order for the trades.
113
- * @returns {Promise<PolygonTradesResponse>} The fetched trades response.
114
- */
115
- export declare const fetchTrades: (symbol: string, options?: {
116
- apiKey?: string;
117
- timestamp?: string | number;
118
- timestampgt?: string | number;
119
- timestampgte?: string | number;
120
- timestamplt?: string | number;
121
- timestamplte?: string | number;
122
- order?: "asc" | "desc";
123
- limit?: number;
124
- sort?: string;
125
- }) => Promise<PolygonTradesResponse>;
126
- //# sourceMappingURL=polygon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../src/polygon.ts"],"names":[],"mappings":"AAAA;;oFAEoF;AAGpF,OAAO,EACL,YAAY,EACZ,gBAAgB,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