Comments (4)
Hi, @AyseTheArk the date
column has been included in the latest investiny
release, so make sure to upgrade it as pip install investiny --upgrade
and check that the installed version is 0.4.0!
from investiny.
Hi @AyseTheArk so trendet
was developed more than 2 years ago and I've not checked it since then, but note that it was developed using investpy
so it's prepared to use its data, whose output was a pandas.DataFrame
while investiny.historical_data
is returning a Python dictionary. If you manage to load it as a pandas.DataFrame
keep in mind that the "date" column needs to be renamed to "Date" and set as the index, while all the other columns need to be renamed to "Open", "High", "Low", and "Close", respectively.
from investiny.
@alvarobartt But the data does not have a 'date' column:
Also to use the code in https://github.com/alvarobartt/trendet the data seem to need more columns such as 'Up Trend', as these lines for example:
labels = df['Up Trend'].dropna().unique().tolist()
for label in labels:
sns.lineplot(x=df[df['Up Trend'] == label].index,
y=df[df['Up Trend'] == label]['Close'],
color='green')
ax.axvspan(df[df['Up Trend'] == label].index[0],
df[df['Up Trend'] == label].index[-1],
alpha=0.2,
color='green')
use df['Up Trend']
, while df is created like this:
df = trendet.identify_all_trends(stock='BBVA',
country='Spain',
from_date='01/01/2018',
to_date='01/01/2019',
window_size=5,
identify='both')
which gave me the error code investpy function call failed with Exception: ERR#0015: error 403, try again later.!
. So the problem was in creating the right data for the code on https://github.com/alvarobartt/trendet and the investiny.historical_data
doesn't seem to be the right data for this. Is there an alternative data to use the trendet
library?
from investiny.
Hi, @alvarobartt is that then the data I need for the df in the code on https://github.com/alvarobartt/trendet ?
from investiny.
Related Issues (20)
- Request to Investing.com API failed with error code: 503. HOT 2
- `exchange` param in `search_assets` has unexpected behaviour HOT 1
- pip install error in Linux HOT 4
- Issue with Date and Price mapping HOT 4
- `volume` is returned even when `n/\a
- Send asynchronous requests to tvc6.investing.com to improve performance
- Issue with Date and Price mapping HOT 5
- Issue with max from date and limit of max daily data HOT 9
- Error 403 HOT 5
- solution for investiny 403 HOT 9
- Still get 403 with tvc6 API HOT 33
- Request to Investing.com API failed with error code: 403
- Possible way to fix 403 Error HOT 14
- ERROR: Could not find a version that satisfies the requirement investiny HOT 7
- 403 in search_assets as well HOT 7
- Error code: 403 with investpy and investiny HOT 3
- Can not install this library HOT 4
- Solution with cloudscraper
- Examples from the README fail
- Request to Investing.com API failed with error code: 403 HOT 24
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 investiny.