Skip to content

Commit

Permalink
product version set to 2.5.19
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikostiha committed Oct 15, 2024
1 parent 53a1f90 commit 6cb1ce0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
47 changes: 28 additions & 19 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,36 @@ This project is fork of [.Net xApi wrapper](http://developers.xstore.pro/api/wra
It is based on xApi version 2.5.0.
In the beginning there were mostly additive changes with some necessary exceptions and now there are many improvements and changes in original code.


## Setup

Add [nuget package](https://www.nuget.org/packages/SyncAPIConnect) to the project.
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SyncAPIConnect" Version="2.5.X" />
</ItemGroup>
</Project>
```

## Usage

```csharp
var client = XApiClient.Create("81.2.190.163", 5112, 5113);
await client.ConnectAsync();
await client.LoginAsync(new Credentials("login", "password"));
var openTrades = await client.GetTradesAsync(true);
```

For usage see [example code](./src/SystemTests/Program.cs ), [official page](http://developers.xstore.pro/) and [api documentation](http://developers.xstore.pro/documentation/)


## Changelog

2.5.19 various refactoring, minor fixes and changes, unit tests
2.5.18 XApiClient as main api providing class
2.5.17 time arguments instead of long, reduced memory footprint (long->int)
2.5.16 async cancelation, time members, various small changes
Expand All @@ -35,25 +63,6 @@ In the beginning there were mostly additive changes with some necessary exceptio
2.5.2 new csproj format, set netstandard2.0
2.5.1 cleaned linked binaries and set nuget dependencies

## Setup

Add [nuget package](https://www.nuget.org/packages/SyncAPIConnect) to the project.
For example like this:
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SyncAPIConnect" Version="2.5.X" />
</ItemGroup>
</Project>
```

## Usage

For usage see [example code](./src/SystemTests/Program.cs ), [official page](http://developers.xstore.pro/) and [official documentation](http://developers.xstore.pro/documentation/)


## License

Expand Down
2 changes: 1 addition & 1 deletion src/SyncAPIConnector/SyncAPIConnect.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageProjectUrl>https://github.com/jirikostiha/xtb-xApi</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<SignAssembly>False</SignAssembly>
<Version>2.5.18</Version>
<Version>2.5.19</Version>
<Authors>Jiri Kostiha</Authors>
<PackageIcon>package_icon.png</PackageIcon>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/SystemTests/Xtb.XApi.SystemTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<AnalysisLevel>latest-recommended</AnalysisLevel>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<Version>2.5.18</Version>
<Version>2.5.19</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 6cb1ce0

Please sign in to comment.