Cryptoquote
  • Welcome to Cryptoquote
  • APIs
    • Analytics APIs
      • Markets
        • Movers
        • Price Volume Gainers
        • Trend Directions
        • Gap Up / Down
        • Range Up / Down
      • Screener
        • Market Screener
      • Event Impact Analysis
        • Event Impact Analysis
      • Single Security Analysis
        • Momentum
        • Historical Volatility
        • Historical Up / Down / Returns
        • Historical Ranking
        • Price Volume Distribution
        • Relative Volume
        • Total Return
        • Total Returns (Yearly)
        • Returns Distribution
        • Historical Change $ and Percentage %
        • Up / Down Percentage
        • Highest / Lowest Traded Values
        • Scan Historical Prices
        • Percentile Stats
        • Financial Returns and Trading Volumes
      • Technical Analysis
        • Technical Indicators Signals
        • SMA indicators and signals
        • Simple Moving Average (SMA)
        • Exponential Moving Average (EMA)
        • Average Directional Movement Index (ADX)
        • Weighted Moving Average (WMA)
        • Double Exponential Moving Average (DEMA)
        • Triple Exponential Moving Average (TEMA)
        • Triangular Moving Average (TRIMA)
        • Kaufman Adaptive Moving Average (KAMA)
        • Pivot points
        • Recognizing 50+ Candlestick patterns
        • Historical VWAP
        • Key Technical Stats
      • Statistical Analysis
        • Skewness
        • Sharpe Ratio
        • Sortino Ratio
      • Multi-Security Analysis
        • Average Returns
        • Correlation Matrix
        • Correlation Matrix - market groups
        • Crypto Correlations
        • High, Low, Averages
        • Relative Volumes
        • Trend Direction
        • Historical Averages
        • Historical Performance
        • Historical Range
        • Symbols Calculated Fields
        • Rankings
      • Reference Tables
        • Fields
      • API Usage
    • Streaming APIs
      • Overview
      • Test
      • Develop
    • REST APIs
      • Market Data Snapshot
        • Markets RT Snapshot
        • Prices Snapshot
      • Historical
        • Tick Time Series
        • N-Minute Time Series
        • Daily Bar Time Series
        • USD Reference Prices
        • Marketcap and Circulation Supply
        • Coin Halving and Forking
    • Reference Data
      • Exchanges
      • Exchange Symbols List
      • Global USD Symbols list
      • Global Commodities Symbols list
      • Global Currencies Symbols list
      • Global Equity Indices Symbols list
      • Coin Information
      • Crypto base ticker and currencies
      • Get instrument information
    • News
      • Page 13
    • Tables
  • Widgets
    • TextToIntel
    • One Widget Multiple Applications
  • News++
    • 🍞Untitled
  • Data News
    • Page 4
  • RSS Feeds
    • Page 5
  • LinkedIn
  • Twitter
  • WidgetiFrame
  • WidgetiFrame
Powered by GitBook
On this page
  1. APIs
  2. Streaming APIs

Develop

PreviousTestNextREST APIs

Last updated 2 years ago

Select the NATS (or SDKs) of your preference. The NATS modern and powerful streaming protocol automatically handles reconnections, message parsing, and more.

Subscriptions

You can subscribe to a single ticker on an Exchange. The topic below would stream you BTC/ETH trades from the Binance cryptocurrency Exchange:

  • hose.trade.binance.btceth

You can also subscribe to a market for all exchanges:

  • hose.trade.*.btcusd

Given the above topic, you would receive all trades for BTC/USD for all supported Exchanges.

Note: all topic strings must be in lowercase


Exchange Subscriptions

One of the more powerful features of Cryptoquote Stream is the ability to subscribe to a full exchange. The topic below streams all trades from the Binance cryptocurrency Exchange:

  • hose.trade.binance.*

All Trades

To subscribe to all trade messages for all exchanges, your topic would be:

  • hose.trade.>

You can read more about NATS subscription wildcards .

Code Examples

Below is some bare-bones example code that will connect and subscribe to Cryptoquote Stream.

You can also find full source code on GitHub:

client
here
https://github.com/cryptoquote/firehose-examples