> For the complete documentation index, see [llms.txt](https://cryptoquote.gitbook.io/cryptoquote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cryptoquote.gitbook.io/cryptoquote/apis/streaming-apis/develop.md).

# Develop

Select the NATS [client](https://nats.io/download/#clients) (or SDKs) of your preference. The NATS modern and powerful streaming protocol automatically handles reconnections, message parsing, and more.&#x20;

<mark style="color:orange;">**Subscriptions**</mark>

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

***

<mark style="color:orange;">**Exchange Subscriptions**</mark>

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.*`

<mark style="color:orange;">**All Trades**</mark>

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

* `hose.trade.>`

You can read more about NATS subscription wildcards [here](https://docs.nats.io/nats-concepts/subjects#matching-a-single-token).

#### <mark style="color:orange;">**Code Examples**</mark>

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

You can also find full source code on GitHub: <https://github.com/cryptoquote/firehose-examples>

<figure><img src="/files/qWWozAJek7qiuhjJQdio" alt=""><figcaption></figcaption></figure>
