INNER CODE UNIT · Python
get_time
ibaihuo/chanvis · api/chanapi.py:238
def get_time():
ts = str(arrow.get('2008-01-01').int_timestamp)
return Response(ts)
@NaturalChan.route("/api/get_bspoint", methods=['GET'])
def get_bspoint():
"""获取买卖点
"""
sym = request.args.get('symbol', 'btc')
freq = request.args.get('resolution', '1')
if sym in ('BTC', 'BHCoin'):
sym = 'btc'
if sym in ('SH',):
sym = 'sh'