How to use the pyupbit.get_daily_ohlcv_from_base function in pyupbit

To help you get started, we’ve selected a few pyupbit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sharebook-kr / cryptocurrency-trading-bot / upbit / level3 / trade.py View on Github external
def set_break_out_range(ticker, status, hour):
    df = pyupbit.get_daily_ohlcv_from_base(ticker, base=hour)
    k = noise.get_average_noise_ratio(df, days=9)
    break_out_range = larry.get_break_out_range(df, k)
    betting_ratio = betting.get_betting_ratio(df, break_out_range, num_coins=1)

    status[hour][1] = break_out_range                           # 해당 시간대 목표가 설정
    status[hour][2] = betting_ratio                             # 해당 시간대 베팅 비율
    time.sleep(10)

pyupbit

python wrapper for Upbit API

Apache-2.0
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis