Mintos.API 1.0.0

dotnet add package Mintos.API --version 1.0.0
                    
NuGet\Install-Package Mintos.API -Version 1.0.0
                    
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="Mintos.API" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mintos.API" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Mintos.API" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mintos.API --version 1.0.0
                    
#r "nuget: Mintos.API, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mintos.API@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mintos.API&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Mintos.API&version=1.0.0
                    
Install as a Cake Tool

Mintos.API

A .NET library that calls the Mintos API. It is not an official Mintos SDK or a product of the platform.

NuGet NuGet license


  • Mintos Terms and Conditions prohibit bots, scripts, and other automation that conflicts with platform rules. Using this library for automation may violate those terms.
  • This repository is for educational and technical purposes only. You use it at your own risk, including any legal consequences, account suspension, or loss of funds.
  • Authors and contributors accept no liability for how this code is used.

Features

  • Session via cookies (MW_SESSION_ID, PHPSESSID) and anti-csrf-token header
  • Session refresh (RefreshSessionAsync)
  • User profile, balance, currency overview, portfolio distribution
  • Primary and secondary markets (note series)
  • Current and finished note-series investments
  • Cart: secondary shares and primary notes — add, list, clear, confirm share purchase
  • Retry on 401/403 via OnUnauthorizedAsync (e.g. refresh credentials)

Requirements

  • Target .NET 10 or later (same major as the package)
  • Microsoft.Extensions.Logging.Abstractions is referenced by the package; you do not add it manually unless you need a specific version

Install and quick start

1. Add the NuGet package to your app:

dotnet add package Mintos.API

2. Create the client and call the API:

using Mintos.API;
using Microsoft.Extensions.Logging;

using var proxy = new MintosProxyApi(NullLogger<MintosProxyApi>.Instance);
var client = new MintosClient(proxy, NullLogger<MintosClient>.Instance);
// Obtain values from **your own** logged-in browser session
client.Initialize(mwSessionId, phpSessionId, antiCsrfToken);
var user = await client.GetUserAsync();

Optionally set proxyApi.OnUnauthorizedAsync to refresh credentials and retry when the session expires.


Build and pack (from source)

dotnet build src/Mintos.API.sln
dotnet pack src/Mintos.API/Mintos.API.csproj -c Release

Produces a .nupkg under src/Mintos.API/bin/Release/ (or Debug) for publishing to a feed.


License

See LICENSE.txt.


Trademark disclaimer

“Mintos” is a trademark of its owner. This project is not affiliated with or endorsed by Mintos.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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.0 36 3/26/2026