Closed overstartup closed 11 months ago
@burakoner could you please check this one. Unfortunately, my software doesn't work without this method.
@overstartup this is an issue in OKX.Api\Models\TradingAccount\OkxPositionHistory.cs I clone and fix and use a local build . [JsonProperty("uly")] public string Underlying { get; set; }
[JsonProperty("uly")]
public string Currency { get; set; }
To: [JsonProperty("uly")] public string Underlying { get; set; }
[JsonProperty("ccy")]
public string Currency { get; set; }
It would be good if @burakoner fix and commit
@vhd41 thanks a lot
@burakoner Please solve these small things. That would be really useful.
I've fixed this issue and will release new version today
Version 1.4.0 has been released. Please check these out https://github.com/burakoner/OKX.Api/commit/a2332273d6d885f3b58a532bc5d63793da3634d8 https://www.nuget.org/packages/OKX.Api/
It works, Thanks
It seems there is an error when I want to get positions history.
var history = api.TradingAccount.GetAccountPositionsHistoryAsync(OkxInstrumentType.Swap, order.Symbol , positionId: order.PositionId.ToString(), limit: 10).Result;
it was working correctly in this version:
<PackageReference Include="OKX.Api" Version="1.1.7" />
this is the error: