Skip to content

Commit

Permalink
Merge pull request #43 from gateio/gateio-patch-1
Browse files Browse the repository at this point in the history
Create nuget-publish.yml
  • Loading branch information
gateio authored Feb 7, 2025
2 parents 516ba84 + 7c91660 commit da88dee
Show file tree
Hide file tree
Showing 16 changed files with 443 additions and 112 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: .NET Build, Test, and Publish Nuget Package

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: pack nuget packages
run: dotnet pack
- name: upload nuget package
run: dotnet nuget push src/Io.Gate.GateApi/bin/Debug/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ APIv4 provides spot, margin and futures trading operations. There are public API

This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 4.90.0
- SDK version: 4.90.0
- API version: 4.90.1
- SDK version: 6.90.1
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)

Expand Down Expand Up @@ -435,6 +435,7 @@ Class | Method | HTTP request | Description
- [Model.CurrencyChain](docs/CurrencyChain.md)
- [Model.CurrencyPair](docs/CurrencyPair.md)
- [Model.CurrencyQuota](docs/CurrencyQuota.md)
- [Model.DebitFee](docs/DebitFee.md)
- [Model.DeliveryCandlestick](docs/DeliveryCandlestick.md)
- [Model.DeliveryContract](docs/DeliveryContract.md)
- [Model.DeliverySettlement](docs/DeliverySettlement.md)
Expand Down Expand Up @@ -472,9 +473,6 @@ Class | Method | HTTP request | Description
- [Model.FuturesTicker](docs/FuturesTicker.md)
- [Model.FuturesTrade](docs/FuturesTrade.md)
- [Model.IndexConstituent](docs/IndexConstituent.md)
- [Model.InlineObject](docs/InlineObject.md)
- [Model.InlineResponse200](docs/InlineResponse200.md)
- [Model.InlineResponse2001](docs/InlineResponse2001.md)
- [Model.InsuranceRecord](docs/InsuranceRecord.md)
- [Model.LedgerRecord](docs/LedgerRecord.md)
- [Model.LiquidateOrder](docs/LiquidateOrder.md)
Expand Down Expand Up @@ -580,6 +578,7 @@ Class | Method | HTTP request | Description
- [Model.TradeFee](docs/TradeFee.md)
- [Model.TransactionID](docs/TransactionID.md)
- [Model.Transfer](docs/Transfer.md)
- [Model.TransferOrderStatus](docs/TransferOrderStatus.md)
- [Model.TriggerOrderResponse](docs/TriggerOrderResponse.md)
- [Model.TriggerTime](docs/TriggerTime.md)
- [Model.UidPushOrder](docs/UidPushOrder.md)
Expand Down
14 changes: 7 additions & 7 deletions docs/AccountApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ Name | Type | Description | Notes

<a name="getdebitfee"></a>
# **GetDebitFee**
> InlineResponse2001 GetDebitFee ()
> DebitFee GetDebitFee ()
Query GT deduction configuration.

Expand Down Expand Up @@ -549,7 +549,7 @@ namespace Example
try
{
// Query GT deduction configuration.
InlineResponse2001 result = apiInstance.GetDebitFee();
DebitFee result = apiInstance.GetDebitFee();
Debug.WriteLine(result);
}
catch (GateApiException e)
Expand All @@ -569,7 +569,7 @@ This endpoint does not need any parameter.

### Return type

[**InlineResponse2001**](InlineResponse2001.md)
[**DebitFee**](DebitFee.md)

### Authorization

Expand All @@ -589,7 +589,7 @@ This endpoint does not need any parameter.

<a name="setdebitfee"></a>
# **SetDebitFee**
> void SetDebitFee (InlineObject inlineObject)
> void SetDebitFee (DebitFee debitFee)
Set GT deduction.

Expand All @@ -614,12 +614,12 @@ namespace Example
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");

var apiInstance = new AccountApi(config);
var inlineObject = new InlineObject(); // InlineObject |
var debitFee = new DebitFee(); // DebitFee |
try
{
// Set GT deduction.
apiInstance.SetDebitFee(inlineObject);
apiInstance.SetDebitFee(debitFee);
}
catch (GateApiException e)
{
Expand All @@ -637,7 +637,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**inlineObject** | [**InlineObject**](InlineObject.md)| |
**debitFee** | [**DebitFee**](DebitFee.md)| |

### Return type

Expand Down
12 changes: 12 additions & 0 deletions docs/DebitFee.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Io.Gate.GateApi.Model.DebitFee

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Enabled** | **bool** | Whether GT fee discount is used |

[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)
13 changes: 13 additions & 0 deletions docs/TransferOrderStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# Io.Gate.GateApi.Model.TransferOrderStatus

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TxId** | **string** | Order id | [optional]
**Status** | **string** | Transfer status, PENDING - in process, SUCCESS - successful transfer, FAIL - failed transfer, PARTIAL_SUCCESS - Partially successful (this status will appear when transferring between sub-subs) | [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)
6 changes: 3 additions & 3 deletions docs/UnifiedApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ Name | Type | Description | Notes

<a name="setuserleveragecurrencysetting"></a>
# **SetUserLeverageCurrencySetting**
> void SetUserLeverageCurrencySetting (UnifiedLeverageSetting unifiedLeverageSetting = null)
> void SetUserLeverageCurrencySetting (UnifiedLeverageSetting unifiedLeverageSetting)
Set the loan currency leverage

Expand All @@ -1195,7 +1195,7 @@ namespace Example
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");

var apiInstance = new UnifiedApi(config);
var unifiedLeverageSetting = new UnifiedLeverageSetting(); // UnifiedLeverageSetting | (optional)
var unifiedLeverageSetting = new UnifiedLeverageSetting(); // UnifiedLeverageSetting |
try
{
Expand All @@ -1218,7 +1218,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**unifiedLeverageSetting** | [**UnifiedLeverageSetting**](UnifiedLeverageSetting.md)| | [optional]
**unifiedLeverageSetting** | [**UnifiedLeverageSetting**](UnifiedLeverageSetting.md)| |

### Return type

Expand Down
6 changes: 4 additions & 2 deletions docs/UnifiedLeverageSetting.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

# Io.Gate.GateApi.Model.UnifiedLeverageSetting

Loan currency leverage

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Currency** | **string** | Currency name | [optional]
**Leverage** | **string** | multiple | [optional]
**Currency** | **string** | Currency name |
**Leverage** | **string** | multiple |

[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
Expand Down
6 changes: 3 additions & 3 deletions docs/WalletApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ Name | Type | Description | Notes

<a name="gettransferorderstatus"></a>
# **GetTransferOrderStatus**
> InlineResponse200 GetTransferOrderStatus (string clientOrderId = null, string txId = null)
> TransferOrderStatus GetTransferOrderStatus (string clientOrderId = null, string txId = null)
Transfer status query

Expand Down Expand Up @@ -662,7 +662,7 @@ namespace Example
try
{
// Transfer status query
InlineResponse200 result = apiInstance.GetTransferOrderStatus(clientOrderId, txId);
TransferOrderStatus result = apiInstance.GetTransferOrderStatus(clientOrderId, txId);
Debug.WriteLine(result);
}
catch (GateApiException e)
Expand All @@ -686,7 +686,7 @@ Name | Type | Description | Notes

### Return type

[**InlineResponse200**](InlineResponse200.md)
[**TransferOrderStatus**](TransferOrderStatus.md)

### Authorization

Expand Down
Loading

0 comments on commit da88dee

Please sign in to comment.