Skip to content
Snippets Groups Projects
Commit ffc07f55 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #479 - Fix type issue

parent 3ada388f
No related branches found
No related tags found
1 merge request!587Delrifai/#479 use aggregated balance api
Pipeline #117484 canceled
......@@ -779,7 +779,7 @@ namespace Hive {
balance_change!: number;
timestamp!: string;
}
export class GetAccountBalanceHistoryParams {
export class AccountBalanceHistoryParams {
"accountName": string;
"coin-type": string;
direction?: Hive.Direction;
......@@ -793,7 +793,7 @@ namespace Hive {
total_pages!: number;
operations_result!: AccountBalanceHistory[];
}
export class GetAggregatedAccountBalanceHistoryParams {
export class AggregatedAccountBalanceHistoryParams {
"accountName": string;
"coin-type": string;
"granularity": string;
......
......@@ -142,13 +142,13 @@ export const extendedRest = {
},
"balance-api" : {
balanceHistory: {
params: Hive.GetAccountBalanceHistoryParams,
params: Hive.AccountBalanceHistoryParams,
result: Hive.AccountBalanceHistoryResponse,
urlPath: "accounts/{accountName}/balance-history",
},
aggregatedHistory: {
params: Hive.GetAccountBalanceHistoryParams,
params: Hive.AggregatedAccountBalanceHistoryParams,
result: Hive.AccountAggregatedBalanceHistoryResponse,
urlPath: "accounts/{accountName}/aggregated-history",
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment