MoexIIS 1.0.31

.NET Standard 2.0 .NET Framework 4.6.1
dotnet add package MoexIIS --version 1.0.31
NuGet\Install-Package MoexIIS -Version 1.0.31
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MoexIIS" Version="1.0.31" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MoexIIS --version 1.0.31
#r "nuget: MoexIIS, 1.0.31"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MoexIIS as a Cake Addin
#addin nuget:?package=MoexIIS&version=1.0.31

// Install MoexIIS as a Cake Tool
#tool nuget:?package=MoexIIS&version=1.0.31

MoexIIS

C# client library and OpenAPI spec for Moex IIS

Nuget

NuGet

Install-Package MoexIIS

Usage

using MoexIIS;

using var client = new HttpClient();
var api = new MoexIISApi(client);

await api.AuthenticateAsync(username, password);

var values = await api.GetOpenPositionsOnFuturesAsync("si", iss_json: "extended", iss_meta: "off");
var positions = values.ElementAt(1).Futoi ?? throw new InvalidOperationException("Futoi is null.");
var yur = positions.ElementAt(0);
var fiz = positions.ElementAt(1);
var dates = values.ElementAt(1).FutoiDates ?? throw new InvalidOperationException("FutoiDates is null.");
var from = dates.ElementAt(0).From;
var till = dates.ElementAt(0).Till;

Console.WriteLine($"Open positions: {from}-{till}");
Console.WriteLine($"Time: {yur.Tradetime}. Group: {yur.Clgroup}. Longs: {yur.Pos_long}/{yur.Pos_long_num}. Shorts: {-yur.Pos_short}/{yur.Pos_short_num}");
Console.WriteLine($"Time: {fiz.Tradetime}. Group: {fiz.Clgroup}. Longs: {fiz.Pos_long}/{fiz.Pos_long_num}. Shorts: {-fiz.Pos_short}/{fiz.Pos_short_num}");

Contacts

Initial OpenAPI spec from:
https://github.com/Klawru/MoexApiSwagger

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.31 119 5/4/2022
1.0.26 104 5/4/2022
1.0.16 93 5/4/2022
1.0.15 104 5/4/2022
1.0.14 103 5/4/2022
1.0.12 97 5/4/2022
1.0.11 99 5/4/2022
1.0.10 100 5/4/2022
1.0.9 107 5/4/2022
1.0.8 94 5/4/2022
1.0.7 99 5/4/2022
1.0.6 102 5/4/2022
1.0.5 104 5/4/2022
1.0.4 104 5/4/2022
1.0.3 100 5/4/2022
1.0.2 99 5/4/2022

⭐ Last 10 features:
- feat: Updated NuGet packages. 2022-05-04
- feat: Added personal token to CI. 2022-05-04
- feat: Initial commit. 2022-04-29

🐞 Last 10 bug fixes:
- fix: Fixed CI. 2022-05-04
- fix: Added tags-ignore to CI. 2022-05-04
- fix: Fixed CI. 2022-04-29