Skip to content

Commit

Permalink
bugfix: offset must less than 24 hours (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored and tomquisel committed Jan 29, 2019
1 parent e87c3b9 commit 3fd01b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trade_aggregation_call_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ export class TradeAggregationCallBuilder extends CallBuilder {
*/
isValidOffset(offset, resolution){
const hour = 3600000;
return !(offset > resolution || offset > 24 * hour || (offset % hour !== 0));
return !(offset > resolution || offset >= 24 * hour || (offset % hour !== 0));
}
}

0 comments on commit 3fd01b8

Please sign in to comment.