売り注文は以下のように行います。
'売り注文
Overrides Function Sell(ByVal dt As KabuCommonLib.DayTrade.Manager.IDayTrade) As Boolean
log.InfoFormat("売り注文をします。code={0} unit={1} price={2}", dt.company_id, dt.unit, dt.SellOrder.price)
Try
_web.GoAsset().GoOrder(dt).Execute()
Return True
Catch ex As Exception
log.Warn("例外が発生しました。", ex)
End Try
log.WarnFormat("売り注文に失敗しました。code={0} unit={1} price={2}", dt.company_id, dt.unit, dt.SellOrder.price)
Return False
End Function
スポンサーリンク