Upbit API 정리(변경된 API 사항 정리)

This commit is contained in:
kyh
2022-10-12 10:52:44 +09:00
parent 8cab39f944
commit 9425773b0c
3 changed files with 29 additions and 27 deletions

View File

@@ -141,7 +141,7 @@ namespace Million_Buyer
ThreadFlag = true;
bt_Start.Enabled = false;
rd_buyer.Enabled = false;
rd_Realtime.Enabled = false;
rd_Realtime.Enabled = false;
}
}
}
@@ -210,9 +210,9 @@ namespace Million_Buyer
RealtimeDataSettingManager realTimeMsg = null;
var standardTime = DateTime.Now;
var standardTime = DateTime.Now;
this.BeginInvoke(new Action(delegate ()
{
lb_StartDate.Text = standardTime.ToString("yyyy-MM-dd HH:mm:ss");
@@ -225,7 +225,7 @@ namespace Million_Buyer
var cnt = 0;
sw.Start();
while (ThreadFlag)
{
try
@@ -268,8 +268,8 @@ namespace Million_Buyer
sw.Restart();
dataList = realTimeMsg.ProcessRecentlyCandleDatas(dataList, candleTypeList);
sw.Stop();
if(sw.Elapsed.TotalSeconds > 1)
InsertLog("Ticker 계산 시간 : " + sw.Elapsed.ToString());
if (sw.Elapsed.TotalSeconds > 1)
InsertLog("Ticker 계산 시간 : " + sw.Elapsed.ToString());
}
}
#endregion
@@ -437,20 +437,20 @@ namespace Million_Buyer
var moneyVal = (sellVal * (1 - 0.0005) - buyCandleData.BuyValue * (1 - 0.0005)) * result.BuyCount;
tl_Result.AppendNode(new object[] {
buyNode.GetValue("BuyMarket"),
buyNode.GetValue("BuyValue"),
buyNode.GetValue("BuyCount"),
buyNode.GetValue("BuyDateTime"),
sellVal,
result.SellCount,
time.ToString("yyyy-MM-dd HH:mm:ss"),
result.FirstEarningRate,
moneyVal}, null);
tl_Result.AppendNode(new object[] {
buyNode.GetValue("BuyMarket"),
buyNode.GetValue("BuyValue"),
buyNode.GetValue("BuyCount"),
buyNode.GetValue("BuyDateTime"),
sellVal,
result.SellCount,
time.ToString("yyyy-MM-dd HH:mm:ss"),
result.FirstEarningRate,
moneyVal
}, null);
tl_BuyList.Nodes.Remove(buyNode);
lb_BuyMarketCount.Text = buyList.Count.ToString();
double totalRate = 0;
double totalMoneyValue = 0;
@@ -474,9 +474,9 @@ namespace Million_Buyer
}
}
#endregion
}
}
cnt++;
if(cnt%60 == 0)
if (cnt % 60 == 0)
{
InsertLog("Scanning......" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
cnt = 0;
@@ -488,16 +488,17 @@ namespace Million_Buyer
}
}
//Stop 시 저장 -> Real Time의 경우 Search Result List만 저장
if (RealTimeFlag)
{
SaveData();
}
else
{
//이거는 결정해야함
}
SaveData();
InsertLog("Thread Out");
}
/// <summary>
@@ -598,7 +599,7 @@ namespace Million_Buyer
/// <param name="log"></param>
private void InsertLog(string log)
{
this.BeginInvoke(new Action(delegate ()
{
if (lb_log.Items.Count > 500)