@compass-labs/api-sdk 0.1.2 → 0.1.3
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.
- package/FUNCTIONS.md +3 -4
- package/README.md +19 -25
- package/bin/mcp-server.js +13 -12
- package/bin/mcp-server.js.map +11 -11
- package/dist/commonjs/funcs/aaveV3AvgRate.d.ts +2 -2
- package/dist/commonjs/funcs/aaveV3AvgRate.js +2 -2
- package/dist/commonjs/funcs/aaveV3Rate.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Rate.js +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.js +3 -2
- package/dist/commonjs/funcs/aaveV3StdRate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.js +2 -2
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js +3 -2
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +26 -25
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +29 -28
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.d.ts +2 -2
- package/dist/esm/funcs/aaveV3AvgRate.js +2 -2
- package/dist/esm/funcs/aaveV3Rate.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Rate.js +1 -1
- package/dist/esm/funcs/aaveV3StdRate.d.ts +3 -2
- package/dist/esm/funcs/aaveV3StdRate.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3StdRate.js +3 -2
- package/dist/esm/funcs/aaveV3StdRate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.js +2 -2
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Rate.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3StdRate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js +3 -2
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +26 -25
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +29 -28
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +49 -48
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AvgRate.ts +2 -2
- package/src/funcs/aaveV3Rate.ts +1 -1
- package/src/funcs/aaveV3StdRate.ts +3 -2
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/aaveV3AvgRate.ts +2 -2
- package/src/mcp-server/tools/aaveV3Rate.ts +1 -1
- package/src/mcp-server/tools/aaveV3StdRate.ts +3 -2
- package/src/sdk/aavev3.ts +38 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/mcp-server/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EA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-v3-avg-rate",
|
|
12
|
-
description: `
|
|
12
|
+
description: `Interest Rates: time average
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Provides time-weighted averages of deposit and borrow rates for Aave reserves.`,
|
|
15
15
|
args,
|
|
16
16
|
tool: async (client, args, ctx) => {
|
|
17
17
|
const [result, apiCall] = await aaveV3AvgRate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aaveV3AvgRate.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/aaveV3AvgRate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,gCAAgC;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"aaveV3AvgRate.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/aaveV3AvgRate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,gCAAgC;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE;;+EAEgE;IAC7E,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,aAAa,CAC3C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aaveV3StdRate.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/aaveV3StdRate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"aaveV3StdRate.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/aaveV3StdRate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,OAAO,IAAI,CAyB1D,CAAC"}
|
|
@@ -9,9 +9,10 @@ const args = {
|
|
|
9
9
|
};
|
|
10
10
|
export const tool$aaveV3StdRate = {
|
|
11
11
|
name: "aave-v3-std-rate",
|
|
12
|
-
description: `
|
|
12
|
+
description: `Interest Rates: standard deviation
|
|
13
13
|
|
|
14
|
-
Returns the standard deviation of
|
|
14
|
+
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
15
|
+
reserves, illustrating market volatility.`,
|
|
15
16
|
args,
|
|
16
17
|
tool: async (client, args, ctx) => {
|
|
17
18
|
const [result, apiCall] = await aaveV3StdRate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aaveV3StdRate.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/aaveV3StdRate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,gCAAgC;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"aaveV3StdRate.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/aaveV3StdRate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,gCAAgC;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE;;;0CAG2B;IACxC,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,aAAa,CAC3C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
package/dist/esm/sdk/aavev3.d.ts
CHANGED
|
@@ -3,19 +3,40 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class AaveV3 extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Interest Rates: now
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Returns the
|
|
9
|
+
* Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
10
|
+
* deposits and loans.
|
|
11
|
+
*
|
|
12
|
+
* **Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
13
|
+
* compounding of the per-second rate stored on-chain. This value is the same value as
|
|
14
|
+
* seen the on [app.aave.com](
|
|
15
|
+
* https://app.aave.com/)
|
|
16
|
+
* but more up-to-date as it is taken directly from the
|
|
17
|
+
* blockchain every time this endpoint is called.
|
|
18
|
+
*
|
|
19
|
+
* **Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
20
|
+
* compounding).
|
|
21
|
+
*
|
|
22
|
+
* For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
10
23
|
*/
|
|
11
|
-
|
|
24
|
+
rate(request: operations.AaveRateRequest, options?: RequestOptions): Promise<components.AaveRateResponse>;
|
|
12
25
|
/**
|
|
13
|
-
*
|
|
26
|
+
* Interest Rates: time average
|
|
14
27
|
*
|
|
15
28
|
* @remarks
|
|
16
|
-
*
|
|
29
|
+
* Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
17
30
|
*/
|
|
18
31
|
avgRate(request: operations.AaveAvgRateRequest, options?: RequestOptions): Promise<components.AaveAvgRateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Interest Rates: standard deviation
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
37
|
+
* reserves, illustrating market volatility.
|
|
38
|
+
*/
|
|
39
|
+
stdRate(request: operations.AaveStdRateRequest, options?: RequestOptions): Promise<components.AaveSTDRateResponse>;
|
|
19
40
|
/**
|
|
20
41
|
* Reserve overview
|
|
21
42
|
*
|
|
@@ -28,26 +49,6 @@ export declare class AaveV3 extends ClientSDK {
|
|
|
28
49
|
* See below for more info:
|
|
29
50
|
*/
|
|
30
51
|
reserveOverview(request: operations.AaveReserveOverviewRequest, options?: RequestOptions): Promise<components.AaveReserveOverviewResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Interest rates
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
36
|
-
* deposits and loans.
|
|
37
|
-
*
|
|
38
|
-
* **Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
39
|
-
* compounding of the per-second rate stored on-chain. This value is the same value as
|
|
40
|
-
* seen the on [app.aave.com](
|
|
41
|
-
* https://app.aave.com/)
|
|
42
|
-
* but more up-to-date as it is taken directly from the
|
|
43
|
-
* blockchain every time this endpoint is called.
|
|
44
|
-
*
|
|
45
|
-
* **Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
46
|
-
* compounding).
|
|
47
|
-
*
|
|
48
|
-
* For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
49
|
-
*/
|
|
50
|
-
rate(request: operations.AaveRateRequest, options?: RequestOptions): Promise<components.AaveRateResponse>;
|
|
51
52
|
/**
|
|
52
53
|
* Token prices
|
|
53
54
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavev3.d.ts","sourceRoot":"","sources":["../../../src/sdk/aavev3.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC
|
|
1
|
+
{"version":3,"file":"aavev3.d.ts","sourceRoot":"","sources":["../../../src/sdk/aavev3.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;;;;;;;;;;;;;;OAkBG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQvC;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;OAMG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc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CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;;;OAYG;IACG,KAAK,CACT,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;;;;OAaG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;CAOlC"}
|
package/dist/esm/sdk/aavev3.js
CHANGED
|
@@ -18,23 +18,46 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
18
18
|
import { unwrapAsync } from "../types/fp.js";
|
|
19
19
|
export class AaveV3 extends ClientSDK {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Interest Rates: now
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* Returns the
|
|
24
|
+
* Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
25
|
+
* deposits and loans.
|
|
26
|
+
*
|
|
27
|
+
* **Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
28
|
+
* compounding of the per-second rate stored on-chain. This value is the same value as
|
|
29
|
+
* seen the on [app.aave.com](
|
|
30
|
+
* https://app.aave.com/)
|
|
31
|
+
* but more up-to-date as it is taken directly from the
|
|
32
|
+
* blockchain every time this endpoint is called.
|
|
33
|
+
*
|
|
34
|
+
* **Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
35
|
+
* compounding).
|
|
36
|
+
*
|
|
37
|
+
* For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
25
38
|
*/
|
|
26
|
-
async
|
|
27
|
-
return unwrapAsync(
|
|
39
|
+
async rate(request, options) {
|
|
40
|
+
return unwrapAsync(aaveV3Rate(this, request, options));
|
|
28
41
|
}
|
|
29
42
|
/**
|
|
30
|
-
*
|
|
43
|
+
* Interest Rates: time average
|
|
31
44
|
*
|
|
32
45
|
* @remarks
|
|
33
|
-
*
|
|
46
|
+
* Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
34
47
|
*/
|
|
35
48
|
async avgRate(request, options) {
|
|
36
49
|
return unwrapAsync(aaveV3AvgRate(this, request, options));
|
|
37
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Interest Rates: standard deviation
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
56
|
+
* reserves, illustrating market volatility.
|
|
57
|
+
*/
|
|
58
|
+
async stdRate(request, options) {
|
|
59
|
+
return unwrapAsync(aaveV3StdRate(this, request, options));
|
|
60
|
+
}
|
|
38
61
|
/**
|
|
39
62
|
* Reserve overview
|
|
40
63
|
*
|
|
@@ -49,28 +72,6 @@ export class AaveV3 extends ClientSDK {
|
|
|
49
72
|
async reserveOverview(request, options) {
|
|
50
73
|
return unwrapAsync(aaveV3ReserveOverview(this, request, options));
|
|
51
74
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Interest rates
|
|
54
|
-
*
|
|
55
|
-
* @remarks
|
|
56
|
-
* Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
57
|
-
* deposits and loans.
|
|
58
|
-
*
|
|
59
|
-
* **Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
60
|
-
* compounding of the per-second rate stored on-chain. This value is the same value as
|
|
61
|
-
* seen the on [app.aave.com](
|
|
62
|
-
* https://app.aave.com/)
|
|
63
|
-
* but more up-to-date as it is taken directly from the
|
|
64
|
-
* blockchain every time this endpoint is called.
|
|
65
|
-
*
|
|
66
|
-
* **Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
67
|
-
* compounding).
|
|
68
|
-
*
|
|
69
|
-
* For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
70
|
-
*/
|
|
71
|
-
async rate(request, options) {
|
|
72
|
-
return unwrapAsync(aaveV3Rate(this, request, options));
|
|
73
|
-
}
|
|
74
75
|
/**
|
|
75
76
|
* Token prices
|
|
76
77
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavev3.js","sourceRoot":"","sources":["../../../src/sdk/aavev3.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC
|
|
1
|
+
{"version":3,"file":"aavev3.js","sourceRoot":"","sources":["../../../src/sdk/aavev3.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,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EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,KAAK,CACT,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
9
|
-
* [avgRate](#avgrate) -
|
|
8
|
+
* [rate](#rate) - Interest Rates: now
|
|
9
|
+
* [avgRate](#avgrate) - Interest Rates: time average
|
|
10
|
+
* [stdRate](#stdrate) - Interest Rates: standard deviation
|
|
10
11
|
* [reserveOverview](#reserveoverview) - Reserve overview
|
|
11
|
-
* [rate](#rate) - Interest rates
|
|
12
12
|
* [tokenPrice](#tokenprice) - Token prices
|
|
13
13
|
* [liquidityChange](#liquiditychange) - Liquidity index
|
|
14
14
|
* [userPositionSummary](#userpositionsummary) - Positions - total
|
|
@@ -19,9 +19,22 @@
|
|
|
19
19
|
* [repay](#repay) - Repay loans
|
|
20
20
|
* [withdraw](#withdraw) - Unstake
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## rate
|
|
23
|
+
|
|
24
|
+
Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
25
|
+
deposits and loans.
|
|
26
|
+
|
|
27
|
+
**Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
28
|
+
compounding of the per-second rate stored on-chain. This value is the same value as
|
|
29
|
+
seen the on [app.aave.com](
|
|
30
|
+
https://app.aave.com/)
|
|
31
|
+
but more up-to-date as it is taken directly from the
|
|
32
|
+
blockchain every time this endpoint is called.
|
|
33
|
+
|
|
34
|
+
**Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
35
|
+
compounding).
|
|
23
36
|
|
|
24
|
-
|
|
37
|
+
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
25
38
|
|
|
26
39
|
### Example Usage
|
|
27
40
|
|
|
@@ -33,10 +46,9 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
33
46
|
});
|
|
34
47
|
|
|
35
48
|
async function run() {
|
|
36
|
-
const result = await compassApiSDK.aaveV3.
|
|
37
|
-
chain: "
|
|
49
|
+
const result = await compassApiSDK.aaveV3.rate({
|
|
50
|
+
chain: "arbitrum:mainnet",
|
|
38
51
|
token: "USDC",
|
|
39
|
-
days: 7,
|
|
40
52
|
});
|
|
41
53
|
|
|
42
54
|
// Handle the result
|
|
@@ -52,7 +64,7 @@ The standalone function version of this method:
|
|
|
52
64
|
|
|
53
65
|
```typescript
|
|
54
66
|
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
55
|
-
import {
|
|
67
|
+
import { aaveV3Rate } from "@compass-labs/api-sdk/funcs/aaveV3Rate.js";
|
|
56
68
|
|
|
57
69
|
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
58
70
|
// You can create one instance of it to use across an application.
|
|
@@ -61,10 +73,9 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
61
73
|
});
|
|
62
74
|
|
|
63
75
|
async function run() {
|
|
64
|
-
const res = await
|
|
65
|
-
chain: "
|
|
76
|
+
const res = await aaveV3Rate(compassApiSDK, {
|
|
77
|
+
chain: "arbitrum:mainnet",
|
|
66
78
|
token: "USDC",
|
|
67
|
-
days: 7,
|
|
68
79
|
});
|
|
69
80
|
|
|
70
81
|
if (!res.ok) {
|
|
@@ -84,14 +95,14 @@ run();
|
|
|
84
95
|
|
|
85
96
|
| Parameter | Type | Required | Description |
|
|
86
97
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
87
|
-
| `request` | [operations.
|
|
98
|
+
| `request` | [operations.AaveRateRequest](../../models/operations/aaveraterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
88
99
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
89
100
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
90
101
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
91
102
|
|
|
92
103
|
### Response
|
|
93
104
|
|
|
94
|
-
**Promise\<[components.
|
|
105
|
+
**Promise\<[components.AaveRateResponse](../../models/components/aaverateresponse.md)\>**
|
|
95
106
|
|
|
96
107
|
### Errors
|
|
97
108
|
|
|
@@ -102,7 +113,7 @@ run();
|
|
|
102
113
|
|
|
103
114
|
## avgRate
|
|
104
115
|
|
|
105
|
-
|
|
116
|
+
Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
106
117
|
|
|
107
118
|
### Example Usage
|
|
108
119
|
|
|
@@ -181,14 +192,10 @@ run();
|
|
|
181
192
|
| errors.HTTPValidationError | 422 | application/json |
|
|
182
193
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
183
194
|
|
|
184
|
-
##
|
|
185
|
-
|
|
186
|
-
Returns key metrics for Aave Reserves:
|
|
187
|
-
- Total Supplied (TVL) in USD
|
|
188
|
-
- Total Borrowed in USD
|
|
189
|
-
- Utilization Ratio
|
|
195
|
+
## stdRate
|
|
190
196
|
|
|
191
|
-
|
|
197
|
+
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
198
|
+
reserves, illustrating market volatility.
|
|
192
199
|
|
|
193
200
|
### Example Usage
|
|
194
201
|
|
|
@@ -200,9 +207,10 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
200
207
|
});
|
|
201
208
|
|
|
202
209
|
async function run() {
|
|
203
|
-
const result = await compassApiSDK.aaveV3.
|
|
204
|
-
chain: "
|
|
210
|
+
const result = await compassApiSDK.aaveV3.stdRate({
|
|
211
|
+
chain: "ethereum:mainnet",
|
|
205
212
|
token: "USDC",
|
|
213
|
+
days: 7,
|
|
206
214
|
});
|
|
207
215
|
|
|
208
216
|
// Handle the result
|
|
@@ -218,7 +226,7 @@ The standalone function version of this method:
|
|
|
218
226
|
|
|
219
227
|
```typescript
|
|
220
228
|
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
221
|
-
import {
|
|
229
|
+
import { aaveV3StdRate } from "@compass-labs/api-sdk/funcs/aaveV3StdRate.js";
|
|
222
230
|
|
|
223
231
|
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
224
232
|
// You can create one instance of it to use across an application.
|
|
@@ -227,9 +235,10 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
227
235
|
});
|
|
228
236
|
|
|
229
237
|
async function run() {
|
|
230
|
-
const res = await
|
|
231
|
-
chain: "
|
|
238
|
+
const res = await aaveV3StdRate(compassApiSDK, {
|
|
239
|
+
chain: "ethereum:mainnet",
|
|
232
240
|
token: "USDC",
|
|
241
|
+
days: 7,
|
|
233
242
|
});
|
|
234
243
|
|
|
235
244
|
if (!res.ok) {
|
|
@@ -249,14 +258,14 @@ run();
|
|
|
249
258
|
|
|
250
259
|
| Parameter | Type | Required | Description |
|
|
251
260
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
252
|
-
| `request` | [operations.
|
|
261
|
+
| `request` | [operations.AaveStdRateRequest](../../models/operations/aavestdraterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
253
262
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
254
263
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
255
264
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
256
265
|
|
|
257
266
|
### Response
|
|
258
267
|
|
|
259
|
-
**Promise\<[components.
|
|
268
|
+
**Promise\<[components.AaveSTDRateResponse](../../models/components/aavestdrateresponse.md)\>**
|
|
260
269
|
|
|
261
270
|
### Errors
|
|
262
271
|
|
|
@@ -265,22 +274,14 @@ run();
|
|
|
265
274
|
| errors.HTTPValidationError | 422 | application/json |
|
|
266
275
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
267
276
|
|
|
268
|
-
##
|
|
269
|
-
|
|
270
|
-
Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
271
|
-
deposits and loans.
|
|
272
|
-
|
|
273
|
-
**Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
274
|
-
compounding of the per-second rate stored on-chain. This value is the same value as
|
|
275
|
-
seen the on [app.aave.com](
|
|
276
|
-
https://app.aave.com/)
|
|
277
|
-
but more up-to-date as it is taken directly from the
|
|
278
|
-
blockchain every time this endpoint is called.
|
|
277
|
+
## reserveOverview
|
|
279
278
|
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
Returns key metrics for Aave Reserves:
|
|
280
|
+
- Total Supplied (TVL) in USD
|
|
281
|
+
- Total Borrowed in USD
|
|
282
|
+
- Utilization Ratio
|
|
282
283
|
|
|
283
|
-
|
|
284
|
+
See below for more info:
|
|
284
285
|
|
|
285
286
|
### Example Usage
|
|
286
287
|
|
|
@@ -292,7 +293,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
292
293
|
});
|
|
293
294
|
|
|
294
295
|
async function run() {
|
|
295
|
-
const result = await compassApiSDK.aaveV3.
|
|
296
|
+
const result = await compassApiSDK.aaveV3.reserveOverview({
|
|
296
297
|
chain: "arbitrum:mainnet",
|
|
297
298
|
token: "USDC",
|
|
298
299
|
});
|
|
@@ -310,7 +311,7 @@ The standalone function version of this method:
|
|
|
310
311
|
|
|
311
312
|
```typescript
|
|
312
313
|
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
313
|
-
import {
|
|
314
|
+
import { aaveV3ReserveOverview } from "@compass-labs/api-sdk/funcs/aaveV3ReserveOverview.js";
|
|
314
315
|
|
|
315
316
|
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
316
317
|
// You can create one instance of it to use across an application.
|
|
@@ -319,7 +320,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
319
320
|
});
|
|
320
321
|
|
|
321
322
|
async function run() {
|
|
322
|
-
const res = await
|
|
323
|
+
const res = await aaveV3ReserveOverview(compassApiSDK, {
|
|
323
324
|
chain: "arbitrum:mainnet",
|
|
324
325
|
token: "USDC",
|
|
325
326
|
});
|
|
@@ -341,14 +342,14 @@ run();
|
|
|
341
342
|
|
|
342
343
|
| Parameter | Type | Required | Description |
|
|
343
344
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
344
|
-
| `request` | [operations.
|
|
345
|
+
| `request` | [operations.AaveReserveOverviewRequest](../../models/operations/aavereserveoverviewrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
345
346
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
346
347
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
347
348
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
348
349
|
|
|
349
350
|
### Response
|
|
350
351
|
|
|
351
|
-
**Promise\<[components.
|
|
352
|
+
**Promise\<[components.AaveReserveOverviewResponse](../../models/components/aavereserveoverviewresponse.md)\>**
|
|
352
353
|
|
|
353
354
|
### Errors
|
|
354
355
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Interest Rates: time average
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
33
33
|
*/
|
|
34
34
|
export function aaveV3AvgRate(
|
|
35
35
|
client: CompassApiSDKCore,
|
package/src/funcs/aaveV3Rate.ts
CHANGED
|
@@ -26,10 +26,11 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Interest Rates: standard deviation
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Returns the standard deviation of
|
|
32
|
+
* Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
33
|
+
* reserves, illustrating market volatility.
|
|
33
34
|
*/
|
|
34
35
|
export function aaveV3StdRate(
|
|
35
36
|
client: CompassApiSDKCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.1.
|
|
60
|
+
sdkVersion: "0.1.3",
|
|
61
61
|
genVersion: "2.605.6",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.3 2.605.6 0.0.1 @compass-labs/api-sdk",
|
|
64
64
|
} as const;
|