Skip to content

Commit

Permalink
5.4.1219
Browse files Browse the repository at this point in the history
  • Loading branch information
burakoner committed Dec 19, 2024
1 parent ac419f4 commit 597e35f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Change Log & Release Notes

* Version 5.4.1219 - 25 Oct 2024
* Fixed issue [#73](https://github.com/burakoner/OKX.Api/issues/73)

* Version 5.4.1217 - 17 Dec 2024
* Fixed issue [#72](https://github.com/burakoner/OKX.Api/issues/72)
* Synced models with the latest API documentation (2024-12-16).
Expand Down
2 changes: 1 addition & 1 deletion OKX.Api.Examples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static async Task Main(string[] args)
var account_15 = await api.Account.GetMaximumAvailableAmountAsync("BTC-USDT", OkxTradeMode.Isolated);
var account_16 = await api.Account.SetMarginAmountAsync("BTC-USDT", OkxTradePositionSide.Long, OkxAccountMarginAddReduce.Add, 100.0m);
var account_17 = await api.Account.GetLeverageEstimatedInformationAsync(OkxInstrumentType.Futures, OkxAccountMarginMode.Cross, 10);
var account_18 = await api.Account.GetMaximumLoanAmountAsync("BTC-USDT", OkxAccountMarginMode.Cross);
var account_18 = await api.Account.GetMaximumLoanAmountAsync(OkxAccountMarginMode.Cross, "BTC-USDT");
var account_19 = await api.Account.GetFeeRatesAsync(OkxInstrumentType.Spot, OkxInstrumentRuleType.Normal);
var account_20 = await api.Account.GetFeeRatesAsync(OkxInstrumentType.Futures, OkxInstrumentRuleType.Normal);
var account_21 = await api.Account.GetInterestAccruedAsync();
Expand Down
3 changes: 2 additions & 1 deletion OKX.Api/Authentication/OkxAuthenticationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public override void AuthenticateRestApi(RestApiClient apiClient, Uri uri, HttpM
uri = uri.SetParameters(query, serialization);

// Signature
var time = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.sssZ");
// var time = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.sssZ");
var time = GetTimestamp(apiClient).ToString("yyyy-MM-ddTHH:mm:ss.sssZ");
var signtext = time + method.Method.ToUpper() + uri.PathAndQuery.Trim('?') + bodyContent;
var signature = Base64Encode(encryptor.ComputeHash(Encoding.UTF8.GetBytes(signtext)));

Expand Down
8 changes: 4 additions & 4 deletions OKX.Api/OKX.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<PropertyGroup>
<PackageId>OKX.Api</PackageId>
<Authors>Burak Öner</Authors>
<Version>5.4.1217</Version>
<FileVersion>5.4.1217</FileVersion>
<PackageVersion>5.4.1217</PackageVersion>
<AssemblyVersion>5.4.1217</AssemblyVersion>
<Version>5.4.1219</Version>
<FileVersion>5.4.1219</FileVersion>
<PackageVersion>5.4.1219</PackageVersion>
<AssemblyVersion>5.4.1219</AssemblyVersion>
<Description>OKX V5 Api Wrapper. Up-to-date, most-complete, well-organized, well-documented, easy-to-use, multi-task and multi-thread compatible OKX Cryptocurrency Exchange Rest and Websocket Api Wrapper</Description>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>OKX;OKEX;Binance;BNB;BTC;Api;Client;Rest;Web;Websocket;Socket;Wrapper;Crypto;Currency;Cryptocurrency;Exchange;Trade;Trading;Bitcoin;Spot;Margin;Futures;Derivates;Stock;Options;Swap;</PackageTags>
Expand Down

0 comments on commit 597e35f

Please sign in to comment.