Skip to content

Commit

Permalink
release 5.45.0
Browse files Browse the repository at this point in the history
  • Loading branch information
revilwang committed May 5, 2023
1 parent bcae564 commit 3b77f39
Show file tree
Hide file tree
Showing 93 changed files with 4,008 additions and 2,046 deletions.
75 changes: 55 additions & 20 deletions README.md

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions api/accountApi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* Gate API v4
* 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.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

/* tslint:disable:no-unused-locals */
import { AccountDetail } from '../model/accountDetail';
import { ObjectSerializer } from '../model/models';
import { ApiClient } from './apiClient';
import { AxiosRequestConfig, AxiosResponse } from 'axios';

// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================

export class AccountApi {
protected client: ApiClient;

constructor(client?: ApiClient) {
if (client) {
this.client = client;
} else {
this.client = new ApiClient();
}
}

/**
*
* @summary Get account detail
*/
public async getAccountDetail(): Promise<{ response: AxiosResponse; body: AccountDetail }> {
const localVarPath = this.client.basePath + '/account/detail';
const localVarQueryParameters: any = {};
const localVarHeaderParams: any = (<any>Object).assign({}, this.client.defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}

const config: AxiosRequestConfig = {
method: 'GET',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
};

const authSettings = ['apiv4'];
return this.client.request<AccountDetail>(config, 'AccountDetail', authSettings);
}
}
9 changes: 9 additions & 0 deletions api/apis.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
export * from './apiClient';
export * from './accountApi';
import { AccountApi } from './accountApi';
export * from './deliveryApi';
import { DeliveryApi } from './deliveryApi';
export * from './earnUniApi';
import { EarnUniApi } from './earnUniApi';
export * from './flashSwapApi';
import { FlashSwapApi } from './flashSwapApi';
export * from './futuresApi';
import { FuturesApi } from './futuresApi';
export * from './marginApi';
import { MarginApi } from './marginApi';
export * from './marginUniApi';
import { MarginUniApi } from './marginUniApi';
export * from './optionsApi';
import { OptionsApi } from './optionsApi';
export * from './rebateApi';
Expand All @@ -21,10 +27,13 @@ export * from './withdrawalApi';
import { WithdrawalApi } from './withdrawalApi';

export const APIS = [
AccountApi,
DeliveryApi,
EarnUniApi,
FlashSwapApi,
FuturesApi,
MarginApi,
MarginUniApi,
OptionsApi,
RebateApi,
SpotApi,
Expand Down
Loading

0 comments on commit 3b77f39

Please sign in to comment.