4.64K 浏览
0

买涨:order = api.insert_order(symbol=code, direction= 'BUY' ,offset= 'OPEN':, volume=new_hand,imit_price=price)
卖涨:order = api.insert_order(symbol=code, direction="SELL", limit_price=price,offset="CLOSETODAY", volume=new_hand)
买跌:order = api.insert_order(symbol=code, direction="SELL", limit_price=price,offset="OPEN", volume=new_hand)
卖跌:order = api.insert_order(symbol=code, direction="BUY", limit_price=price,offset="CLOSE", volume=new_hand)
总收益:'position_profit'
总花费保证金:'margin’

聪 王 已回答的问题 2020年1月2日