Commit 8542d91 1 parent cd51b55 commit 8542d91 Copy full SHA for 8542d91
File tree 2 files changed +21
-7
lines changed
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 25
25
cryp_label = crypcode ["currency name" ].tolist ()
26
26
27
27
# set date for importing data
28
- todate = datetime .today ().strftime ("%Y -%m-%d " )
29
- firstdate = pd .to_datetime (todate , format = "%Y -%m-%d " ) - pd .to_timedelta (
28
+ todate = datetime .today ().strftime ("%d -%m-%Y " )
29
+ firstdate = pd .to_datetime (todate , format = "%d -%m-%Y " ) - pd .to_timedelta (
30
30
365 , unit = "d"
31
31
)
32
32
@@ -104,7 +104,7 @@ def CryptoForecast(SelectCrypto):
104
104
# ).reset_index()
105
105
# cryptodata.columns = cryptodata.columns.get_level_values(0)
106
106
107
- scraper = CmcScraper (SelectCrypto , "15-01-2021" , "11-07-2021" )
107
+ scraper = CmcScraper (SelectCrypto , firstdate , todate )
108
108
cryptodata = scraper .get_dataframe ()
109
109
110
110
cryp_pro = cryptodata [["Date" , "Close" ]]
Original file line number Diff line number Diff line change 1
1
currency code,currency name
2
+ AAVE,Aave
3
+ ADA,Cardano
4
+ BCH,Bitcoin Cash
2
5
BNB,Binance Coin
3
6
BTC,Bitcoin
4
- BCH,Bitcoin Cash
5
- ADA,Cardano
7
+ BUSD,Binance USD
8
+ DOGE,Doge Coin
9
+ ETC,Ethereum Classic
6
10
ETH,Ethereum
11
+ FIL,"Filecoin
12
+ "
13
+ FTT,FTX Token
14
+ ICP,Internet Computer
7
15
LTC,Litecoin
8
- XMR,Monero
9
- XLM,Stellar
16
+ SOL,Solana
17
+ USDC,"USD Coin
18
+ "
10
19
USDT,Tether
20
+ WBTC,"Wrapped Bitcoin
21
+ "
22
+ XLM,Stellar
23
+ XMR,Monero
24
+ XRP,XRP
You can’t perform that action at this time.
0 commit comments