[go: up one dir, main page]

Skip to content

Commit

Permalink
add withdrawl and deposit fee; add spot currency fixed rate
Browse files Browse the repository at this point in the history
  • Loading branch information
revilwang committed Jan 21, 2022
1 parent 3e2f296 commit 3ed816a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 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.23.1
- Package version: 6.23.1
- API version: 4.23.2
- Package version: 6.23.2
- 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
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func NewConfiguration() *Configuration {
cfg := &Configuration{
BasePath: "https://api.gateio.ws/api/v4",
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/6.23.1/go",
UserAgent: "OpenAPI-Generator/6.23.2/go",
Debug: false,
Servers: []ServerConfiguration{
{
Expand Down
1 change: 1 addition & 0 deletions docs/Currency.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**WithdrawDelayed** | **bool** | Whether currency's withdrawal is delayed | [optional]
**DepositDisabled** | **bool** | Whether currency's deposit is disabled | [optional]
**TradeDisabled** | **bool** | Whether currency's trading is disabled | [optional]
**FixedRate** | **string** | Fixed fee rate. Only for fixed rate currencies, not valid for normal currencies | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/LedgerRecord.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**Memo** | **string** | Additional remarks with regards to the withdrawal | [optional]
**Status** | **string** | Record status. - DONE: done - CANCEL: cancelled - REQUEST: requesting - MANUAL: pending manual approval - BCODE: GateCode operation - EXTPEND: pending confirm after sending - FAIL: pending confirm when fail - INVALID: invalid order - VERIFY: verifying - PROCES: processing - PEND: pending | [optional] [readonly]
**Chain** | **string** | Name of the chain used in withdrawals | [optional]
**Fee** | **string** | Fee | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/Trade.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Name | Type | Description | Notes
**CreateTimeMs** | **string** | Trading time, with millisecond precision | [optional]
**CurrencyPair** | **string** | Currency pair | [optional]
**Side** | **string** | Order side | [optional]
**Role** | **string** | Trade role | [optional]
**Role** | **string** | Trade role. No value in public endpoints | [optional]
**Amount** | **string** | Trade amount | [optional]
**Price** | **string** | Order price | [optional]
**OrderId** | **string** | Related order ID. No value in public endpoints | [optional]
**Fee** | **string** | Fee deducted. No value in public endpoints | [optional]
**FeeCurrency** | **string** | Fee currency unit. No value in public endpoints | [optional]
**PointFee** | **string** | Points used to deduct fee | [optional]
**GtFee** | **string** | GT used to deduct fee | [optional]
**PointFee** | **string** | Points used to deduct fee. No value in public endpoints | [optional]
**GtFee** | **string** | GT used to deduct fee. No value in public endpoints | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 2 additions & 0 deletions model_currency.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ type Currency struct {
DepositDisabled bool `json:"deposit_disabled,omitempty"`
// Whether currency's trading is disabled
TradeDisabled bool `json:"trade_disabled,omitempty"`
// Fixed fee rate. Only for fixed rate currencies, not valid for normal currencies
FixedRate string `json:"fixed_rate,omitempty"`
}
2 changes: 2 additions & 0 deletions model_ledger_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ type LedgerRecord struct {
Status string `json:"status,omitempty"`
// Name of the chain used in withdrawals
Chain string `json:"chain,omitempty"`
// Fee
Fee string `json:"fee,omitempty"`
}
6 changes: 3 additions & 3 deletions model_trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Trade struct {
CurrencyPair string `json:"currency_pair,omitempty"`
// Order side
Side string `json:"side,omitempty"`
// Trade role
// Trade role. No value in public endpoints
Role string `json:"role,omitempty"`
// Trade amount
Amount string `json:"amount,omitempty"`
Expand All @@ -32,8 +32,8 @@ type Trade struct {
Fee string `json:"fee,omitempty"`
// Fee currency unit. No value in public endpoints
FeeCurrency string `json:"fee_currency,omitempty"`
// Points used to deduct fee
// Points used to deduct fee. No value in public endpoints
PointFee string `json:"point_fee,omitempty"`
// GT used to deduct fee
// GT used to deduct fee. No value in public endpoints
GtFee string `json:"gt_fee,omitempty"`
}

0 comments on commit 3ed816a

Please sign in to comment.