Skip to content

Commit

Permalink
historical-block-trading
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Dec 6, 2024
1 parent 8aa9c01 commit cfdedee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v4-client-js/src/clients/modules/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,14 @@ export default class AccountClient extends RestClient {
const uri = `/v4/historicalTradingRewardAggregations/${address}`;
return this.get(uri, { period, limit, startingBeforeOrAt, startingBeforeOrAtHeight });
}

async getHistoricalBlockTradingRewards(
address: string,
limit?: number,
startingBeforeOrAt?: string,
startingBeforeOrAtHeight?: string,
): Promise<Data> {
const uri = `/v4/historicalBlockTradingRewards/${address}`;
return this.get(uri, { limit, startingBeforeOrAt, startingBeforeOrAtHeight });
}
}

0 comments on commit cfdedee

Please sign in to comment.