mmyjh86

[파이스탁] upbit 분봉

Mar 30th, 2020
182
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pyupbit
  2.  
  3. # 30분봉을 얻어옴
  4. df = pyupbit.get_ohlcv(interval='minute30')
  5.  
  6. # 30개의 이동평균 계산
  7. ma30 = df['close'].rolling(30).mean()
  8. print(ma30)
RAW Paste Data