Skip to content

Commit 3b77f39

Browse files
committed
release 5.45.0
1 parent bcae564 commit 3b77f39

File tree

93 files changed

+4008
-2046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+4008
-2046
lines changed

README.md

+55-20
Large diffs are not rendered by default.

api/accountApi.ts

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/**
2+
* Gate API v4
3+
* Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user\'s behalf.
4+
*
5+
* Contact: [email protected]
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
/* tslint:disable:no-unused-locals */
13+
import { AccountDetail } from '../model/accountDetail';
14+
import { ObjectSerializer } from '../model/models';
15+
import { ApiClient } from './apiClient';
16+
import { AxiosRequestConfig, AxiosResponse } from 'axios';
17+
18+
// ===============================================
19+
// This file is autogenerated - Please do not edit
20+
// ===============================================
21+
22+
export class AccountApi {
23+
protected client: ApiClient;
24+
25+
constructor(client?: ApiClient) {
26+
if (client) {
27+
this.client = client;
28+
} else {
29+
this.client = new ApiClient();
30+
}
31+
}
32+
33+
/**
34+
*
35+
* @summary Get account detail
36+
*/
37+
public async getAccountDetail(): Promise<{ response: AxiosResponse; body: AccountDetail }> {
38+
const localVarPath = this.client.basePath + '/account/detail';
39+
const localVarQueryParameters: any = {};
40+
const localVarHeaderParams: any = (<any>Object).assign({}, this.client.defaultHeaders);
41+
const produces = ['application/json'];
42+
// give precedence to 'application/json'
43+
if (produces.indexOf('application/json') >= 0) {
44+
localVarHeaderParams.Accept = 'application/json';
45+
} else {
46+
localVarHeaderParams.Accept = produces.join(',');
47+
}
48+
49+
const config: AxiosRequestConfig = {
50+
method: 'GET',
51+
params: localVarQueryParameters,
52+
headers: localVarHeaderParams,
53+
url: localVarPath,
54+
};
55+
56+
const authSettings = ['apiv4'];
57+
return this.client.request<AccountDetail>(config, 'AccountDetail', authSettings);
58+
}
59+
}

api/apis.ts

+9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
export * from './apiClient';
2+
export * from './accountApi';
3+
import { AccountApi } from './accountApi';
24
export * from './deliveryApi';
35
import { DeliveryApi } from './deliveryApi';
6+
export * from './earnUniApi';
7+
import { EarnUniApi } from './earnUniApi';
48
export * from './flashSwapApi';
59
import { FlashSwapApi } from './flashSwapApi';
610
export * from './futuresApi';
711
import { FuturesApi } from './futuresApi';
812
export * from './marginApi';
913
import { MarginApi } from './marginApi';
14+
export * from './marginUniApi';
15+
import { MarginUniApi } from './marginUniApi';
1016
export * from './optionsApi';
1117
import { OptionsApi } from './optionsApi';
1218
export * from './rebateApi';
@@ -21,10 +27,13 @@ export * from './withdrawalApi';
2127
import { WithdrawalApi } from './withdrawalApi';
2228

2329
export const APIS = [
30+
AccountApi,
2431
DeliveryApi,
32+
EarnUniApi,
2533
FlashSwapApi,
2634
FuturesApi,
2735
MarginApi,
36+
MarginUniApi,
2837
OptionsApi,
2938
RebateApi,
3039
SpotApi,

0 commit comments

Comments
 (0)