Skip to content

jirikostiha/xtb-xApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyncAPIConnect

SyncAPIConnect - Xtb xApi client

GitHub repo size GitHub code size Nuget
Build Code Lint

This project is fork of .Net xApi wrapper with some improvements to make life easier. 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.

Changelog

2.5.15 async streaming subscriptions, async IStreamingListener, various simplifications
2.5.14 replaced Newtonsoft.Json by System.Text.Json (pkamphuis)
2.5.13 support custom handling of exceptions in streaming connector, enriched exceptions
2.5.12 more interfaces of records, names of new members unification, various small changes
2.5.11 fixed performance warnings
2.5.10 cfd stock indication, various changes on records and codes
2.5.9 string constants, fix hours interval evaluation
2.5.8 async methods
2.5.7 time conversion to DateTimeOffset, time interval check, long short position extension
2.5.6 records changed from classes to C# records
2.5.5 common interfaces for streaming and non-streaming records, code constants
2.5.4 codes to friendly string extensions
2.5.3 timeout handling, trading examples
2.5.2 new csproj format, set netstandard2.0
2.5.1 cleaned linked binaries and set nuget dependencies

Setup

Add nuget package to the project.
For example like this:

<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, official page and official documentation