Example #1
0
File: trader.py Project: sopnic/ybk
def quote_detail(trade_account, symbol):
    ta = trade_account
    t = Trader(ta.exchange, ta.login_name, ta.login_password)
    qd = t.quote_detail(symbol)
    ci = t.list_collection(symbol)[0]
    qd['highest'] = ci['highest']
    qd['lowest'] = ci['lowest']
    return qd
Example #2
0
def quote_detail(trade_account, symbol):
    ta = trade_account
    t = Trader(ta.exchange, ta.login_name, ta.login_password)
    qd = t.quote_detail(symbol)
    ci = t.list_collection(symbol)[0]
    qd['highest'] = ci['highest']
    qd['lowest'] = ci['lowest']
    return qd