- 매도 가격을 매도호가의 한호가 아래로 설정
- 미체결 화면 추가
This commit is contained in:
@@ -30,6 +30,15 @@ namespace AutoSellerNS
|
||||
public int m_iCurPrice;
|
||||
}
|
||||
|
||||
public class NCITEM
|
||||
{
|
||||
public string m_strCodeName;
|
||||
public string m_strCode;
|
||||
public int m_iRemainCnt;
|
||||
public int m_iOrderPrice;
|
||||
public string m_strDesc;
|
||||
}
|
||||
|
||||
|
||||
int m_iCurPricePanelWith;
|
||||
CybosHelper m_CybosHelper = null;
|
||||
@@ -179,12 +188,45 @@ namespace AutoSellerNS
|
||||
|
||||
private void btUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
// 잔고
|
||||
var Items = m_CybosHelper.UpdateItems();
|
||||
|
||||
m_Items.Clear();
|
||||
lvItems.Items.Clear();
|
||||
foreach (var Item in Items)
|
||||
AddItem(Item);
|
||||
|
||||
// 미체결
|
||||
var NCItems = m_CybosHelper.UpdateNC();
|
||||
lvNCItem.Clear();
|
||||
if(lvNCItem.InvokeRequired)
|
||||
{
|
||||
lvNCItem.Invoke(new Action(() => {
|
||||
foreach(var NCItem in NCItems)
|
||||
{
|
||||
lvNCItem.Items.Add(new ListViewItem(new string[] {
|
||||
NCItem.m_strCode,
|
||||
NCItem.m_strCodeName,
|
||||
NCItem.m_strDesc,
|
||||
string.Format("{0:0n}", NCItem.m_iOrderPrice),
|
||||
string.Format("{0:0n}", NCItem.m_iRemainCnt),
|
||||
}));
|
||||
}
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach(var NCItem in NCItems)
|
||||
{
|
||||
lvNCItem.Items.Add(new ListViewItem(new string[] {
|
||||
NCItem.m_strCode,
|
||||
NCItem.m_strCodeName,
|
||||
NCItem.m_strDesc,
|
||||
string.Format("{0:0n}", NCItem.m_iOrderPrice),
|
||||
string.Format("{0:0n}", NCItem.m_iRemainCnt),
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateItem(string strCode, string strCodeName, bool bBid, int iConclusionCnt, int iRemainCnt, int iBookValue)
|
||||
|
||||
Reference in New Issue
Block a user