임시 수정
This commit is contained in:
@@ -15,6 +15,7 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Net.WebSockets;
|
||||
using System.Reflection;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -39,8 +40,8 @@ namespace BitgetAPI
|
||||
Thread th_MarketInfoList_WebService = null;
|
||||
// 웹소켓 스레드
|
||||
Thread th_ticker_Websocket = null;
|
||||
|
||||
|
||||
WebConnection webConnection = new WebConnection();
|
||||
// 스레드 종료 플래그
|
||||
bool Is_th_th_MarketInfoList_WebService = false;
|
||||
bool Is_th_treeListUpdate = false;
|
||||
@@ -165,6 +166,18 @@ namespace BitgetAPI
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Data 처리 관련 Thread
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
private void DataCalculateThread(BitgetWebSocketType type)
|
||||
{
|
||||
while (webConnection.Is_th_webSocketThread)
|
||||
{
|
||||
webConnection.CalculateDataList(type);
|
||||
}
|
||||
}
|
||||
|
||||
// 신호검색 Thread 함수
|
||||
private void Signalnfo()
|
||||
{
|
||||
@@ -505,11 +518,14 @@ namespace BitgetAPI
|
||||
|
||||
// 웹소켓으로 캔들 쌓기
|
||||
// WebSocket 생성
|
||||
WebConnection webConnection = new WebConnection();
|
||||
|
||||
commonProperty.webConnection = webConnection;
|
||||
webConnection.Is_th_webSocketThread = true;
|
||||
webConnection.BitGetWebSocektStart(BitgetWebSocketType.현황정보_전체종목, dic);
|
||||
|
||||
|
||||
Thread dataCalculateThread = new Thread(() => DataCalculateThread(BitgetWebSocketType.현황정보_전체종목));
|
||||
dataCalculateThread.Start();
|
||||
|
||||
|
||||
//th_webSocketThread = new Thread(() => TheadWebSocketRecieve(BitgetWebSocketType.현황정보_전체종목, dic));
|
||||
//th_webSocketThread.Start();
|
||||
|
||||
Reference in New Issue
Block a user