quarterly and weekly bitcoin price from OKEX
asks/bids info and last price from Bitfinex (Will add funding data later)
USDT OTC price from Huobi.pro
Emotion from news and forum (Wallstreet.cn and 8btc , will add reddit and CCN later)(DELETED due to effeciency reason)
3 predicted outcomes: Next_5,Next_10,Next_15 refer to the bitcoin future price will raise or drop in next 5/10/15 minutes based on our prediction
Neural Network (Prepare to use deeplearning model to fit the data in the future)
You need to install below packages before run input_data.py
pip install requests
-- Access to webpage
pip install BeautifulSoup
-- Formalize webpage
pip install snownlp
-- Analyze emotion of sentenses in Chinese
pip install pyodbc
-- connect to SQL Server DB
pip install sklearn
-- Machine Learning Model
pip install tensorflow
-- install tensorflow
Will update the code from time to time.
------------------------------------------------------------------------------
1. get the news from wallstreet cn(https://wallstreetcn.com/) blockchain channel. Analyze the emotion thru SnowNLP. Input as a feature.
2. get the posts from Chinese biggest BTC forum--8btc cn(https://8btc.com/) blockchain channel. Analyze the emotion by using SnowNLP. Input as a feature.
(Will Update and input the emotion from Reddit and CCN in the future)
Adding solutions for disconnect conditions
1.fixed a bug in bfx.py
2.*Changed the data storage from csv to SQL server database.Better for further machine learning process.
Start another project named Bitcoin_price_prediction to predict bitcoin trend.
DELETED Emotion from forum due to effeciency reason
adding prediction.py (To be Updated)
Fixed some bugs and complete the real-time prediction. (prediction.py). Next step is to accomplish the auto-trading based on the prediction result~
3 predicted outcomes: Next_5,Next_10,Next_15 refer to the bitcoin future price will raise or drop based on our prediction , 1 means raise ,0 means drop. If two of the three outcomes are 1, we can long bitcoin future and will sell it after 15 minutes/or a certain percentage of profit(to be tested)
Adding future trading process(Long and sell after 15 minutes)