- 매도 버그 수정
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user