Skip to content

Commit

Permalink
fix(v2.15.6, #507): correct handling for symbols array in rolling win…
Browse files Browse the repository at this point in the history
…dow tickers endpoint
  • Loading branch information
tiagosiebler committed Jan 30, 2025
1 parent 626cf4f commit aa7eb03
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,7 @@ export class MainClient extends BaseRestClient {
params: RollingWindowTickerParams,
): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]> {
if (params && params['symbols'] && Array.isArray(params['symbols'])) {
const symbols = (params as SymbolArrayParam).symbols;
const symbolsQueryParam = JSON.stringify(symbols);

const symbolsQueryParam = JSON.stringify(params.symbols);
return this.get('api/v3/ticker?symbols=' + symbolsQueryParam);
}

Expand Down

0 comments on commit aa7eb03

Please sign in to comment.