- 매도 정정 주문 추가 (3초마다)

This commit is contained in:
2017-02-22 23:44:44 +09:00
parent 0db71c74e7
commit f4872096c6
3 changed files with 297 additions and 241 deletions

View File

@@ -264,6 +264,8 @@ namespace AutoSellerNS
Item.m_strDesc = CP5339.GetDataValue(5, i);
Item.m_iOrderPrice = CP5339.GetDataValue(7, i);
Item.m_iRemainCnt = CP5339.GetDataValue(11, i);
Item.m_bAsk = (CP5339.GetDataValue(13, i) == "1");
Item.m_iOrgOrderNo = CP5339.GetDataValue(2, i);
NCItems.Add(Item);
}
@@ -418,5 +420,19 @@ namespace AutoSellerNS
Td0311.SetInputValue(8, "01");
Td0311.BlockRequest2(0);
}
public void CorrectionItem(string strCode, int iOrgOrderNo, int iAskPrice)
{
int iSellPrice = iAskPrice-GetUnitValue(iAskPrice);
CPTRADELib.CpTd0313 Td0313 = new CPTRADELib.CpTd0313();
Td0313.SetInputValue(1, iOrgOrderNo);
Td0313.SetInputValue(2, Config.GetAccount());
Td0313.SetInputValue(3, Config.GetSubAccount());
Td0313.SetInputValue(4, strCode);
Td0313.SetInputValue(5, 0);
Td0313.SetInputValue(6, iSellPrice);
Td0313.BlockRequest2(0);
}
}
}