RealMarketAPI.Sdk 1.0.0

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

RealMarketAPI.Sdk

Official .NET SDK for the RealMarket API — providing real-time market prices, OHLCV candles, historical data, and technical indicators.

Installation

dotnet add package RealMarketAPI.Sdk

Quick Start

1. Register with Dependency Injection

// Program.cs or Startup.cs
builder.Services.AddRealMarketApiClient("YOUR_API_KEY");

Or with full options:

builder.Services.AddRealMarketApiClient(options =>
{
    options.ApiKey = "YOUR_API_KEY";
    options.BaseUrl = "https://api.realmarketapi.com/"; // default
});

2. Inject and Use

public class MarketService(IRealMarketApiClient client)
{
    public async Task PrintPriceAsync()
    {
        // Real-time price
        var price = await client.Ticker.GetPriceAsync("EURUSD", "M1");
        Console.WriteLine($"EURUSD Close: {price.ClosePrice}");

        // Latest 10 candles
        var candles = await client.Ticker.GetCandlesAsync("BTCUSDT", "H1");
        foreach (var c in candles.Data)
            Console.WriteLine($"{c.OpenTime}: O={c.OpenPrice} H={c.HighPrice} L={c.LowPrice} C={c.ClosePrice}");

        // SMA(20)
        var sma = await client.Indicators.GetSmaAsync("EURUSD", "H1", period: 20);

        // RSI(14)
        var rsi = await client.Indicators.GetRsiAsync("EURUSD", "H1");

        // MACD
        var macd = await client.Indicators.GetMacdAsync("EURUSD", "H1");

        // Available symbols
        var symbols = await client.Symbols.GetSymbolsAsync(marketClass: "Forex");
    }
}

Available Endpoints

Ticker (client.Ticker)

Method Description
GetPriceAsync(symbol, timeframe) Latest real-time ticker with bid/ask
GetMarketPricesAsync() Market overview for all plan symbols
GetCandlesAsync(symbol, timeframe) Latest OHLCV candles
GetHistoryAsync(symbol, start, end, page, size) Paginated historical candle data

Indicators (client.Indicators)

Method Description
GetSmaAsync(symbol, timeframe, period) Simple Moving Average
GetEmaAsync(symbol, timeframe, period) Exponential Moving Average
GetRsiAsync(symbol, timeframe, period=14) Relative Strength Index
GetMacdAsync(symbol, timeframe, fast=12, slow=26, signal=9) MACD line, signal, and histogram
GetSupportResistanceAsync(symbol, timeframe) Support and resistance levels
GetFibonacciAsync(symbol, timeframe, lookback=100) Fibonacci retracement levels

Symbols (client.Symbols)

Method Description
GetSymbolsAsync(marketClass?) All available trading symbols

Notes

  • Indicator endpoints require a Pro plan or higher.
  • Historical data availability depends on your plan's HistoricalRangeMonth.
  • All methods accept an optional CancellationToken.
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.2 22 3/30/2026
1.0.1 39 3/27/2026
1.0.0 39 3/27/2026