Skip to content

Commit 308ca4e

Browse files
tenorokteambailey
andauthored
fix: Aggregate from and to params can take timestamp (#110)
* fix: Aggregate from and to params can take timestamp * Add comma * Bump version Co-authored-by: Andrew Bailey <[email protected]>
1 parent b17bbbf commit 308ca4e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polygon.io/client-js",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"description": "Isomorphic Javascript client for Polygon.io Stocks, Forex, and Crypto APIs",
55
"main": "lib/main.js",
66
"types": "lib/main.d.ts",

src/rest/stocks/aggregates.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ export const aggregates = async (
3636
ticker: string,
3737
multiplier: number,
3838
timespan: string,
39-
from: string,
40-
to: string,
39+
from: string | number,
40+
to: string | number,
4141
query?: IAggsQuery,
4242
headers?: IHeaders
43-
4443
): Promise<IAggs> =>
4544
get(
4645
`/v2/aggs/ticker/${ticker}/range/${multiplier}/${timespan}/${from}/${to}`,

0 commit comments

Comments
 (0)