Get Rewards Aggregated
Retrieves aggregated historical trading rewards for the specified address.
Method Declaration
Python
async def get_historical_trading_rewards_aggregated(
self,
address: str,
period: TradingRewardAggregationPeriod = TradingRewardAggregationPeriod.DAILY,
limit: Optional[int] = None,
starting_before_or_at: Optional[str] = None,
starting_before_or_at_height: Optional[int] = None,
) -> AnyParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
address | path | Address | true | The wallet address that owns the account. |
period | query | TradingRewardAggregationPeriod | true | The aggregation period. |
limit | query | u32 | false | The maximum number of aggregated rewards to retrieve. |
startingBeforeOrAt | query | DateTime | false | The timestamp filter for rewards starting before or at. |
startingBeforeOrAtHeight | query | Height | false | The block height filter for rewards starting before or at. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | HistoricalTradingRewardAggregation ⛁ | The aggregated historical trading rewards data. |
400 | Bad Request | The request was malformed or invalid. |