@@ -174,6 +174,11 @@ def forex_currencies_snapshot_gainers_losers(self, direction,
174
174
endpoint = f"{ self .url } /v2/snapshot/locale/global/markets/forex/{ direction } "
175
175
return self ._handle_response ("ForexCurrenciesSnapshotGainersLosersApiResponse" , endpoint , query_params )
176
176
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
+
177
182
def crypto_crypto_exchanges (self , ** query_params ) -> models .CryptoCryptoExchangesApiResponse :
178
183
endpoint = f"{ self .url } /v1/meta/crypto-exchanges"
179
184
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
187
192
endpoint = f"{ self .url } /v1/open-close/crypto/{ from_ } /{ to } /{ date } "
188
193
return self ._handle_response ("CryptoDailyOpenCloseApiResponse" , endpoint , query_params )
189
194
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
+
190
200
def crypto_historic_crypto_trades (self , from_ , to , date ,
191
201
** query_params ) -> models .CryptoHistoricCryptoTradesApiResponse :
192
202
endpoint = f"{ self .url } /v1/historic/crypto/{ from_ } /{ to } /{ date } "
0 commit comments