πŸŽ‰ Our Chrome Extension is here! Get live market prices right in your browser.Install Nowβ†’
RealMarketAPIRealMarketAPI
FeaturesPricingDocs

Playground

Interactive API playground

Widget

Embed widget solutions

SDK

Connect quickly with official SDK clients

Blog

Latest articles and updates

News

Recent news and announcements

Forum

Join our community forum

Learning

Learning resources, tutorials, and implementation guides

RSS Feeds

Curated trading RSS feeds directory

RealMarketAPI

Realtime market data infrastructure for modern fintech applications and trading platforms.

Product

  • Features
  • Pricing
  • Documentation
  • Widgets
  • Dashboard

Company

  • About
  • Contact
  • Blog
  • FAQ
  • Feedback
  • Status
  • Affiliates

Compare

  • All Comparisons
  • vs Alpaca
  • vs Polygon.io
  • vs GoldPrice.io
  • vs Finnhub
  • vs Alpha Vantage
  • vs Finage

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Security
  • Trust Center
  • Risk Warning
  • Cookie Policy

Open Source

  • Learning Resource
  • RSS Feeds

Featured on

Fazier badgeRealMarketAPI - Real-time market data, built for builders | Product HuntFind Us on NextGen ToolsFeatured on Findly.toolsRealMarketAPI - Featured on Startup FameListed on Turbo0Featured on neeed.directoryVerified on Verified ToolsRealMarketAPI | dang.aiLive on FoundrListFeatured on ToolDirsMonitor your Domain Rating with FrogDRReal Market API badge#1 Product on EarlyHuntFeatured on LaunchIgniterListed on codetrendy.comFeatured on RankInPublicFeatured on ScrollLaunchOpenHunts Club MemberReal-time Market API badgeFeatured on Launch LlamaSEOJuiceFeatured on Wired BusinessFeatured on Dofollow.ToolsPowered by Startup Fast
Fazier badgeRealMarketAPI - Real-time market data, built for builders | Product HuntFind Us on NextGen ToolsFeatured on Findly.toolsRealMarketAPI - Featured on Startup FameListed on Turbo0Featured on neeed.directoryVerified on Verified ToolsRealMarketAPI | dang.aiLive on FoundrListFeatured on ToolDirsMonitor your Domain Rating with FrogDRReal Market API badge#1 Product on EarlyHuntFeatured on LaunchIgniterListed on codetrendy.comFeatured on RankInPublicFeatured on ScrollLaunchOpenHunts Club MemberReal-time Market API badgeFeatured on Launch LlamaSEOJuiceFeatured on Wired BusinessFeatured on Dofollow.ToolsPowered by Startup Fast

Β© 2026 RealMarketAPI. All rights reserved.

Built with ❀ for developers

vv0.0.0 Β· 2026-06-16

PrivacyΒ·TermsΒ·SecurityΒ·Risk WarningΒ·Cookies

Risk Disclosure: Trading in financial instruments and/or cryptocurrencies involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors. Prices of cryptocurrencies are extremely volatile and may be affected by external factors such as financial, regulatory or political events. This content is provided for informational purposes only and does not constitute financial advice.

Feedback
Official SDK

SDK Clients

Integrate real-time market prices, OHLCV candles, historical data, technical indicators, WebSocket streaming, and MCP support into your application in minutes.

API Reference Try the Playground
.NET 10NuGet PackageREST + WebSocket + MCP

Requirements

  • .NET 10 SDK or later
  • A valid RealMarketAPI key β€” get yours in the dashboard

Installation

Install the package from NuGet using the .NET CLI:

.NET CLI
dotnet add package RealMarketAPI.Sdk

Or via the Package Manager Console in Visual Studio:

Package Manager Console
Install-Package RealMarketAPI.Sdk

Or add directly to your .csproj:

YourProject.csproj
<PackageReference Include="RealMarketAPI.Sdk" Version="1.0.0" />

Quick Start

Register the client in your dependency injection container:

Program.cs
// Minimal setup β€” pass your API key directly
builder.Services.AddRealMarketApiClient("YOUR_API_KEY");

Or with full options for custom configuration:

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

Inject and Use

Inject IRealMarketApiClient into your services or controllers:

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

        // Latest OHLCV candles for BTCUSDT on H1
        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}");

        // Technical indicators
        var sma  = await client.Indicators.GetSmaAsync("EURUSD", "H1", period: 20);
        var rsi  = await client.Indicators.GetRsiAsync("EURUSD", "H1");
        var macd = await client.Indicators.GetMacdAsync("EURUSD", "H1");

        // All available symbols for your plan
        var symbols = await client.Symbols.GetSymbolsAsync();
    }

    public async Task StreamPricesAsync(CancellationToken ct)
    {
        // Real-time WebSocket streaming (requires WebSocket-enabled plan)
        await foreach (var tick in client.WebSocket.StreamPriceAsync("EURUSD", "M1", ct))
            Console.WriteLine($"[WS] {tick.OpenTime}: Close={tick.ClosePrice}");
    }
}

Storing Your API Key Securely

Never hard-code secrets in source. Store your key in appsettings.json or environment variables and read it at startup:

appsettings.json
{
  "RealMarketApi": {
    "ApiKey": "YOUR_API_KEY"
  }
}
Program.cs
builder.Services.AddRealMarketApiClient(options =>
{
    options.ApiKey = builder.Configuration["RealMarketApi:ApiKey"]!;
});

Ticker β€” client.Ticker

MethodDescription
GetPriceAsync(symbol, timeframe)Latest real-time ticker with bid/ask prices.
GetMarketPricesAsync()Market overview for all symbols included in your plan.
GetCandlesAsync(symbol, timeframe)Latest OHLCV candles for the given symbol and timeframe.
GetHistoryAsync(symbol, start, end, page, size)Paginated historical candle data for a date range.

Indicators β€” client.Indicators

Indicator endpoints require a Pro plan or higher.
MethodDescription
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 line, and histogram.
GetSupportResistanceAsync(symbol, timeframe)Support and resistance levels.
GetFibonacciAsync(symbol, timeframe, lookback = 100)Fibonacci retracement levels.

Symbols β€” client.Symbols

MethodDescription
GetSymbolsAsync()All available trading symbols for your plan.

WebSocket β€” client.WebSocket

Requires a plan with WebSocket support enabled (IsSocketSupport = true). Endpoint: wss://api.realmarketapi.com/price
MethodDescription
StreamPriceAsync(symbol, timeframe, ct)Stream real-time price ticks as IAsyncEnumerable<PriceTickerResult>.

MCP β€” client.Mcp

Exposes the full RealMarket API as MCP tools, callable from AI assistants (GitHub Copilot, Claude, etc.) and from .NET code. Endpoint: https://api.realmarketapi.com/mcp

MethodMCP ToolDescription
GetPriceAsync(symbol, timeframe)get_priceLatest real-time price ticker.
GetCandlesAsync(symbol, timeframe)get_candlesLatest OHLCV candles.
GetHistoryAsync(symbol, start, end, page, size)get_historyPaginated historical candles.
GetSymbolsAsync()get_symbolsAll available trading symbols.
GetTimeframesAsync()get_timeframesTimeframe codes supported by your plan.
GetSmaAsync(symbol, timeframe, period=20)get_smaSimple Moving Average.
GetEmaAsync(symbol, timeframe, period=20)get_emaExponential Moving Average.
GetRsiAsync(symbol, timeframe, period=14)get_rsiRelative Strength Index.
GetMacdAsync(symbol, timeframe, fast=12, slow=26, signal=9)get_macdMACD line, signal, and histogram.
GetSupportResistanceAsync(symbol, timeframe)get_support_resistanceSupport and resistance levels.
GetFibonacciAsync(symbol, timeframe, lookback=100)get_fibonacciFibonacci retracement and extension levels.
GetSentimentAsync(symbol, timeframe)get_sentimentComposite Fear/Greed score with RSI(14), MACD(12/26/9), and EMA-50/100.
Indicator MCP tools require a Pro plan or higher.

Notes

  • Indicator endpoints require a Pro plan or higher.
  • WebSocket streaming requires a plan with IsSocketSupport = true.
  • Historical data availability depends on your plan's HistoricalRangeMonth limit.
  • All async methods accept an optional CancellationToken.
  • Targets .NET 10.
View on NuGetFull API Reference

Related resources

Explore the guides, pricing, and tooling that connect directly to the SDK workflow.

Getting started guideAPI referencePricing plansTrading widgetsAPI playground