FinClient 0.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FinClient --version 0.10.0
                    
NuGet\Install-Package FinClient -Version 0.10.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="FinClient" Version="0.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FinClient" Version="0.10.0" />
                    
Directory.Packages.props
<PackageReference Include="FinClient" />
                    
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 FinClient --version 0.10.0
                    
#r "nuget: FinClient, 0.10.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 FinClient@0.10.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=FinClient&version=0.10.0
                    
Install as a Cake Addin
#tool nuget:?package=FinClient&version=0.10.0
                    
Install as a Cake Tool

FinClient for .NET

FinClient is the .NET SDK for the FinCopy public API, with a default base URL of https://api.fincopy.io. Since version 0.2.0 it uses numeric ACNO paths under /v1/fxs, which changed the 0.1 API; see the changelog before upgrading. It targets .NET Standard 2.0 and .NET 8.

dotnet add package FinClient
using Fin;
using Fin.Copy;

using var fin = new FinClient(new FinClientOptions(Environment.GetEnvironmentVariable("FINCOPY_API_KEY")!));
var accounts = await fin.Copy.Accounts.ListAsync();
foreach (var account in accounts.Items)
    Console.WriteLine($"{account.Fleet?.Account?.ACNO} · {account.Fleet?.Account?.Login}");

// The account number is in the path, not in the trade body.
// await fin.Copy.Orders.MakeAsync(52014125, new CmdApiFxsOrdrMake
// {
//     SYM = "EURUSD", ACT = FxsOrderAction.NEW, OTY = FxsOrderType.OP_BUY, LOT = 0.01,
// });

Member session

Pass a caller-owned HttpClient configured to send the signed-in member's fincopy_member session cookie, and omit the API key. Set BaseUrl when the API is not at the default address:

using var fin = new FinClient(new FinClientOptions { BaseUrl = apiRoot }, authenticatedHttpClient);
var account = await fin.Copy.Accounts.GetAsync(52014125);

The caller configures and disposes that HttpClient. Session trade requests are checked against the member's trade-PIN gate by the API. API keys remain for trusted server-side clients; never ship them in browser or mobile code.

Resources

  • Copy.Accounts: paged accounts, creation, settings, pairs, symbols and quotes, orders, history, DCA, performance, activity, strategy preview and apply, and terminal operations (start, stop, restart, disconnect).
  • Copy.Orders: trade preflight, trade, hedge, modify, cancel and DCA answers.
  • Copy.Fx: lists across every account you can reach (pairs, orders, history, activity, DCA, terminal operations, performance window and bars), strategies (list, read, create, change, delete), signals, alerts, brokers and the event stream.
  • Copy.Changes and Copy.Webhooks: change feed and webhook configuration/test delivery.

Paged methods return FinPage<T> with Items and paging metadata. Generated DTO properties retain PascalCase names. Trade writes return when queued for the terminal; observe completion through the stream, change feed or webhook. Copy.Accounts.RemoveAsync sends DELETE /v1/fxs/accounts/{acno} and disconnects the hosted terminal: it stops and removes the terminal, forgets the broker password and frees the seat. Customer account settings and trade history remain; a free demo's account and terminal records are deleted. Open orders stay at the broker, and virtual TP, SL and TS stop working while no terminal runs. For a member session with a trading PIN, pass tradingPin:

await fin.Copy.Accounts.RemoveAsync(acno, idempotencyKey: requestKey, tradingPin: tradingPin);

API-key requests do not use a session PIN. The method returns an operation id; retry with the same idempotency key to receive the same operation.

API calls throw FinApiException with HTTP status, API code, message, validation errors and RetryAfter when present, and an ErrorCode of timeout, network, rate_limited, invalid_response or empty_response when the SDK set one. The client retries rate limits and transient network/gateway errors while reusing each write's Idempotency-Key.

Copy.Fx.ReadStreamAsync does not reconnect. It ends when the server closes it (about every 30 minutes); a broken connection throws FinApiException with ErrorCode "network". Open it again in a loop, waiting a few seconds between attempts. Cancelling the token ends it on every target framework.

See the QuickStart, API docs, and repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.14.0 41 11/23/2026
0.13.0 83 11/22/2026
0.12.0 95 11/21/2026
0.11.0 89 11/20/2026
0.10.0 89 11/19/2026
0.9.0 99 11/18/2026
0.8.0 101 11/13/2026
0.7.0 100 11/13/2026
0.6.0 106 11/12/2026
0.5.0 98 11/11/2026
0.3.0 98 11/10/2026
0.2.2 129 10/28/2026
0.2.1 108 10/26/2026
0.2.0 126 10/21/2026
0.1.1 108 10/20/2026
0.1.0 118 10/20/2026