---
title: "Crypto"
description: "The Crypto data provider provides a stream of security trades and quotes delivered to your trading algorithm during live execution."
canonical: https://www.quantconnect.com/docs/v2/cloud-platform/datasets/quantconnect/crypto
markdown: https://www.quantconnect.com/docs/v2/cloud-platform/datasets/quantconnect/crypto.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/01%20Cloud%20Platform/09%20Datasets/07%20QuantConnect/03%20Crypto
modified: 2026-10-29
index: https://www.quantconnect.com/llms.txt
---

# Crypto

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Cloud Platform](https://www.quantconnect.com/docs/v2/cloud-platform.md) > [Datasets](https://www.quantconnect.com/docs/v2/cloud-platform/datasets.md) > [QuantConnect](https://www.quantconnect.com/docs/v2/cloud-platform/datasets/quantconnect.md) > Crypto

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

The QuantConnect data provider provides a stream of Crypto trades and quotes to your trading algorithm during live execution. Live data enables you to make real-time trades and update the value of the securities in your portfolio.

## Sourcing

The QuantConnect data provider uses WebSockets to gather Crypto market data from the following sources:

- Binance & Binance US
- Bitfinex
- Bybit
- Coinbase
- Kraken

Binance and Bybit restrict access from the United States, so you must use the Europe (WAW) [region](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/getting-started.md#07-Redundancy) to trade with them or to receive their data.

## Universe Selection

The QuantConnect data provider enables you to create a dynamic universe of Crypto securities. The live data for Crypto universe selection arrives at 4 PM Coordinated Universal Time (UTC), so universe selection runs for live algorithms between 4 PM and 4:30 PM. Don't schedule anything for midnight because the universe selection data isn't ready yet.

```python
# Request an async Bitfinex crypto universe universe with a selection filter.
self.universe_settings.asynchronous = True
self.add_universe(CryptoUniverse.bitfinex(self._universe_selection_filter))
```

To view an example for each Crypto market, see the **Universe Selection** section of the Crypto market in the [Dataset Market](https://www.quantconnect.com/datasets).

## Bar Building

We aggregate ticks to build bars.

In live trading, bars are built using the exchange timestamps with microsecond accuracy. This microsecond-by-microsecond processing of the ticks can mean that the individual bars between live trading and backtesting can have slightly different ticks. As a result, it's possible for a tick to be counted in different bars between backtesting and live trading, which can lead to bars having slightly different open, high, low, close, and volume values.

## Delivery

Most live trading algorithms run on co-located servers racked in [Equinix](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/getting-started.md#07-Redundancy). Co-location reduces several factors that can interfere with your algorithm, including downtime from internet outages, equipment repairs, and natural disasters.

Live data takes time to travel from the source to your algorithm. The QuantConnect latencies vary depending on the data provider. A much more significant source of latency is the round trip order times from brokers, which can vary from 100ms to 5 seconds. QuantConnect is not intended for high-frequency trading, but we have integrations to high-speed brokers if you need.

## Historical Data

When you [request historical data](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/history-requests.md) or run [warm-up](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/warm-up-periods.md), the amount of historical data you can access depends on the resolution of your data subscriptions. The following table shows the amount of trailing historical data you can access for each data resolution:

| Resolution | Available History |
| --- | --- |
| Daily | All historical data |
| Hour | All historical data |
| Minute | 1 year |
| Second | 2 months |
| Tick | 1 month |

## Pricing

The QuantConnect data provider serves Crypto data for free.
