A .NET library that calls the Mintos API. It is not an official Mintos SDK or a product of the platform.
- 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.
- Session via cookies (
MW_SESSION_ID,PHPSESSID) andanti-csrf-tokenheader - 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/403viaOnUnauthorizedAsync(e.g. refresh credentials)
- Target .NET 10 or later (same major as the package)
Microsoft.Extensions.Logging.Abstractionsis referenced by the package; you do not add it manually unless you need a specific version
1. Add the NuGet package to your app:
dotnet add package Mintos.API2. Create the client and call the API:
usingMintos.API;usingMicrosoft.Extensions.Logging;usingvarproxy=newMintosProxyApi(NullLogger<MintosProxyApi>.Instance);varclient=newMintosClient(proxy,NullLogger<MintosClient>.Instance);// Obtain values from **your own** logged-in browser sessionclient.Initialize(mwSessionId,phpSessionId,antiCsrfToken);varuser=awaitclient.GetUserAsync();Optionally set proxyApi.OnUnauthorizedAsync to refresh credentials and retry when the session expires.
dotnet build src/Mintos.API.sln
dotnet pack src/Mintos.API/Mintos.API.csproj -c ReleaseProduces a .nupkg under src/Mintos.API/bin/Release/ (or Debug) for publishing to a feed.
See LICENSE.txt.
“Mintos” is a trademark of its owner. This project is not affiliated with or endorsed by Mintos.