Skip to content

Commit

Permalink
Merge pull request #14 from tiagosiebler/#12/fixgetsign
Browse files Browse the repository at this point in the history
fix(#12): fix sign error for some get requests
  • Loading branch information
tiagosiebler authored May 7, 2021
2 parents 7dc968d + 44e694f commit 0ad9b80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ftx-api",
"version": "1.0.8",
"version": "1.0.9",
"description": "Node.js connector for FTX's REST APIs and WebSockets",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/util/requestWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ export default class RequestUtil {
private getRequestSignature(
method: Method,
endpoint: string,
secret?: string | undefined,
params?: string | object
secret: string | undefined,
params: string | object = ''
): { timestamp: number; sign: string; } {
const timestamp = Date.now() + (this.timeOffset || 0);
if (!secret) {
Expand Down

0 comments on commit 0ad9b80

Please sign in to comment.