tgoop.com/python4finance/1038
Create:
Last Update:
Last Update:
استخراج قیمت ماهیانه نات کوین (Notcoin)
#code by @python4finance
import pandas as pd
import requests
import time
import matplotlib.pyplot as plt
plt.style.use("ggplot")
url="https://www.kucoin.com/_api/order-book/candles?begin="+str(round(time.time())-2592000 )+"&end="+str(round(time.time()))+"&lang=en_US&symbol=NOT-USDT&type=1hour"
r = requests.get(url)
df=r.json()
df=pd.DataFrame(df["data"]).astype(float)
df=df[::-1].reset_index()
df[1].plot(figsize=(16,6))
#api
#NOTCOIN
پایتون برای مالی
🆔 www.tgoop.com/python4finance
🆔 ble.ir/python4finance
BY Python4Finance
Share with your friend now:
tgoop.com/python4finance/1038