|
12 | 12 | /* tslint:disable:no-unused-locals */
|
13 | 13 | import { CreateUniLend } from '../model/createUniLend';
|
14 | 14 | import { InlineResponse200 } from '../model/inlineResponse200';
|
| 15 | +import { InlineResponse2001 } from '../model/inlineResponse2001'; |
15 | 16 | import { PatchUniLend } from '../model/patchUniLend';
|
16 | 17 | import { UniCurrency } from '../model/uniCurrency';
|
17 | 18 | import { UniCurrencyInterest } from '../model/uniCurrencyInterest';
|
@@ -436,7 +437,7 @@ export class EarnUniApi {
|
436 | 437 | }
|
437 | 438 |
|
438 | 439 | /**
|
439 |
| - * Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-05-23 13:34+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <[email protected]> Plural-Forms: nplurals=2; plural=(n != 1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0 |
| 440 | + * Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-06-04 01:36+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <[email protected]> Plural-Forms: nplurals=2; plural=(n != 1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0 |
440 | 441 | * @summary UniLoan currency annualized trend chart
|
441 | 442 | * @param from Start timestamp, unit s, maximum span of 30 days
|
442 | 443 | * @param to End timestamp, unit s, maximum span of 30 days
|
@@ -489,4 +490,31 @@ export class EarnUniApi {
|
489 | 490 | const authSettings = ['apiv4'];
|
490 | 491 | return this.client.request<Array<InlineResponse200>>(config, 'Array<InlineResponse200>', authSettings);
|
491 | 492 | }
|
| 493 | + |
| 494 | + /** |
| 495 | + * Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-06-04 01:36+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <[email protected]> Plural-Forms: nplurals=2; plural=(n != 1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0 |
| 496 | + * @summary Currency estimate annualized interest rate |
| 497 | + */ |
| 498 | + public async listUniRate(): Promise<{ response: AxiosResponse; body: Array<InlineResponse2001> }> { |
| 499 | + const localVarPath = this.client.basePath + '/earn/uni/rate'; |
| 500 | + let localVarQueryParameters: any = {}; |
| 501 | + let localVarHeaderParams: any = (<any>Object).assign({}, this.client.defaultHeaders); |
| 502 | + const produces = ['application/json']; |
| 503 | + // give precedence to 'application/json' |
| 504 | + if (produces.indexOf('application/json') >= 0) { |
| 505 | + localVarHeaderParams.Accept = 'application/json'; |
| 506 | + } else { |
| 507 | + localVarHeaderParams.Accept = produces.join(','); |
| 508 | + } |
| 509 | + |
| 510 | + const config: AxiosRequestConfig = { |
| 511 | + method: 'GET', |
| 512 | + params: localVarQueryParameters, |
| 513 | + headers: localVarHeaderParams, |
| 514 | + url: localVarPath, |
| 515 | + }; |
| 516 | + |
| 517 | + const authSettings = ['apiv4']; |
| 518 | + return this.client.request<Array<InlineResponse2001>>(config, 'Array<InlineResponse2001>', authSettings); |
| 519 | + } |
492 | 520 | }
|
0 commit comments