@@ -174,6 +174,11 @@ def forex_currencies_snapshot_gainers_losers(self, direction,
174174 endpoint = f"{ self .url } /v2/snapshot/locale/global/markets/forex/{ direction } "
175175 return self ._handle_response ("ForexCurrenciesSnapshotGainersLosersApiResponse" , endpoint , query_params )
176176
177+ def forex_currencies_aggregates (self , ticker , multiplier , timespan , from_ , to ,
178+ ** query_params ) -> models .CurrenciesAggregatesApiResponse :
179+ endpoint = f"{ self .url } /v2/aggs/ticker/{ ticker } /range/{ multiplier } /{ timespan } /{ from_ } /{ to } "
180+ return self ._handle_response ("CurrenciesAggregatesApiResponse" , endpoint , query_params )
181+
177182 def crypto_crypto_exchanges (self , ** query_params ) -> models .CryptoCryptoExchangesApiResponse :
178183 endpoint = f"{ self .url } /v1/meta/crypto-exchanges"
179184 return self ._handle_response ("CryptoCryptoExchangesApiResponse" , endpoint , query_params )
@@ -187,6 +192,11 @@ def crypto_daily_open_close(self, from_, to, date, **query_params) -> models.Cry
187192 endpoint = f"{ self .url } /v1/open-close/crypto/{ from_ } /{ to } /{ date } "
188193 return self ._handle_response ("CryptoDailyOpenCloseApiResponse" , endpoint , query_params )
189194
195+ def crypto_aggregates (self , ticker , multiplier , timespan , from_ , to ,
196+ ** query_params ) -> models .CurrenciesAggregatesApiResponse :
197+ endpoint = f"{ self .url } /v2/aggs/ticker/{ ticker } /range/{ multiplier } /{ timespan } /{ from_ } /{ to } "
198+ return self ._handle_response ("CurrenciesAggregatesApiResponse" , endpoint , query_params )
199+
190200 def crypto_historic_crypto_trades (self , from_ , to , date ,
191201 ** query_params ) -> models .CryptoHistoricCryptoTradesApiResponse :
192202 endpoint = f"{ self .url } /v1/historic/crypto/{ from_ } /{ to } /{ date } "
0 commit comments