feat(portfolio): add batch wallet profits command

This commit is contained in:
zhongsongzhi-cmyk
2026-08-20 15:57:17 +08:00
parent b2df38d836
commit 8eaee1cb03
6 changed files with 93 additions and 3 deletions
+8
View File
@@ -417,6 +417,14 @@ export class OpenApiClient {
});
}
async getWalletProfits(chain: string, walletAddresses: string[], period = "7d"): Promise<unknown> {
return this.authExistRequest("POST", "/v1/user/wallet_profits", {}, {
chain,
period,
wallet_addresses: walletAddresses,
});
}
async getWalletTokenBalance(
chain: string,
walletAddress: string,