- 매도 버그 수정

This commit is contained in:
2017-02-17 11:23:34 +09:00
parent edcf8c2972
commit 0aec121fd5

View File

@@ -345,7 +345,7 @@ namespace AutoSellerNS
}
}
int GetCallUnitValue(int iValue)
int GetUnitValue(int iValue)
{
int iUnit = 1;
if(iValue < 1000)
@@ -363,12 +363,18 @@ namespace AutoSellerNS
else
iUnit = 1000;
return iUnit;
}
int GetCallUnitValue(int iValue)
{
int iUnit = GetUnitValue(iValue);
return (iValue/iUnit)*iUnit;
}
public void SellItem(string strCode, int iCnt, int iAskPrice)
{
int iSellPrice = iAskPrice-GetCallUnitValue(iAskPrice);
int iSellPrice = iAskPrice-GetUnitValue(iAskPrice);
CPTRADELib.CpTd0311 Td0311 = new CPTRADELib.CpTd0311();
Td0311.SetInputValue(0, "1");