Terminal
↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Strategy Explorer Strategies Strategies
  • Research Research Research
  • Data
  • Documentation Docs Docs
  • Algorithm Lab Lab Lab
  • Sign In

Terminal

    Platform

  • Pricing
  • Strategy Explorer
  • Research
  • Datasets
  • Documentation
  • Algorithm Lab

    SIGN IN

  • Sign in
  • Don't have an account? Join QuantConnect Today

  • Sign up for Free

Welcome to
Algorithm Lab

We are dedicated to providing investors with a cutting-edge platform for rapidly creating quant investment strategies. Founded in 2012, we've empowered more than 250,000 quants and engineers to create and trade their ideas.

Terminal image Terminal image
Your Quantitative Foundation

Learning Center

Quickly and easily started with our API to build your strategy. The learning center lessons are interactive, step-by-step guides to make you productive as fast as possible.

BootCamp BootCamp
Explore Free and Paid Datasets

Vast Datasets

Focus your efforts on driving alpha, not parsing CSV files. Our cloud offers hundreds of terabytes of traditional and alternative data preformatted, cleaned, and instantly accessible by our API.

Datasets Datasets
Collaborate with Your Team

Organizations

Coordinate teamwork, control access permissions, and your shared cloud resources. Grow your trading organization safely and efficiently on top of our cloud architecture.

Organizations
Jumpstart Your Algorithm Development

Strategy Explorer

A selection of streaming live-trading strategies written by QuantConnect, and top highlights from the community available to follow and clone. Peer into detailed real-time positions to gain insight for your own trading.

Strategy Explorer Strategy Explorer


Loading Algorithm Lab v3.0...
  • my-projects my-projects
    my-projects my-projects
    Projects
  • my-projects my-projects
    my-projects my-projects
    Organization
  • my-projects my-projects
    my-projects my-projects
    Learning Center
  • my-projects my-projects
    my-projects my-projects
    Datasets
  • Strategy Explorer Strategy Explorer
    Strategy Explorer Strategy Explorer
    Strategies
  • my-projects my-projects
    my-projects my-projects
    Support
  •  
close lesson close lesson
search icon search icon
  • Learning Center Home Learning Center Home All Courses
  • My courses in progress My courses in progress In Progress
  • My courses Completed My courses Completed Completed
  • My Wish List My Wish List Wish List
  • My Wish List My Wish List Articles

What is Boot Camp?

Boot Camp is a great way to improve your skills and learn the QuantConnect API in easily digestible portions.

Learning Center

Your Quantitative Foundation

A collection of courses from independent educators to improve your quant skill base and create better strategies.

Available Courses

Solidify and expand your quant skill base with courses at QuantConnect

Boot Camp 101 / US Equities

Learn algorithmic trading with python for US Equities. Guided strategy development in easily digestible portions.

Author: QuantConnect

Free  |  97,056 People Enrolled

Boot Camp 102 / FOREX

Learn algorithmic trading with python for FX. Guided strategy development in easily digestible portions.

Author: QuantConnect

Free  |  20,759 People Enrolled

Boot Camp 103 / Futures

Learn algorithmic trading with python for Futures. Guided strategy development in easily digestible portions.

Author: QuantConnect

Free  |  7,597 People Enrolled

Algorithmic Trading A-Z | The Complete Course

In this algorithmic trading tutorial series you will learn everything you need to know to start writing your own trading bots using Python and the QuantConnect quantitative trading platform.

Author: Louis

Free  |  29,430 People Enrolled

Complete Algorithmic Trading Course

Master algorithmic trading on QuantConnect; backtest and live trade Stocks, Options, Futures, Forex, and Crypto.

Author: Cheng Li

Paid  |  Enroll on Udemy

Python for Finance and Algorithmic Trading with QuantConnect

Learn to use Python, Pandas, Matplotlib, and the QuantConnect Lean Engine to perform financial analysis and trading.

Author: Jose Portilla, Pierian Training

Paid  |  Enroll on Udemy

Crypto Trading with QuantConnect (C#)

Learn to write programs that algorithmically trade cryptocurrencies using QuantConnect (C#).

Author: Eric Summers

Paid  |  Enroll on Udemy

List Your Course List Your Course

List Your Course

Choose a Template
Close Menu Close Menu

Basic

  • Use Default Template

Use Strategy Explorer Template

Profile Image

Quant Developer

FREE UPGRADE

Start

  • create new algorithm create new algorithm New Algorithm
  • open project open project Open Project
  • open project open project Explore Strategies

Resources

Notes icons

Organization Notes

start icon

Get Started with Algorithm Lab

Close Widget Close Widget
  • Signed Up
  • Create a Project Complete Task Complete Task
  • Backtest Your Project Complete Task Complete Task
  • Live Deploy Your Project Complete Task Complete Task
research icon

New Research

Portfolio Construction Using Topological Data Analysis

Harnessing topological techniques to diversify SPY constituents by clustering top constituents to reduce correlation risk and drawdown....

Read

News & Releases

announce icon

New Announcement

Quant League Q1 2025 Results: Triton Quantitative Trading Takes the 1st Place!

Read
roadmap icon

Upcoming Roadmap

  • UPVOTE

76 Walk Forward Optimization

View All
Online Members
+ Add Members
Quick Links
Research Community Quant League Documentation Learn

Begin Your QuantConnect Journey

Algorithm Lab is your playground for developing and refining trading algorithms with QuantConnect. Utilize advanced tools, historical data, and robust backtesting to enhance your trading strategies. Transform your ideas into actionable insights and optimize your trading approach with ease.

Sign Up for Free

Already have an account Log In.

Your Account

Summary

PROJECTS

BACKTESTS

LIVE VOLUME

PUBLIC ALGORITHMS

LIVE DEPLOYMENTS

LINES OF CODE

Account Settings

What is your preferred language?
What is your preferred color theme?
Subscriptions
Manage Email Subscriptions

Terminal Settings

Security

Change Password Deactivate 2FA Authentication

This account is protected by two-factor authentication.

Request Token Information Reset My Token
Active Sessions
Created Last Time Used Agent  

No entries found

Do you really want to cancel the subscription ?
Please, first downgrade to free all your organizations.
Ok
Do you really want to delete your account ?

To continue please enter your email:

Set up Google Authenticator

(No google account required)

First Install the Required Application

  1. 1. On your phone go to Google Play Store (Android) or Apple Store (iPhone)
  2. 2. Search for Google Authenticator
  3. 3. Download and install the application

Now open the Google Authenticator Application

  1. 4.- In the application, touch 'Begin Setup'
  2. 5.- Select 'Scan barcode'
  3. 6.- Using your phone camera scan this barcode

Final Verification

To verify that everything goes well please enter the 6 digit verification code generated by the authenticator application

Begin Your QuantConnect Journey

Algorithm Lab is your playground for developing and refining trading algorithms with QuantConnect. Utilize advanced tools, historical data, and robust backtesting to enhance your trading strategies. Transform your ideas into actionable insights and optimize your trading approach with ease.

Sign Up for Free

Already have an account Log In.

data Manager View
Requesting coding environment...

No Coding Session Available No Coding Session Available Retry


Please stop one of the following coding sessions, or upgrade your account.

NAME ORGANIZATION

Upgrade Coding Environment

QuantConnect Datasets

Datasets

  • all datasets all datasets All Datasets 0
  • list datasets list datasets List Dataset
  • list datasets list datasets Data Issues +99
  • status status Data Status
  • sales report sales report Sales Report
  • All
  • Geospatial Data
  • Commerce Data
  • Financial Market Data
  • Consumer Data
  • B2B Data
  • Transport and Logistics Data
  • Environmental Data
  • Credit Rating Data
  • Real Estate Data
  • Web Data
  • Legal Data
  • Healthcare Data
  • Entertainment Data
  • Energy Data
  • Industry Data
  • Political Data
  • News and Events

Datasets > Binance Crypto Future Price Data

Datasets

Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.

select icon select icon
select icon select icon
select icon select icon
 
List Dataset

New

US Equity Security Master

Corporate action data source for splits, dividends, mergers, acquisitions, IPOs, and delistings.

  • 27,500 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Futures Security Master

Rolling reference data for popular CME Futures contracts.

  • 162 Future Contracts
  • May 2009
  • Free in Cloud
Learn More
New

US Equity Coarse Universe

Universe of all US Equities with closing price and volume for Coarse Universe Selection.

  • 30,000 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US ETF Constituents

Equity constituent components and weightings for US ETF listings. This data is ideal for universe selection without selection bias.

  • 2,650 US ETF Listings
  • June 2009
  • Free in Cloud
Learn More
New

International Future Universe

FESX, HSI, and NKD Futures universe for fast future contract selection with prices, expiration dates and open interests

  • 3 contracts
  • July 1998
  • Free in Cloud
Learn More
New

US Future Option Universe

Future Options universe for fast option contract selection.

  • 16 Monthly Future Contracts
  • January 2012
  • Free in Cloud
Learn More
New

US Future Universe

Futures universe for fast future contract selection with prices, expiration dates and open interests

  • 162 Most Liquid Futures
  • May 2009
  • Free in Cloud
Learn More
New

US Equity Option Universe

Precalculated daily greeks for fast option-contract selection.

  • 4,000 Equity Options
  • January 2012
  • Free in Cloud
Learn More
New

US Index Option Universe

Precalculated Daily Greeks for Fast Option Selection

  • 7 Index Options
  • January 2012
  • Free in Cloud
Learn More
New

US Equities Short Availability

Available shares for open short positions in the US Equity market.

  • 10,500 US Equities
  • January 2018
  • Free in Cloud
Learn More
New

US Fundamental Data

Corporate Fundamental data for fine universe selection based on industry classification and underlying company performance indicators.

  • 8,000 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Equities

Market data for all US listed and delisted Equities, ETFs, ETNs, ADRs, and Warrants.

  • 27,500 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Equity Options

Trade and quote data for US Equity Options contracts.

  • 4,000 Equity Options
  • January 2012
  • Free in Cloud
Learn More
New

US Futures

Trade and quote data for the most liquid US Futures across the CME, CBOT, NYMEX, and COMEX markets.

  • 162 Most Liquid Futures
  • May 2009
  • Free in Cloud
Learn More
New

US Future Options

Future Options data for the most liquid US CME Future commodity contracts.

  • 16 Monthly Future Contracts
  • January 2012
  • Free in Cloud
Learn More
New

US Index Options

European Option contract data for 3 US Indices: SPX, VIX, and NDX.

  • 7 Index Options
  • January 2012
  • Free in Cloud
Learn More
New

International Futures

Trade and quote data for FESX, HSI, and NKD Future Contracts.

  • 3 Contracts
  • July 1998
  • Free in Cloud
Learn More
New

Benzinga News Feed

Financial articles and news publications condensed into a news feed with titles and article bodies for sentiment analysis

  • 1,250 Posts/Day, 8,000 Stocks
  • 1st January 2016
  • From $120/mo
Learn More
New

Tiingo News Feed

News releases from 120 different news providers for sentiment analysis.

  • 10,000 US Equities
  • January 2014
  • Free in Cloud
Learn More
New

Upcoming Earnings

Alert for upcoming earnings report of US Equities with report date, report time, and earnings estimation.

  • 27,500 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

Upcoming IPOs

Alert for upcoming IPO events of primary US Equities with IPO start/filing/amended date, IPO deal type. IPO prices, and number of shares.

  • US Equities
  • February 2013
  • Free in Cloud
Learn More
New

Upcoming Splits

Alert for upcoming split and reverse split events of primary US Equities common shares with split date, and split factor.

  • 27,500 US Equities
  • January 2010
  • Free in Cloud
Learn More
New

Economic Events

Alert for upcoming economic events globally, including the date and estimates of macroeconomic indicator annoucement, special dates, etc.

  • 115 Countries
  • January 2019
  • Free in Cloud
Learn More
New

US Congress Trading

Trading activity of Congresspeople for potential insider trading signals based on early access to regulation changes.

  • 1,800 US Equities
  • January 2016
  • From $5/User/mo
Learn More
New

WallStreetBets

Mentions of US Equities on the r/wallstreetbets subreddit.

  • 6,000 US Equities
  • August 2018
  • From $5/User/mo
Learn More
New

Corporate Buybacks

US Equity buyback announcements and transactions scraped from SEC reports and secondary sources.

  • 3,000 US Equities
  • May 2015
  • From $20/User/mo
Learn More
New

US Regulatory Alerts - Financial Sector

RegAlytics is the leading provider of daily regulatory updates. They source data from over 5,000 regulators.

  • 400,000 Alerts
  • January 2020
  • From $10/mo
Learn More
New

Brain Sentiment Indicator

Proprietary sentiment analysis algorithm for US Equities.

  • 4,500 US Equities
  • August 2016
  • From $10/mo
Learn More
New

Brain ML Stock Ranking

Proprietary machine learning ranking algorithm for US Equities.

  • 1,000 US Equities
  • January 2010
  • From $10/mo
Learn More
New

Brain Language Metrics on Company Filings

Proprietary NLP algorithm that monitors several language metrics on company reports.

  • 3,000 US Equities
  • January 2010
  • From $10/mo
Learn More
New

Estimize

Estimates of company financials including EPS, revenues, and macroeconomic indicators based on 100,000+ crowdsourced predictions.

  • 2,800 US Equities
  • January 2011
  • $75/mo
Learn More
New

True Beats

Predictions of EPS and Revenues for US Equities based on expert opinions, peer opinions, and historical performance.

  • Over 5,000 US Equities
  • January 2000
  • $75/mo
Learn More
New

Tactical

Likelihood score of short-term price movements driven by technical indicators.

  • Over 5,000 US Equities
  • January 2000
  • $75/mo
Learn More
New

Cross Asset Model

Scoring algorithm based on put-call spread of Equity Options, volatility skewness, and volume.

  • Over 3,000 US Equities
  • July 2005
  • $75/mo
Learn More
New

Composite Factor Bundle

Daily proprietary signals for quality, value, momentum, growth, and low volatility factors, which are used by the leading quant funds.

  • 8,000 US Equities
  • January 2003
  • From $39/mo
Learn More
New

CNBC Trading

CNBC Trading tracks the recommendations made by media personalities on CNBC.

  • 1,515 US Equities
  • December 2020
  • From $5/User/mo
Learn More
New

US Government Contracts

Use the USASpending.gov API to track government contracts granted to publicly traded companies.

  • 748 US Equities
  • October 2019
  • From $5/User/mo
Learn More
New

Corporate Lobbying

Lobbying activities of companies to political or legislative figures, including clients, issues concerned, and amount paid.

  • 1,418 US Equities
  • January 1999
  • From $5/User/mo
Learn More
New

Insider Trading

Insider Trading tracks trades made by the own company executives, implying if they were bullish or bearish on their own companies.

  • 4994 US Equities
  • 25 April 2014
  • From $5/User/mo
Learn More
New

US SEC Filings

Semi-parsed Quarterly Financial Reports (10-Q) and Annual Financial Report (8-K) filings of companies for US Equities.

  • 15,000 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Federal Reserve (FRED)

Collection of thousands of economic datasets maintained by the US Government.

  • 560 Datasets
  • January 1999
  • Free
Learn More
New

Data Link

Nasdaq Data Link, previously known as Quandl, is a premier marketplace for financial, economic, and alternative data sets.

  • More than 20 million datasets
  • Various
  • Free in Cloud
Learn More
New

Bybit Crypto Price Data

Trade and quote data for the Bybit Crypto exchange, collected by CoinAPI.

  • 721 Currency Pairs
  • April 2022
  • Price Update II
Learn More
New

Bybit Crypto Future Price Data

Trade and quote data for the Bybit Crypto Future exchanges, collected by CoinAPI.

  • 433 Crypto Future Pairs
  • October 2019
  • Free in Cloud
Learn More
New

Bybit Crypto Future Margin Rate Data

Margin interest rate data for the Bybit Crypto Future exchanges, collected by QuantConnect.

  • 433 Crypto Future Pairs
  • August 2020
  • Price CTA
Learn More
New

FOREX Data

Quote data for Forex pairs.

  • 71 Currency Pairs
  • January 2007
  • Free in Cloud
Learn More
New

CFD Data

Quote data for Contracts for Difference (CFD).

  • 51 Contracts
  • May 2002
  • Free in Cloud
Learn More
New

Coinbase Crypto Price Data

Trade and quote data for the Coinbase Pro Crypto exchange, collected by CoinAPI.

  • 860 Currency Pairs
  • January 2015
  • Free in Cloud
Learn More
New

Bitfinex Crypto Price Data

Trade and quote data for the Bitfinex Crypto exchange, collected by CoinAPI.

  • 383 Currency Pairs
  • January 2013
  • Free in Cloud
Learn More
New

Binance Crypto Price Data

Trade and quote data for the Binance Crypto exchange, collected by CoinAPI.

  • 2,684 Currency Pairs
  • July 2017
  • Free in Cloud
Learn More
New

Kraken Crypto Price Data

Trade and quote data for the Kraken Crypto exchange, collected by CoinAPI.

  • 710 Currency Pairs
  • October 2013
  • Free in Cloud
Learn More
New

Binance US Crypto Price Data

Trade and quote data for the Binance US Crypto exchange, collected by CoinAPI.

  • 541 Cryptocurrency pairs
  • October 2019
  • Free in Cloud
Learn More
New

Binance Crypto Future Price Data

Trade and quote data for the Binance Crypto Future exchanges, collected by CoinAPI.

  • 421 Crypto Future Pairs
  • August 2020
  • Free in Cloud
Learn More
New

Binance Crypto Future Margin Rate Data

Margin interest rate data for the Binance Crypto Future exchanges, collected by QuantConnect.

  • 421 Crypto Future Pairs
  • August 2020
  • Free in Cloud
Learn More
New

US Interest Rate

Primary credit rate from the Federal Open Market Committee (FOMC)

  • 1 Country: US
  • January 2003
  • Price CTA
Learn More
New

Macroeconomics Indicators

39 Macroeconomic Indicators data for 249 countries/regions, including the date, value, and frequency.

  • 39 Indicators, 249 Countries/Regions
  • January 1998
  • Free in Cloud
Learn More
New

Upcoming Dividends

Alert for upcoming dividend events of primary US Equities common shares with dividend important dates, and dividend per share.

  • 27,500 US Equities
  • January 2015
  • Free in Cloud
Learn More
New

US Energy Information Administration (EIA)

Supply and demand information for US Crude Products.

  • 190 Datasets
  • January 1991
  • Free
Learn More
New

US Treasury Yield Curve

Yield curve rates for US Government bonds over all common maturity dates. The data is scraped from the US Treasury website.

  • US Daily Treasury Yield Rates
  • January 1990
  • Free
Learn More
New

VIX Central Contango

Contango rates over time for the VIX Contract. The data is provided by VIXCentral and cached by QuantConnect.

  • 1 Dataset
  • June 2010
  • Free
Learn More
New

VIX Daily Price

Daily export of OHLC daily price for VIX-related products. The data is supplied by the CBOE and cached by QuantConnect.

  • 18 Datasets
  • January 1990
  • Free
Learn More
New

Cash Indices

Price data for 125 US Cash indices and 2 international indices (HSI and SX5E). This data provides the underlying price for Index Options of NDX, SPX, RUT, and VIX.

  • 125 US indices and 3 International indices
  • January 1998
  • Free in Cloud
Learn More
New

Bitcoin Metadata

Bitcoin processing fundamental data such as hash rate, miner revenue, and number of transactions.

  • Bitcoin blockchain
  • Jan 2009
  • Free in Cloud
Learn More
New

Crypto Market Cap

Cryptocurrencies market cap data is provided by CoinGecko and cached by QuantConnect.

  • 620 cryptocurrencies
  • 28 April 2013
  • Free Research
Learn More
 
resources-icon
Datasets Browse Available Datasets

Datasets >

Dashboard

Data Sale Reports

  • 2025 - May
  • 2025 - April
  • 2025 - March
  • 2025 - February
  • 2025 - January
  • 2024 - December
  • 2024 - November
  • 2024 - October
  • 2024 - September
  • 2024 - August
  • 2024 - July
  • 2024 - June
  • 2024 - May
  • 2024 - April
  • 2024 - March
  • 2024 - February
  • 2024 - January
  • 2023 - December
  • 2023 - November
  • 2023 - October
  • 2023 - September
  • 2023 - August
  • 2023 - July
  • 2023 - June
  • 2023 - May

Datasets Manual Subscriptions

 

 



Data Issues

A transparent, community reporting system. Report suspected issues with our cloud data to be investigated by the QuantConnect Team.

search icon search icon
  • Issues
  • Issue
  • Report Issue

Issue List

Loading...

  • Page of 1

Data Explorer Issues are a way to report and track data problems. They give the QuantConnect community a way to discuss potential solutions and be notified when they are resolved. If you think you have found a data problem please check the existing open and closed issues first; often another user may have already reported your problem.

Issue Type

Does your issue match any of the already listed issues?

Thank you for your contribution! Our team is currently working on resolving these issues, please subscribe to them to receive updates.










Datasets >

Binance Crypto Future Price Data

dataset-logo
dataset-logo

Binance Crypto Future Price Data

Dataset by CoinAPI

  • About
  • Documentation
  • Research
  • Examples
  • Licenses
  • CLI
  • Pricing

Introduction

The Binance Crypto Future Price Data by CoinAPI is for Crypto-currency futures price and volume data points. The data covers 421 Cryptocurrency pairs, starts in August 2020, and is delivered on any frequency from tick to daily. This dataset is created by monitoring the trading activity on Binance.

The Binance Crypto Future Margin Rate Data dataset provides margin interest data to model margin costs.

About the Provider

CoinAPI was founded by Artur Pietrzyk in 2016 with the goal of providing real-time and historical cryptocurrency market data, collected from hundreds of exchanges. CoinAPI provides access to Cryptocurrencies for traders, market makers, and developers building third-party applications.

Getting Started

The following snippet demonstrates how to request data from the Binance Crypto Future Price dataset:

Select Language:
def initialize(self) -> None:
    self.set_brokerage_model(BrokerageName.BINANCE_FUTURES, AccountType.MARGIN)
    self.set_brokerage_model(BrokerageName.BINANCE_COIN_FUTURES, AccountType.MARGIN)

    self.crypto_future_symbol = self.add_crypto_future("BTCBUSD", Resolution.MINUTE).symbol
private Symbol _cryptoFutureSymbol;

public override void Initialize
{
    SetBrokerageModel(BrokerageName.BinanceFutures, AccountType.Margin);
    SetBrokerageModel(BrokerageName.BinanceCoinFutures, AccountType.Margin);

    // perpetual futures does not have a filter function
    _cryptoFutureSymbol = AddCryptoFuture("BTCBUSD", Resolution.Minute).Symbol;
}

Data Summary

The following table describes the dataset properties:

Property Value
Start Date August 2020
Asset Coverage 421 Crypto Futures Pairs
Data Density Dense
Resolution Tick, Second, Minute, Hourly, & Daily
Timezone UTC
Market Hours Always Open

Example Applications

The Binance Crypto Future Price dataset enables you to accurately design strategies for Cryptocurrencies with term structure. Examples include the following strategies:

  • Horizontal/Diagonal arbitrage with the underlying cryptocurrencies
  • Trade Contango/Backwardation predictions
  • Hedge for illiquid cryptocurrencies

For more example algorithms, see Examples.

Data Point Attributes

The Binance Crypto Future Price dataset provides TradeBar, QuoteBar, and Tick objects.

TradeBar Attributes

TradeBar objects have the following attributes:

TradeBar
    Volume:
  • volume: decimal
  • Opening price of the bar: Defined as the price at the start of the time period.
  • open: decimal
  • High price of the TradeBar during the time period.
  • high: decimal
  • Low price of the TradeBar during the time period.
  • low: decimal
  • Closing price of the TradeBar. Defined as the price at Start Time + TimeSpan.
  • close: decimal
  • The closing time of this bar, computed via the Time and Period
  • end_time: DateTime
  • The period of this trade bar, (second, minute, daily, ect...)
  • period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal
    Volume:
  • Volume: decimal
  • Opening price of the bar: Defined as the price at the start of the time period.
  • Open: decimal
  • High price of the TradeBar during the time period.
  • High: decimal
  • Low price of the TradeBar during the time period.
  • Low: decimal
  • Closing price of the TradeBar. Defined as the price at Start Time + TimeSpan.
  • Close: decimal
  • The closing time of this bar, computed via the Time and Period
  • EndTime: DateTime
  • The period of this trade bar, (second, minute, daily, ect...)
  • Period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • DataType: MarketDataType
  • True if this is a fill forward piece of data
  • IsFillForward: bool
  • Current time marker of this data packet.
  • Time: DateTime
  • Symbol representation for underlying Security
  • Symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • Value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • Price: decimal

QuoteBar Attributes

QuoteBar objects have the following attributes:

QuoteBar
    Average bid size
  • last_bid_size: decimal
  • Average ask size
  • last_ask_size: decimal
  • Bid OHLC
  • bid: Bar
  • Ask OHLC
  • ask: Bar
  • Opening price of the bar: Defined as the price at the start of the time period.
  • open: decimal
  • High price of the QuoteBar during the time period.
  • high: decimal
  • Low price of the QuoteBar during the time period.
  • low: decimal
  • Closing price of the QuoteBar. Defined as the price at Start Time + TimeSpan.
  • close: decimal
  • The closing time of this bar, computed via the Time and Period
  • end_time: DateTime
  • The period of this quote bar, (second, minute, daily, ect...)
  • period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal
    Average bid size
  • LastBidSize: decimal
  • Average ask size
  • LastAskSize: decimal
  • Bid OHLC
  • Bid: Bar
  • Ask OHLC
  • Ask: Bar
  • Opening price of the bar: Defined as the price at the start of the time period.
  • Open: decimal
  • High price of the QuoteBar during the time period.
  • High: decimal
  • Low price of the QuoteBar during the time period.
  • Low: decimal
  • Closing price of the QuoteBar. Defined as the price at Start Time + TimeSpan.
  • Close: decimal
  • The closing time of this bar, computed via the Time and Period
  • EndTime: DateTime
  • The period of this quote bar, (second, minute, daily, ect...)
  • Period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • DataType: MarketDataType
  • True if this is a fill forward piece of data
  • IsFillForward: bool
  • Current time marker of this data packet.
  • Time: DateTime
  • Symbol representation for underlying Security
  • Symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • Value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • Price: decimal

Tick Attributes

Tick objects have the following attributes:

Tick
    Type of the Tick: Trade or Quote.
  • tick_type: TickType
  • Quantity exchanged in a trade.
  • quantity: decimal
  • Exchange code this tick came from QuantConnect.Exchanges
  • exchange_code: string
  • Exchange name this tick came from QuantConnect.Exchanges
  • exchange: string
  • Sale condition for the tick.
  • sale_condition: string
  • For performance parsed sale condition for the tick.
  • parsed_sale_condition: UInt32
  • Bool whether this is a suspicious tick
  • suspicious: bool
  • Bid Price for Tick
  • bid_price: decimal
  • Asking price for the Tick quote.
  • ask_price: decimal
  • Alias for "Value" - the last sale for this asset.
  • last_price: decimal
  • Size of bid quote.
  • bid_size: decimal
  • Size of ask quote.
  • ask_size: decimal
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • The end time of this data. Some data covers spans (trade bars) and as such we want to know the entire time span covered
  • end_time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal
    Type of the Tick: Trade or Quote.
  • TickType: TickType
  • Quantity exchanged in a trade.
  • Quantity: decimal
  • Exchange code this tick came from QuantConnect.Exchanges
  • ExchangeCode: string
  • Exchange name this tick came from QuantConnect.Exchanges
  • Exchange: string
  • Sale condition for the tick.
  • SaleCondition: string
  • For performance parsed sale condition for the tick.
  • ParsedSaleCondition: UInt32
  • Bool whether this is a suspicious tick
  • Suspicious: bool
  • Bid Price for Tick
  • BidPrice: decimal
  • Asking price for the Tick quote.
  • AskPrice: decimal
  • Alias for "Value" - the last sale for this asset.
  • LastPrice: decimal
  • Size of bid quote.
  • BidSize: decimal
  • Size of ask quote.
  • AskSize: decimal
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • DataType: MarketDataType
  • True if this is a fill forward piece of data
  • IsFillForward: bool
  • Current time marker of this data packet.
  • Time: DateTime
  • The end time of this data. Some data covers spans (trade bars) and as such we want to know the entire time span covered
  • EndTime: DateTime
  • Symbol representation for underlying Security
  • Symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • Value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • Price: decimal

Supported Assets

The following table shows the available Crypto Future pairs:

Pairs Available (421)
1000BONKUSDC1000BONKUSDT1000FLOKIUSDT1000LUNCBUSD1000LUNCUSDT1000PEPEUSDC
1000PEPEUSDT1000RATSUSDT1000SATSUSDT1000SHIBBUSD1000SHIBUSDC1000SHIBUSDT
1000XECUSDT1INCHUSDTAAVEUSDAAVEUSDTACEUSDTACHUSDT
ADABUSDADAUSDADAUSDTAEVOUSDTAGIXBUSDAGIXUSDT
AGLDUSDTAIUSDTALGOUSDALGOUSDTALICEUSDTALPACAUSDT
ALPHAUSDTALTUSDTAMBBUSDAMBUSDTANCBUSDANKRUSDT
ANTUSDTAPEBUSDAPEUSDAPEUSDTAPI3USDTAPTBUSD
APTUSDAPTUSDTARBUSDCARBUSDTARKMUSDTARKUSDT
ARPAUSDTARUSDTASTRUSDTATAUSDTATOMUSDATOMUSDT
AUCTIONBUSDAUCTIONUSDTAUDIOUSDTAVAXBUSDAVAXUSDAVAXUSDC
AVAXUSDTAXLUSDTAXSUSDAXSUSDTBADGERUSDTBAKEUSDT
BALUSDTBANANAUSDTBANDUSDTBATUSDTBBUSDTBCHUSD
BCHUSDCBCHUSDTBEAMXUSDTBELUSDTBICOUSDTBIGTIMEUSDT
BLUEBIRDUSDTBLURUSDTBLZUSDTBNBBUSDBNBUSDBNBUSDC
BNBUSDTBNTUSDTBNXUSDTBOMEUSDCBOMEUSDTBONDUSDT
BRETTUSDTBSVUSDTBTCBUSDBTCDOMUSDTBTCUSDBTCUSDC
BTCUSDTBTSUSDTC98USDTCAKEUSDTCELOUSDTCELRUSDT
CFXUSDTCHESSUSDTCHRUSDTCHZUSDCHZUSDTCKBUSDT
COCOSUSDTCOMBOUSDTCOMPUSDTCOTIUSDTCRVUSDCCRVUSDT
CTKUSDTCTSIUSDTCVCUSDTCVXBUSDCVXUSDTCYBERUSDT
DARUSDTDASHUSDTDEFIUSDTDENTUSDTDGBUSDTDODOBUSD
DODOXUSDTDOGEBUSDDOGEUSDDOGEUSDCDOGEUSDTDOGSUSDT
DOTBUSDDOTUSDDOTUSDTDUSKUSDTDYDXUSDTDYMUSDT
EDUUSDTEGLDUSDEGLDUSDTENAUSDCENAUSDTENJUSDT
ENSUSDENSUSDTEOSUSDEOSUSDTETCBUSDETCUSD
ETCUSDTETHBTCETHBUSDETHFIUSDCETHFIUSDTETHUSD
ETHUSDCETHUSDTETHWUSDTFETUSDTFILBUSDFILUSD
FILUSDCFILUSDTFLMUSDTFLOWUSDTFOOTBALLUSDTFRONTUSDT
FTMBUSDFTMUSDFTMUSDTFTTBUSDFTTUSDTFXSUSDT
GALABUSDGALAUSDGALAUSDTGALBUSDGALUSDTGASUSDT
GLMRUSDTGLMUSDTGMTBUSDGMTUSDGMTUSDTGMXUSDT
GRTUSDTGTCUSDTGUSDTHBARUSDTHFTUSDTHIFIUSDT
HIGHUSDTHNTUSDTHOOKUSDTHOTUSDTICPBUSDICPUSDT
ICXUSDICXUSDTIDEXUSDTIDUSDTILVUSDTIMXUSDT
INJUSDTIOSTUSDTIOTAUSDTIOTXUSDTIOUSDTJASMYUSDT
JOEUSDTJTOUSDTJUPUSDTKASUSDTKAVAUSDTKEYUSDT
KLAYUSDTKNCUSDKNCUSDTKSMUSDTLDOBUSDLDOUSDT
LEVERBUSDLEVERUSDTLINAUSDTLINKBUSDLINKUSDLINKUSDC
LINKUSDTLISTAUSDTLITUSDTLOOMUSDTLPTUSDTLQTYUSDT
LRCUSDTLSKUSDTLTCBUSDLTCUSDLTCUSDCLTCUSDT
LUNA2BUSDLUNA2USDTMAGICUSDTMANAUSDMANAUSDTMANTAUSDT
MASKUSDTMATICBUSDMATICUSDMATICUSDCMATICUSDTMAVIAUSDT
MAVUSDTMBLUSDTMBOXUSDTMDTUSDTMEMEUSDTMETISUSDT
MEWUSDTMINAUSDTMKRUSDTMOVRUSDTMTLUSDTMYROUSDT
NEARBUSDNEARUSDNEARUSDCNEARUSDTNEOUSDCNEOUSDT
NFPUSDTNKNUSDTNMRUSDTNOTUSDTNTRNUSDTNULSUSDT
OCEANUSDTOGNUSDTOMGUSDTOMNIUSDTOMUSDTONDOUSDT
ONEUSDTONGUSDTONTUSDTOPUSDOPUSDTORBSUSDT
ORDIUSDCORDIUSDTOXTUSDTPENDLEUSDTPEOPLEUSDTPERPUSDT
PHBBUSDPHBUSDTPIXELUSDTPOLYXUSDTPOPCATUSDTPORTALUSDT
POWRUSDTPYTHUSDTQNTUSDTQTUMUSDTRADUSDTRAREUSDT
RAYUSDTRDNTUSDTREEFUSDTRENDERUSDTRENUSDTREZUSDT
RIFUSDTRLCUSDTRNDRUSDTRONINUSDTROSEUSDROSEUSDT
RSRUSDTRUNEUSDRUNEUSDTRVNUSDTSAGAUSDTSANDBUSD
SANDUSDSANDUSDTSCUSDTSEIUSDTSFPUSDTSKLUSDT
SLPUSDTSNTUSDTSNXUSDTSOLBUSDSOLUSDSOLUSDC
SOLUSDTSPELLUSDTSRMUSDTSSVUSDTSTEEMUSDTSTGUSDT
STMXUSDTSTORJUSDTSTPTUSDTSTRAXUSDTSTRKUSDTSTXUSDT
SUIUSDCSUIUSDTSUNUSDTSUPERUSDTSUSHIUSDTSXPUSDT
SYNUSDTSYSUSDTTAOUSDTTHETAUSDTHETAUSDTTIAUSDC
TIAUSDTTLMBUSDTLMUSDTTNSRUSDTTOKENUSDTTOMOUSDT
TONUSDTTRBUSDTTRUUSDTTRXBUSDTRXUSDTRXUSDT
TURBOUSDTTUSDTTWTUSDTUMAUSDTUNFIUSDTUNIBUSD
UNIUSDUNIUSDTUSDCUSDTUSTCUSDTVANRYUSDTVETUSD
VETUSDTVIDTUSDTVOXELUSDTWAVESBUSDWAVESUSDTWAXPUSDT
WIFUSDWIFUSDCWIFUSDTWLDUSDCWLDUSDTWOOUSDT
WUSDTXAIUSDTXEMUSDTXLMUSDXLMUSDTXMRUSD
XMRUSDTXRPBUSDXRPUSDXRPUSDCXRPUSDTXTZUSD
XTZUSDTXVGUSDTXVSUSDTYFIUSDTYGGUSDTZECUSDT
ZENUSDTZETAUSDTZILUSDZILUSDTZKUSDTZROUSDT
ZRXUSDT

 


Requesting Data

To add Binance Crypto Future Price data to your algorithm, call the AddCryptoFutureadd_crypto_future method. Save a reference to the Crypto Future Symbol so you can access the data later in your algorithm.

Select Language:
class CoinAPIDataAlgorithm(QCAlgorithm):

    def initialize(self) -> None:
        self.set_start_date(2020, 6, 1)
        self.set_end_date(2021, 6, 1)

        # Set Account Currency to Binance Stable Coin for USD
        self.set_account_currency("BUSD")
        self.set_cash(100000)

        self.set_brokerage_model(BrokerageName.BINANCE_FUTURES, AccountType.MARGIN)
        self.set_brokerage_model(BrokerageName.BINANCE_COIN_FUTURES, AccountType.MARGIN)
        
        crypto_future = self.add_crypto_future("BTCBUSD", Resolution.MINUTE)
        # perpetual futures does not have a filter function
        self.btcbusd = crypto_future.symbol
namespace QuantConnect
{
    public class CoinAPIDataAlgorithm : QCAlgorithm
    {
        private Symbol _symbol ;
        
        public override void Initialize()
        {
            SetStartDate(2020, 6, 1);
            SetEndDate(2021, 6, 1);

            // Set Account Currency to Binance Stable Coin for USD
            SetAccountCurrency("BUSD");
            SetCash(100000);

            SetBrokerageModel(BrokerageName.BinanceFutures, AccountType.Margin);
            SetBrokerageModel(BrokerageName.BinanceCoinFutures, AccountType.Margin);
            
            var cryptoFuture = AddCryptoFuture("BTCBUSD", Resolution.Minute);
            // perpetual futures does not have a filter function
            _symbol = cryptoFuture.Symbol;
        }
    }
}

For more information about creating Crypto Future subscriptions, see Requesting Data.

Accessing Data

To get the current Binance Crypto Future Price data, index the Barsbars, QuoteBarsquote_bars, or Ticksticks properties of the current Slice with the Crypto Future Symbol. Slice objects deliver unique events to your algorithm as they happen, but the Slice may not contain data for your security at every time step. To avoid issues, check if the Slice contains the data you want before you index it.

Select Language:
def on_data(self, slice: Slice) -> None:
    if self.btcbusd in slice.bars:
        trade_bar = slice.bars[self.btcbusd]
        self.log(f"{self.btcbusd} close at {slice.time}: {trade_bar.close}")

    if self.btcbusd in slice.quote_bars:
        quote_bar = slice.quote_bars[self.btcbusd]
        self.log(f"{self.btcbusd} bid at {slice.time}: {quote_bar.bid.close}")

    if self.btcbusd in slice.ticks:
        ticks = slice.ticks[self.btcbusd]
        for tick in ticks:
            self.log(f"{self.btcbusd} price at {slice.time}: {tick.price}")
public override void OnData(Slice slice)
{
    if (slice.Bars.ContainsKey(_symbol))
    {
        var tradeBar = slice.Bars[_symbol];
        Log($"{_symbol} price at {slice.Time}: {tradeBar.Close}");
    }

    if (slice.QuoteBars.ContainsKey(_symbol))
    {
        var quoteBar = slice.QuoteBars[_symbol];
        Log($"{_symbol} bid at {slice.Time}: {quoteBar.Bid.Close}");
    }

    if (slice.Ticks.ContainsKey(_symbol))
    {
        var ticks = slice.Ticks[_symbol];
        foreach (var tick in ticks)
        {
            Log($"{_symbol} price at {slice.Time}: {tick.Price}");
        }
    }
}

You can also iterate through all of the data objects in the current Slice.

Select Language:
def on_data(self, slice: Slice) -> None:
    for symbol, trade_bar in slice.bars.items():
        self.log(f"{symbol} close at {slice.time}: {trade_bar.close}")

    for symbol, quote_bar in slice.quote_bars.items():
        self.log(f"{symbol} bid at {slice.time}: {quote_bar.bid.close}")

    for symbol, ticks in slice.ticks.items():
        for tick in ticks:
            self.log(f"{symbol} price at {slice.time}: {tick.price}")
public override void OnData(Slice slice)
{
    foreach (var kvp in slice.Bars)
    {
        var symbol = kvp.Key;
        var tradeBar = kvp.Value;
        Log($"{symbol} price at {slice.Time}: {tradeBar.Close}");
    }

    foreach (var kvp in slice.QuoteBars)
    {
        var symbol = kvp.Key;
        var quoteBar = kvp.Value;
        Log($"{symbol} bid at {slice.Time}: {quoteBar.Bid.Close}");
    }

    foreach (var kvp in slice.Ticks)
    {
        var symbol = kvp.Key;
        var ticks = kvp.Value;
        foreach (var tick in ticks)
        {
            Log($"{symbol} price at {slice.Time}: {tick.Price}");
        }
    }
}

For more information about accessing Crypto Future data, see Handling Data.

Historical Data

To get historical Binance Crypto Future Price data, call the Historyhistory method with the Crypto Future Symbol. If there is no data in the period you request, the history result is empty.

Select Language:
# DataFrame
history_df = self.history(self.btcbusd, 100, Resolution.DAILY)

# TradeBar objects
history_trade_bars = self.history[TradeBar](self.btcbusd, 100, Resolution.MINUTE)

# QuoteBar objects
history_quote_bars = self.history[QuoteBar](self.btcbusd, 100, Resolution.MINUTE)

# Tick objects
history_ticks = self.history[Tick](self.btcbusd, timedelta(seconds=10), Resolution.TICK)
// TradeBar objects 
var historyTradeBars = History(_symbol, 100, Resolution.Daily);

// QuoteBar objects 
var historyQuoteBars = History<QuoteBar>(_symbol, 100, Resolution.Minute);

// Tick objects 
var historyTicks = History<Tick>(_symbol, TimeSpan.FromSeconds(10), Resolution.Tick);

For more information about historical data, see History Requests.

Remove Subscriptions

To unsubscribe from a Crypto Future contract that you added with the AddCryptoFutureadd_crypto_future method, call the RemoveSecurityremove_security method.

Select Language:
self.remove_security(self.btcbusd)
RemoveSecurity(_symbol);

The RemoveSecurityremove_security method cancels your open orders for the security and liquidates your Crypto Future holdings.

Data Point Attributes

The Binance Crypto Future Price dataset provides TradeBar, QuoteBar, and Tick objects.

TradeBar Attributes

TradeBar objects have the following attributes:

TradeBar
    Volume:
  • volume: decimal
  • Opening price of the bar: Defined as the price at the start of the time period.
  • open: decimal
  • High price of the TradeBar during the time period.
  • high: decimal
  • Low price of the TradeBar during the time period.
  • low: decimal
  • Closing price of the TradeBar. Defined as the price at Start Time + TimeSpan.
  • close: decimal
  • The closing time of this bar, computed via the Time and Period
  • end_time: DateTime
  • The period of this trade bar, (second, minute, daily, ect...)
  • period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal
    Volume:
  • Volume: decimal
  • Opening price of the bar: Defined as the price at the start of the time period.
  • Open: decimal
  • High price of the TradeBar during the time period.
  • High: decimal
  • Low price of the TradeBar during the time period.
  • Low: decimal
  • Closing price of the TradeBar. Defined as the price at Start Time + TimeSpan.
  • Close: decimal
  • The closing time of this bar, computed via the Time and Period
  • EndTime: DateTime
  • The period of this trade bar, (second, minute, daily, ect...)
  • Period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • DataType: MarketDataType
  • True if this is a fill forward piece of data
  • IsFillForward: bool
  • Current time marker of this data packet.
  • Time: DateTime
  • Symbol representation for underlying Security
  • Symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • Value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • Price: decimal

QuoteBar Attributes

QuoteBar objects have the following attributes:

QuoteBar
    Average bid size
  • last_bid_size: decimal
  • Average ask size
  • last_ask_size: decimal
  • Bid OHLC
  • bid: Bar
  • Ask OHLC
  • ask: Bar
  • Opening price of the bar: Defined as the price at the start of the time period.
  • open: decimal
  • High price of the QuoteBar during the time period.
  • high: decimal
  • Low price of the QuoteBar during the time period.
  • low: decimal
  • Closing price of the QuoteBar. Defined as the price at Start Time + TimeSpan.
  • close: decimal
  • The closing time of this bar, computed via the Time and Period
  • end_time: DateTime
  • The period of this quote bar, (second, minute, daily, ect...)
  • period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal
    Average bid size
  • LastBidSize: decimal
  • Average ask size
  • LastAskSize: decimal
  • Bid OHLC
  • Bid: Bar
  • Ask OHLC
  • Ask: Bar
  • Opening price of the bar: Defined as the price at the start of the time period.
  • Open: decimal
  • High price of the QuoteBar during the time period.
  • High: decimal
  • Low price of the QuoteBar during the time period.
  • Low: decimal
  • Closing price of the QuoteBar. Defined as the price at Start Time + TimeSpan.
  • Close: decimal
  • The closing time of this bar, computed via the Time and Period
  • EndTime: DateTime
  • The period of this quote bar, (second, minute, daily, ect...)
  • Period: TimeSpan
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • DataType: MarketDataType
  • True if this is a fill forward piece of data
  • IsFillForward: bool
  • Current time marker of this data packet.
  • Time: DateTime
  • Symbol representation for underlying Security
  • Symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • Value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • Price: decimal

Tick Attributes

Tick objects have the following attributes:

Tick
    Type of the Tick: Trade or Quote.
  • tick_type: TickType
  • Quantity exchanged in a trade.
  • quantity: decimal
  • Exchange code this tick came from QuantConnect.Exchanges
  • exchange_code: string
  • Exchange name this tick came from QuantConnect.Exchanges
  • exchange: string
  • Sale condition for the tick.
  • sale_condition: string
  • For performance parsed sale condition for the tick.
  • parsed_sale_condition: UInt32
  • Bool whether this is a suspicious tick
  • suspicious: bool
  • Bid Price for Tick
  • bid_price: decimal
  • Asking price for the Tick quote.
  • ask_price: decimal
  • Alias for "Value" - the last sale for this asset.
  • last_price: decimal
  • Size of bid quote.
  • bid_size: decimal
  • Size of ask quote.
  • ask_size: decimal
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • The end time of this data. Some data covers spans (trade bars) and as such we want to know the entire time span covered
  • end_time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal
    Type of the Tick: Trade or Quote.
  • TickType: TickType
  • Quantity exchanged in a trade.
  • Quantity: decimal
  • Exchange code this tick came from QuantConnect.Exchanges
  • ExchangeCode: string
  • Exchange name this tick came from QuantConnect.Exchanges
  • Exchange: string
  • Sale condition for the tick.
  • SaleCondition: string
  • For performance parsed sale condition for the tick.
  • ParsedSaleCondition: UInt32
  • Bool whether this is a suspicious tick
  • Suspicious: bool
  • Bid Price for Tick
  • BidPrice: decimal
  • Asking price for the Tick quote.
  • AskPrice: decimal
  • Alias for "Value" - the last sale for this asset.
  • LastPrice: decimal
  • Size of bid quote.
  • BidSize: decimal
  • Size of ask quote.
  • AskSize: decimal
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • DataType: MarketDataType
  • True if this is a fill forward piece of data
  • IsFillForward: bool
  • Current time marker of this data packet.
  • Time: DateTime
  • The end time of this data. Some data covers spans (trade bars) and as such we want to know the entire time span covered
  • EndTime: DateTime
  • Symbol representation for underlying Security
  • Symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • Value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • Price: decimal

 


Classic Algorithm Example

The following example algorithm buys BTCBUSD perpetual future contract if the last day's close price was close to ask close price than bid close price, sells short of that in opposite, through the Binance exchange:

Select Language:
from AlgorithmImports import *

class BinanceCryptoFutureDataAlgorithm(QCAlgorithm):

    def initialize(self) -> None:
        self.set_start_date(2022, 10, 1)
        self.set_end_date(2022, 10, 10)
        # Set Account Currency to Binance Stable Coin, since USD-BUSD will not auto-convert and USD cannot be used to trade
        self.set_cash("BUSD", 100000)
        # Binance Futures Exchange accepts both Cash and Margin account types, select the one you need for the best reality modeling.
        self.set_brokerage_model(BrokerageName.BINANCE_FUTURES, AccountType.MARGIN)

        # Requesting data, we only trade on BTCBUSD Future in Binance Future exchange
        crypto_future = self.add_crypto_future("BTCBUSD", Resolution.DAILY)
        # perpetual futures does not have a filter function
        self.btcbusd = crypto_future.symbol

        # Historical data
        history = self.history(self.btcbusd, 10, Resolution.DAILY)
        self.debug(f"We got {len(history)} from our history request for {self.btcbusd}")

    def on_data(self, slice: Slice) -> None:
        # Trade only based on updated price data
        if not slice.bars.contains_key(self.btcbusd) or not slice.quote_bars.contains_key(self.btcbusd):
            return
        
        quote = slice.quote_bars[self.btcbusd]
        price = slice.bars[self.btcbusd].price

        # Scalp-trade the bid-ask spread based on the supply-demand strength
        if price - quote.bid.close > quote.ask.close - price:
            self.set_holdings(self.btcbusd, -1)
        else:
            self.set_holdings(self.btcbusd, 1)
using System.Linq;
using QuantConnect.Data;
using QuantConnect.Brokerages;

namespace QuantConnect.Algorithm.CSharp
{
    public class BinanceCryptoFutureDataAlgorithm : QCAlgorithm
    {
        public Symbol _symbol;

        public override void Initialize()
        {
            SetStartDate(2022, 1, 1);
            SetEndDate(2023, 1, 1);
            // Set Account Currency to Binance Stable Coin, since USD-BUSD will not auto-convert and USD cannot be used to trade
            SetCash("BUSD", 100000);
            // Binance Futures Exchange accepts both Cash and Margin account types, select the one you need for the best reality modeling.
            SetBrokerageModel(BrokerageName.BinanceFutures, AccountType.Margin);

            // Requesting data, we only trade on BTCBUSD Future in Binance Future exchange
            var cryptoFuture = AddCryptoFuture("BTCBUSD", Resolution.Daily);
            // perpetual futures does not have a filter function
            _symbol = cryptoFuture.Symbol;

            // Historical data
            var history = History(_symbol, 10, Resolution.Daily);
            Debug($"We got {history.Count()} from our history request for {_symbol}");
        }

        public override void OnData(Slice slice)
        {
            // Trade only based on updated price data
            if (!slice.Bars.ContainsKey(_symbol) || !slice.QuoteBars.TryGet(_symbol, out var quote))
            {
                return;
            }
            var price = slice.Bars[_symbol].Price;
            
            // Scalp-trade the bid-ask spread based on the supply-demand strength
            if (price - quote.Bid.Close > quote.Ask.Close - price)
            {
                SetHoldings(_symbol, -1m);
            }
            else
            {
                SetHoldings(_symbol, 1m);
            }
        }
    }
}

Framework Algorithm Example

The following example algorithm hold a 100% long BTCBUSD future portfolio if the last day's close price was close to ask close price than bid close price, while hold short of that in opposite, through the Binance exchange using the algorithm framework implementation:

Select Language:
from AlgorithmImports import *

class BinanceCryptoFutureDataAlgorithm(QCAlgorithm):

    def initialize(self) -> None:
        self.set_start_date(2022, 10, 1)
        self.set_end_date(2022, 10, 10)
        # Set Account Currency to Binance Stable Coin, since USD-BUSD will not auto-convert and USD cannot be used to trade
        self.set_cash("BUSD", 100000)
        # Binance Futures Exchange accepts both Cash and Margin account types, select the one you need for the best reality modeling.
        self.set_brokerage_model(BrokerageName.BINANCE_FUTURES, AccountType.MARGIN)

        self.universe_settings.resolution = Resolution.DAILY
        self.universe_settings.leverage = 2
        # We only trade on BTCBUSD Future in Binance Future exchange
        symbols = Symbol.create("BTCBUSD", SecurityType.CRYPTO_FUTURE, Market.BINANCE)
        self.add_universe_selection(ManualUniverseSelectionModel(symbols))
        # Custom alpha model to emit insights based on the Crypto Future price data
        self.add_alpha(CryptoFutureAlphaModel())
        # Equally invest to evenly dissipate the capital concentration risk of inidividual crypto pair
        self.set_portfolio_construction(EqualWeightingPortfolioConstructionModel())
        self.set_execution(ImmediateExecutionModel())

class CryptoFutureAlphaModel(AlphaModel):

    def __init__(self) -> None:
        self.symbols = []

    def update(self, algorithm: QCAlgorithm, slice: Slice) -> List[Insight]:
        insights = []

        for symbol in self.symbols:
            # Trade only based on updated price data
            if not slice.bars.contains_key(symbol) or not slice.quote_bars.contains_key(symbol):
                continue

            quote = slice.quote_bars[symbol]
            price = slice.bars[symbol].price
            
            # Scalp-trade the bid-ask spread based on the supply-demand strength
            if price - quote.bid.close > quote.ask.close - price:
                insights.append(Insight.price(symbol, timedelta(1), InsightDirection.DOWN))
            else:
                insights.append(Insight.price(symbol, timedelta(1), InsightDirection.UP))
            
        return insights

    def on_securities_changed(self, algorithm: QCAlgorithm, changes: SecurityChanges) -> None:
        for security in changes.added_securities:
            symbol = security.symbol
            self.symbols.append(symbol)

            # Historical data
            history = algorithm.history(symbol, 10, Resolution.DAILY)
            algorithm.debug(f"We got {len(history)} from our history request for {symbol}")

        for security in changes.removed_securities:
            symbol = security.symbol
            if symbol in self.symbols:
                self.symbols.remove(symbol)
using System;
using System.Collections.Generic;
using System.Linq;
using QuantConnect.Brokerages;
using QuantConnect.Data;
using QuantConnect.Data.UniverseSelection;
using QuantConnect.Algorithm.Framework.Selection;
using QuantConnect.Algorithm.Framework.Alphas;
using QuantConnect.Algorithm.Framework.Portfolio;
using QuantConnect.Algorithm.Framework.Execution;

namespace QuantConnect.Algorithm.CSharp
{
    public class BinanceCryptoFutureDataAlgorithm : QCAlgorithm
    {
        public Symbol _symbol;

        public override void Initialize()
        {
            SetStartDate(2022, 10, 1);
            SetEndDate(2022, 10, 10);
            // Set Account Currency to Binance Stable Coin, since USD-BUSD will not auto-convert and USD cannot be used to trade
            SetCash("BUSD", 100000);
            // Binance Futures Exchange accepts both Cash and Margin account types, select the one you need for the best reality modeling.
            SetBrokerageModel(BrokerageName.BinanceFutures, AccountType.Margin);

            UniverseSettings.Resolution = Resolution.Daily;
            UniverseSettings.Leverage = 2;
            // We only trade on BTCBUSD Future in Binance Future exchange
            var symbols = new List{
                QuantConnect.Symbol.Create("BTCBUSD", SecurityType.CryptoFuture, Market.Binance)
            };
            AddUniverseSelection(new ManualUniverseSelectionModel(symbols));
            // Custom alpha model to emit insights based on the Crypto Future price data
            AddAlpha(new CryptoFutureAlphaModel());
            // Equally invest to evenly dissipate the capital concentration risk of inidividual crypto pair
            SetPortfolioConstruction(new EqualWeightingPortfolioConstructionModel());
            SetExecution(new ImmediateExecutionModel());
        }
    }

    public class CryptoFutureAlphaModel : AlphaModel
    {
        private List _symbols = new();

        public override List Update(QCAlgorithm algorithm, Slice slice)
        {
            var insights = new List();

            foreach (var symbol in _symbols)
            {
                // Trade only based on updated price data
                if (!slice.Bars.ContainsKey(symbol) || !slice.QuoteBars.TryGet(symbol, out var quote))
                {
                    continue;
                }
                var price = slice.Bars[symbol].Price;
                
                // Scalp-trade the bid-ask spread based on the supply-demand strength
                if (price - quote.Bid.Close > quote.Ask.Close - price)
                {
                    insights.Add(
                        Insight.Price(symbol, TimeSpan.FromDays(1), InsightDirection.Down)
                    );
                }
                else
                {
                    insights.Add(
                        Insight.Price(symbol, TimeSpan.FromDays(1), InsightDirection.Up)
                    );
                }
            }
            
            return insights;
        }

        public override void OnSecuritiesChanged(QCAlgorithm algorithm, SecurityChanges changes)
        {
            foreach (var security in changes.AddedSecurities)
            {
                var symbol = security.Symbol;
                _symbols.Add(symbol);

                // Historical data
                var history = algorithm.History(symbol, 10, Resolution.Daily);
                algorithm.Debug($"We got {history.Count()} from our history request for {symbol}");
            }

            foreach (var security in changes.RemovedSecurities)
            {
                _symbols.Remove(security.Symbol);
            }
        }
    }
}

 


Licensing Available

Cloud Usage

Cloud Usage

Binance Crypto Future Price Data is allowed to be used in the cloud for personal and commercial projects for free. The data is permissioned for use within the licensed organization only

Free | Documentation

Live trading license available

LEAN CLI Downloads Usage

Binance Crypto Future Price Data can be downloaded on premise with the LEAN CLI, for a charge per file downloaded. This download is for the licensed organization's internal LEAN use only and cannot be redistributed or converted in any format.

Starting at 5 QCC/file | Learn More


About Lean CLI

LEAN CLI is a cross-platform wrapper on the QuantConnect algorithmic trading engine called LEAN. The CLI makes using LEAN incredibly easy, reducing most of the pain points of developing and managing an algorithmic trading strategy to a few lines of bash.

Using the CLI you can download the same data QuantConnect hosts in the cloud for a small fee. These fees are per file downloaded, and are paid for in QuantConnect-Credits (QCC). We recommend purchasing credits to enable downloading.

CLI Command Generator

The CLI command generator is a helpful tool to generate a copy-paste command to download this dataset from the form below.

Select OS:
lean data download \
	--dataset "Binance Crypto Future Price Data" \
	--data-type "trade" \
	--ticker "BTCBUSD, ETHBUSD" \
	--resolution "second" \
	--start "20240510" \
	--end "20250510" 
lean data download `
	--dataset "Binance Crypto Future Price Data" `
	--data-type "trade" `
	--ticker "BTCBUSD, ETHBUSD" `
	--resolution "second" `
	--start "20240510" `
	--end "20250510" 

Pricing | Provider offers 6 licensing options edit edit

Pending

Cloud Access edit edit

edit edit

Free access to Binance Crypto Future price data from CoinApi via the QuantConnect Cloud platform for your backtesting and research.

  • Daily updates at 4am ET
  • No data maintenance

PRICE

Free

Documentation Subscribe cli button LEAN CLI Contact Us
Pending

Tick Download edit edit

edit edit

Crypto-futures Tick resolution archives in LEAN format for on premise backtesting and research. One file per ticker/day/brokerage

  • Ownership of the data
  • Data in LEAN format
  • Local compute resources

PRICE

100 QCC/file

Documentation Subscribe cli button LEAN CLI Contact Us
Pending

Second Download edit edit

edit edit

Crypto-futures Second resolution archives in LEAN format for on premise backtesting and research. One file per ticker/day/brokerage

  • Ownership of the data
  • Data in LEAN format
  • Local compute resources

PRICE

25 QCC/file

Documentation Subscribe cli button LEAN CLI Contact Us
Pending

Minute Download edit edit

edit edit

Crypto-futures Minute resolution archives in LEAN format for on premise backtesting and research. One file per ticker/day/brokerage

  • Ownership of the data
  • Data in LEAN format
  • Local compute resources

PRICE

5 QCC/file

Documentation Subscribe cli button LEAN CLI Contact Us
Pending

Hour Download edit edit

edit edit

Crypto-futures Hour resolution archives in LEAN format for on premise backtesting and research. One file per ticker/brokerage.

  • Ownership of the data
  • Data in LEAN format
  • Local compute resources

PRICE

400 QCC/file

Documentation Subscribe cli button LEAN CLI Contact Us
Pending

Daily Download edit edit

edit edit

Crypto-futures Daily resolution archives in LEAN format for on premise backtesting and research. One file per ticker/brokerage.

  • Ownership of the data
  • Data in LEAN format
  • Local compute resources

PRICE

100 QCC/file

Documentation Subscribe cli button LEAN CLI Contact Us

User Reviews

What people are saying about this

No Reviews Yet

This product has not received any reviews yet, be the first to post one!

Write a Review

Rate the Module:

Hover over the stars to rate the module
Paste the media URL in the input.





Please sign in to post a review

Pricing

Provider offers 6 licensing options

View Pricing


Starting Date edit edit

  • August 2020

Coverage edit edit

  • 421 Crypto Future Pairs

Delivery Methods edit edit

  • Download
  • Cloud

About the Provider

  • Website edit edit
  • Contact the Provider

Data Status

Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.

search icon search icon

Dataset Status from to

No Runs

OK

Degraded

Failure

Admin

Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.

  • Add Dataset
  • Data Upload
  • Point Processor

Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum

Configuration Keys

Environment Variables

Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum

File Link

Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum

Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum

Upload Dataset

Upload a manually created tar or zip file to all cloud data systems.

Add a link and click the Sync Dataset button to upload the dataset

Upload Destinations

About Dataset Sync

The dataset synchronizer is an internal tool for the QuantConnect team to upload data to the cloud data storage environments. It supports TAR files which are extracted in the root directory of the cloud data environments.
Take extreme care to carefully structure your data TAR package with the same folders as the LEAN data folder. Ensure all folders and file names are lowercase as Linux is case-sensitive.

Support

Tickets and Seats

  • create new ticket create new ticket Create New Ticket
  • organization ticket organization ticket Organization Tickets 0
  • spport seat spport seat Support Seats

Support

Begin Your QuantConnect Journey

Algorithm Lab is your playground for developing and refining trading algorithms with QuantConnect. Utilize advanced tools, historical data, and robust backtesting to enhance your trading strategies. Transform your ideas into actionable insights and optimize your trading approach with ease.

Sign Up for Free

Already have an account Log In.

close close

How would you rate your experience on QuantConnect?

â­‘

â­‘

â­‘

â­‘

â­‘

Hover and click over the stars to rate us.

It looks like you are not fully satisfied with your experience on QuantConnect, please take a moment to let us know how we can improve our services for you:

trustpilot trustpilot

We are glad you're enjoying QuantConnect!

If you have a minute to spare, please leave us a review on Trustpilot.
Stories like yours help others see the full potential of QuantConnect.

Rate us on Trustpilot

Loading User Profile...

Please select one purchase option

Session Expired

Your session has expired. Please log in again.

Log In

  close-icon
switch organization switch organization Switch Organization
Organization
Type
Owner
Members
Preferred
switch organization switch organizationCreate Organization
Organization Name

update billing address update billing address Update Billing Information

Upgrade to Team plan or higher to enable custom invoicing

select icon select icon


Changes will be applied to future invoices.

Close modal Close modal
invite sent invite sent

Invitations Sent

Users will be able to join by following the link in the invitation email.

You’ve been invited by Jared Broad to join his G-Force Organization.
Would you like to accept the invitation?

Assign Seat
Close Widget Close Widget

Rename Encryption Key

Close Widget Close Widget

Delete Encryption Key

Are you sure you want to delete the encryption key "undefined"?

warning Caution: We will not be able to decrypt encrypted projects without the original key.

Close Widget Close Widget

Add Encryption Key

upload file icon upload file icon

Drag & Drop or

Keys are added to the local storage in your web browser and not uploaded to QuantConnect. To use an encrypted project on another computer you will need to bring a copy of the key.

Close modal Close modal
Authorize Decryption Authorize Decryption

Authorize

This project is encrypted using the key .

Close modal Close modal
Authorize Decryption Authorize Decryption

Authorize

This project will be encrypted using the key .