-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
4,008 additions
and
2,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.