[go: up one dir, main page]

Skip to content

Commit

Permalink
support total balance API
Browse files Browse the repository at this point in the history
  • Loading branch information
revilwang committed Sep 7, 2021
1 parent fdcf19f commit e0c9e25
Show file tree
Hide file tree
Showing 80 changed files with 1,035 additions and 330 deletions.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ APIv4 provides spot, margin and futures trading operations. There are public API
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 4.21.6
- Package version: 6.21.6
- API version: 4.22.1
- Package version: 6.22.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)

Expand Down Expand Up @@ -164,12 +164,13 @@ Class | Method | HTTP request | Description
*MarginApi* | [**UpdateLoan**](docs/MarginApi.md#updateloan) | **Patch** /margin/loans/{loan_id} | Modify a loan
*MarginApi* | [**ListLoanRepayments**](docs/MarginApi.md#listloanrepayments) | **Get** /margin/loans/{loan_id}/repayment | List loan repayment records
*MarginApi* | [**RepayLoan**](docs/MarginApi.md#repayloan) | **Post** /margin/loans/{loan_id}/repayment | Repay a loan
*MarginApi* | [**ListLoanRecords**](docs/MarginApi.md#listloanrecords) | **Get** /margin/loan_records | List repayment records of specified loan
*MarginApi* | [**ListLoanRecords**](docs/MarginApi.md#listloanrecords) | **Get** /margin/loan_records | List repayment records of a specific loan
*MarginApi* | [**GetLoanRecord**](docs/MarginApi.md#getloanrecord) | **Get** /margin/loan_records/{loan_record_id} | Get one single loan record
*MarginApi* | [**UpdateLoanRecord**](docs/MarginApi.md#updateloanrecord) | **Patch** /margin/loan_records/{loan_record_id} | Modify a loan record
*MarginApi* | [**GetAutoRepayStatus**](docs/MarginApi.md#getautorepaystatus) | **Get** /margin/auto_repay | Retrieve user auto repayment setting
*MarginApi* | [**SetAutoRepay**](docs/MarginApi.md#setautorepay) | **Post** /margin/auto_repay | Update user's auto repayment setting
*MarginApi* | [**GetMarginTransferable**](docs/MarginApi.md#getmargintransferable) | **Get** /margin/transferable | Max transferable amount for specified margin currency
*MarginApi* | [**GetMarginTransferable**](docs/MarginApi.md#getmargintransferable) | **Get** /margin/transferable | Get the max transferable amount for a specific margin currency
*MarginApi* | [**GetMarginBorrowable**](docs/MarginApi.md#getmarginborrowable) | **Get** /margin/borrowable | Get the max borrowable amount for a specific margin currency
*MarginApi* | [**ListCrossMarginCurrencies**](docs/MarginApi.md#listcrossmargincurrencies) | **Get** /margin/cross/currencies | Currencies supported by cross margin.
*MarginApi* | [**GetCrossMarginCurrency**](docs/MarginApi.md#getcrossmargincurrency) | **Get** /margin/cross/currencies/{currency} | Retrieve detail of one single currency supported by cross margin
*MarginApi* | [**GetCrossMarginAccount**](docs/MarginApi.md#getcrossmarginaccount) | **Get** /margin/cross/accounts | Retrieve cross margin account
Expand All @@ -179,11 +180,12 @@ Class | Method | HTTP request | Description
*MarginApi* | [**GetCrossMarginLoan**](docs/MarginApi.md#getcrossmarginloan) | **Get** /margin/cross/loans/{loan_id} | Retrieve single borrow loan detail
*MarginApi* | [**ListCrossMarginRepayments**](docs/MarginApi.md#listcrossmarginrepayments) | **Get** /margin/cross/repayments | Retrieve cross margin repayments
*MarginApi* | [**RepayCrossMarginLoan**](docs/MarginApi.md#repaycrossmarginloan) | **Post** /margin/cross/repayments | Repay cross margin loan
*MarginApi* | [**GetCrossMarginTransferable**](docs/MarginApi.md#getcrossmargintransferable) | **Get** /margin/cross/transferable | Max transferable amount for specified cross margin currency
*SpotApi* | [**ListCurrencies**](docs/SpotApi.md#listcurrencies) | **Get** /spot/currencies | List all currencies' detail
*SpotApi* | [**GetCurrency**](docs/SpotApi.md#getcurrency) | **Get** /spot/currencies/{currency} | Get detail of one particular currency
*MarginApi* | [**GetCrossMarginTransferable**](docs/MarginApi.md#getcrossmargintransferable) | **Get** /margin/cross/transferable | Get the max transferable amount for a specific cross margin currency
*MarginApi* | [**GetCrossMarginBorrowable**](docs/MarginApi.md#getcrossmarginborrowable) | **Get** /margin/cross/borrowable | Get the max borrowable amount for a specific cross margin currency
*SpotApi* | [**ListCurrencies**](docs/SpotApi.md#listcurrencies) | **Get** /spot/currencies | List all currencies' details
*SpotApi* | [**GetCurrency**](docs/SpotApi.md#getcurrency) | **Get** /spot/currencies/{currency} | Get details of a specific currency
*SpotApi* | [**ListCurrencyPairs**](docs/SpotApi.md#listcurrencypairs) | **Get** /spot/currency_pairs | List all currency pairs supported
*SpotApi* | [**GetCurrencyPair**](docs/SpotApi.md#getcurrencypair) | **Get** /spot/currency_pairs/{currency_pair} | Get detail of one single order
*SpotApi* | [**GetCurrencyPair**](docs/SpotApi.md#getcurrencypair) | **Get** /spot/currency_pairs/{currency_pair} | Get details of a specifc order
*SpotApi* | [**ListTickers**](docs/SpotApi.md#listtickers) | **Get** /spot/tickers | Retrieve ticker information
*SpotApi* | [**ListOrderBook**](docs/SpotApi.md#listorderbook) | **Get** /spot/order_book | Retrieve order book
*SpotApi* | [**ListTrades**](docs/SpotApi.md#listtrades) | **Get** /spot/trades | Retrieve market trades
Expand All @@ -208,17 +210,19 @@ Class | Method | HTTP request | Description
*WalletApi* | [**ListWithdrawals**](docs/WalletApi.md#listwithdrawals) | **Get** /wallet/withdrawals | Retrieve withdrawal records
*WalletApi* | [**ListDeposits**](docs/WalletApi.md#listdeposits) | **Get** /wallet/deposits | Retrieve deposit records
*WalletApi* | [**Transfer**](docs/WalletApi.md#transfer) | **Post** /wallet/transfers | Transfer between trading accounts
*WalletApi* | [**ListSubAccountTransfers**](docs/WalletApi.md#listsubaccounttransfers) | **Get** /wallet/sub_account_transfers | Transfer records between main and sub accounts
*WalletApi* | [**ListSubAccountTransfers**](docs/WalletApi.md#listsubaccounttransfers) | **Get** /wallet/sub_account_transfers | Retrieve transfer records between main and sub accounts
*WalletApi* | [**TransferWithSubAccount**](docs/WalletApi.md#transferwithsubaccount) | **Post** /wallet/sub_account_transfers | Transfer between main and sub accounts
*WalletApi* | [**ListWithdrawStatus**](docs/WalletApi.md#listwithdrawstatus) | **Get** /wallet/withdraw_status | Retrieve withdrawal status
*WalletApi* | [**ListSubAccountBalances**](docs/WalletApi.md#listsubaccountbalances) | **Get** /wallet/sub_account_balances | Retrieve sub account balances
*WalletApi* | [**GetTradeFee**](docs/WalletApi.md#gettradefee) | **Get** /wallet/fee | Retrieve personal trading fee
*WalletApi* | [**GetTotalBalance**](docs/WalletApi.md#gettotalbalance) | **Get** /wallet/total_balance | Retrieve user's total balances
*WithdrawalApi* | [**Withdraw**](docs/WithdrawalApi.md#withdraw) | **Post** /withdrawals | Withdraw
*WithdrawalApi* | [**CancelWithdrawal**](docs/WithdrawalApi.md#cancelwithdrawal) | **Delete** /withdrawals/{withdrawal_id} | Cancel withdrawal with specified ID


## Documentation For Models

- [AccountBalance](docs/AccountBalance.md)
- [AutoRepaySetting](docs/AutoRepaySetting.md)
- [BatchOrder](docs/BatchOrder.md)
- [CancelOrder](docs/CancelOrder.md)
Expand All @@ -228,6 +232,7 @@ Class | Method | HTTP request | Description
- [CrossMarginAccount](docs/CrossMarginAccount.md)
- [CrossMarginAccountBook](docs/CrossMarginAccountBook.md)
- [CrossMarginBalance](docs/CrossMarginBalance.md)
- [CrossMarginBorrowable](docs/CrossMarginBorrowable.md)
- [CrossMarginCurrency](docs/CrossMarginCurrency.md)
- [CrossMarginLoan](docs/CrossMarginLoan.md)
- [CrossMarginRepayRequest](docs/CrossMarginRepayRequest.md)
Expand Down Expand Up @@ -261,6 +266,7 @@ Class | Method | HTTP request | Description
- [MarginAccount](docs/MarginAccount.md)
- [MarginAccountBook](docs/MarginAccountBook.md)
- [MarginAccountCurrency](docs/MarginAccountCurrency.md)
- [MarginBorrowable](docs/MarginBorrowable.md)
- [MarginCurrencyPair](docs/MarginCurrencyPair.md)
- [MarginTransferable](docs/MarginTransferable.md)
- [MultiChainAddressItem](docs/MultiChainAddressItem.md)
Expand All @@ -280,6 +286,7 @@ Class | Method | HTTP request | Description
- [SubAccountBalance](docs/SubAccountBalance.md)
- [SubAccountTransfer](docs/SubAccountTransfer.md)
- [Ticker](docs/Ticker.md)
- [TotalBalance](docs/TotalBalance.md)
- [Trade](docs/Trade.md)
- [TradeFee](docs/TradeFee.md)
- [Transfer](docs/Transfer.md)
Expand Down

0 comments on commit e0c9e25

Please sign in to comment.