INNER CODE UNIT · Python
get_upper_fx
ibaihuo/chanvis · api/chanapi.py:495
def get_upper_fx():
"""
upper fx
"""
symbol = request.args.get('symbol', 'btc')
resolution = request.args.get('resolution', '1')
fx_jibie = request.args.get('fx_jibie', 'father')
data, tf = None, None
if fx_jibie == "father":
if resolution in ('15', '30'):
tf = RESOU_DICT['240']
elif resolution == '240':
tf = RESOU_DICT['1D']
if resolution == '1D':
tf = RESOU_DICT['1W']
elif fx_jibie == "grandpa":