@pear-protocol/core-sdk 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -703,6 +703,17 @@ declare class Info {
703
703
  }>;
704
704
  }>;
705
705
  };
706
+ statistics: {
707
+ daily: (query: HttpTypes.DailyStatisticsQueryParamsInput, headers?: ClientHeaders) => Promise<{
708
+ data: {
709
+ date: string;
710
+ volume: number;
711
+ fees: number;
712
+ users: number;
713
+ newUsers: number;
714
+ }[];
715
+ }>;
716
+ };
706
717
  }
707
718
 
708
719
  export { Info };
@@ -144,6 +144,15 @@ class Info {
144
144
  });
145
145
  }
146
146
  };
147
+ statistics = {
148
+ daily: async (query, headers) => {
149
+ return await this.client.fetch(`/statistics/daily`, {
150
+ method: "GET",
151
+ headers,
152
+ query
153
+ });
154
+ }
155
+ };
147
156
  }
148
157
 
149
158
  export { Info };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/core-sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Pear Protocol Core SDK",
5
5
  "private": false,
6
6
  "type": "module",
@@ -25,8 +25,8 @@
25
25
  "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@pear-protocol/types": "0.0.12",
29
- "@pear-protocol/utils": "0.0.12",
28
+ "@pear-protocol/types": "0.0.13",
29
+ "@pear-protocol/utils": "0.0.13",
30
30
  "qs": "^6.14.0"
31
31
  },
32
32
  "devDependencies": {