Comments (3)
It seems that there is some issue with the Yahoo Finance API within backtrader
(for example, as reported here or here). A possible workaround is to use either CSV input or load data straight from a pd.DataFrame
. For information on how to use these two approaches, you can refer to the source code. While using the latter one, you can import data directly to a pd.DataFrame
by using the approach presented in Chapter 1.
from python-for-finance-cookbook.
from python-for-finance-cookbook.
Hi Carter,
I added an extra Notebook with a workaround. It is quite simple and can be applied to all the other recipes using backtrader
. I do hope it will help you and others while the issue is not fixed (if it will be fixed).
Cheers,
Eryk
from python-for-finance-cookbook.
Related Issues (14)
- Chapter 7.2 While plotting the "Efficient Frontier" facing IndexError: list index out of range HOT 2
- Finance Cookbook
- Python for finance HOT 2
- Chapter 01 Not defined error HOT 2
- File not found error
- Code for Chapter 2 iplot graph does not fill in. HOT 4
- Chapter 2 Plot error HOT 2
- 'unzip' and 'rm' are not recognized commands HOT 1
- cufflinks go offline HOT 2
- issue generating images/ch6_im2.png (Geometric Brownian Motion) HOT 6
- qf.iplot() is Blank in Colab HOT 1
- performance_evaluation_report(learn) wont' run HOT 2
- Chapter 6: Code line "S_0 = adj_close[train.index[-1].date()]" HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-for-finance-cookbook.