↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Data
  • Community
  • Algorithm Lab Lab Lab
  • Documentation Docs Docs
  • Sign In
Forum

    Platform

  • Alpha Market
  • Pricing
  • Datasets
  • Community
  • Algorithm Lab
  • Documentation

    SIGN IN

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

  • Sign up for Free

QuantConnect Community

trophy

trophy

Start New Discussion Sign up
Interesting | Newest | Lean | Data Issues | Integration Partners

New Sign up
No Results
  • «
  • 1
  • »
HI Interesting !
HI Newest !
HI Data Issues !

LEAN is the open source algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a global community of 80+ engineers and powers more than a dozen hedge funds today.

trophy

Alpha League Competition: $1,000 Weekly Prize Pool

Qualifying Alpha Streams Reentered Weekly Learn more

| Awards
Loading...
  • «
  • »
 Start New Discussion Sign up

Filter Discussion by Tags


Community Ambassadors

1st

Nico Xenox

Gold Ambassador

Earn free QuantConnect cloud credits by helping others, each week we airdrop credits to the most active community members.


231,864 Quants.

Become a Quant

Online Now

Our Code of Conduct

Stay Connected

Stay connected with all the latest updates with email alerts or joining our Discord server.

  Open Discord

profile

Answers

Answers

  Backtests

Backtests

  Comments

Comments

  Live Traded

Live Traded

 

 

 

Documentation discussion research/historical-data

Back

Started By:


Follow Discussion
Reward Discussion Awards
Permalink

QuantConnect Robot INVESTOR


 |   Reward Discussion
0
0
Update Backtest





The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.

  0  
13
Twitter Facebook LinkedIn Copy Link

QuantConnect Robot

Permalink

 | 
accepted answer

Accepted Answer

0
Update Backtest





  • Notebook

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.

0
Twitter Facebook LinkedIn Copy Link

Lexx7


1.3k Pro ,

I tried the below code and it ran successfully but returned an empty dataframe.

Can you please check this still works

es = qb.AddFuture("ES")
es.SetFilter(timedelta(0), timedelta(180))
future_history = qb.GetFutureHistory(es.Symbol, datetime(2017, 1, 11, 10, 10), datetime(2017, 1, 13, 12, 10))
future_history.GetAllData()

 

0

Jack Simonson


Pro ,

Hi,

We've just done an overhaul of our futures data and will have the Research Environment updated soon. Once this is done, this code should work fine, but if you continue to encounter issues with it in the next week, please let us know and we'll do our best to find a solution.

1

Ch9ki7


9 Pro ,

I want to evaluate some ideas on options. But I need the greeks, looks like we can not get them through `option_history.GetAllData()`. How can we get the greeks and IV?

0
Edited by Ch9ki7

Link Liang


6.1k Pro ,

Hi Ch9ki7,

In research environment, there is no direct access to those values, therefore you have to calculate on your own. However, we offer those values in backtesting terminal. Here is the usage of option data. Greeks and IV can be accessed as properties of OptionContract object.

Hope it helps!

0

Brian Weber


1.1k Pro ,

Hi Jack,

I tried the example code for retrieving historical futures data, but when I get all the data nothing prints. Is there a bug for historical futures data?

Thanks,

Brian

2

  • Notebook

Link Liang


6.1k Pro ,

Hi Brian,

Sorry about the inconvenience, we are aware of the bug and are working on addressing it for the community. Due to the current work in progress, we expect this will be resolved in about 1 week.

2

Brian Weber


1.1k Pro ,

Thank you, Link! No worries I check back in about a week to try the code again.

2

Islander


1.6k Pro ,
%matplotlib inline
# Imports
from clr import AddReference
AddReference("System")
AddReference("QuantConnect.Common")
AddReference("QuantConnect.Jupyter")
AddReference("QuantConnect.Indicators")
from System import *
from QuantConnect import *
from QuantConnect.Data.Custom import *
from QuantConnect.Data.Market import TradeBar, QuoteBar
from QuantConnect.Jupyter import *
from QuantConnect.Indicators import *
from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import pandas as pd

# Create an instance
qb = QuantBook()

# Select asset data
assets = ["SPY", "EURUSD", "BTCUSD", "GOOG", "ES", "XAUUSD"]

spy = qb.AddEquity("SPY") # add equity data
eur = qb.AddForex("EURUSD") # add forex data
btc = qb.AddCrypto("BTCUSD") # add crypto data
goog = qb.AddOption("GOOG") # add goog options
es = qb.AddFuture("ES") # add SP 500 futures
xau = qb.AddCfd("XAUUSD", Resolution.Minute, Market.Oanda)

# Gets historical data from the subscribed assets, the last 360 datapoints with daily resolution
h1 = qb.History(qb.Securities.Keys, 360, Resolution.Daily)

# Plot closing prices from "SPY"
for s in assets:
h1.loc[s]["close"].plot()

fails with error:

the label [GOOG] is not in the [index]

but I suppose that if I use SPY and XAUUSD only it fails as well.

Why is this happening?

0

Hao Bin Zhang


1.4k Pro ,

Islander I think it has to do with this line

h1 = qb.History(qb.Securities.Keys, 360, Resolution.Daily) 

I don't believe the research can handle that much data currently. 

0

Jared Broad


Pro ,

We're rebuilding research from scratch. It should be available by the end of next week.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Omegab


126 Pro ,

Hi Jared, is it possible to have Extended Market Stock data in the Research Environment as I tried to pass it to bo AddEquity and History functions to no avail?

0

Xin Wei


10.6k Pro ,

Hi Omegab,

Extended market hours data is available in the research environment. I've attached a Research Notebook to show how to implement it. Please check it out.

0

  • Notebook

Jack Simonson


Pro ,

Hi Mike,

This is a result of how we aggregate and timestamp daily data. It is timestamped at UTC 00:00 the day after it has happened -- i.e., all data from 2019-11-15 is aggregated and we create a Daily OHLCV with the timestamp 2019-11-16 00:00.

0

QuantConnect Robot INVESTOR

Permalink

 | 
0
Update Backtest







  • Notebook

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.

 0 
Twitter Facebook LinkedIn Copy Link
Loading...
  • 1
  • «
  • »

To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!

award-icon

What is an Award?

Back
 
 

Join QuantConnect for Free Sign Up

QuantConnect Logo

QuantConnect™ 2023. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Community
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Account
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 2,779
  • Star 7,233
QuantConnect Logo

QuantConnect™ 2023. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Community
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Account
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 2,779
  • Star 7,233