gauss314 / defi

Tools for use in DeFi. Impermanent Loss calculations, staking and farming strategies, coingecko and pancakeswap API queries, liquidity pools and more
MIT License
555 stars 143 forks source link

Coingecko Farming Simulate missing graphics #10

Open PowerPress opened 2 years ago

PowerPress commented 2 years ago

CoinGecko - Farming Simulate section when I follow the example I do not get the graphics just the following below. How can I receive the additional data?

import defi.defi_tools as dft pair = ['huobi-token','tether'] apr = 45 dft.farmSimulate(pair, apr, start='2021-01-01') Downloading huobi-token Downloading tether {'Token 1': 'huobi-token', 'Token 2': 'tether', 'start': '2021-01-01', 'fixed APR': '45%', 'Buy & Hold': '51.45%', 'Impermanent Loss': '-5.95%', 'Farming Rewards': '84.08%', 'Farming + Rewards - IL': '141.49%'}

kenstack commented 2 years ago

add plt.show() in line 331

gauss314 commented 2 years ago

thanks!