단순 이관
This commit is contained in:
26
Bitget_Server/Application/State/MarketState.cs
Normal file
26
Bitget_Server/Application/State/MarketState.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Bitget_Server.Domain.Enums;
|
||||
using Bitget_Server.Domain.Models;
|
||||
|
||||
namespace Bitget_Server.Application.State;
|
||||
|
||||
/// <summary>
|
||||
/// 기존 WinForms CommonProperty에서 UI 참조를 제외한 순수 런타임 상태.
|
||||
/// DI 싱글톤으로 등록되어 전 서비스에서 공유.
|
||||
/// </summary>
|
||||
public class MarketState
|
||||
{
|
||||
public ExchangePlace selectedChangePlace { get; set; } = ExchangePlace.Bitget;
|
||||
public PaymentType selectedPaymentType { get; set; } = PaymentType.USDT;
|
||||
public BitgetProductType selectedBitgetProductType { get; set; } = BitgetProductType.FUTURE;
|
||||
|
||||
public List<MarketInfo> marketInfoList { get; set; } = new();
|
||||
public List<MarketCandleDataList> candleDataLists { get; set; } = new();
|
||||
public List<WebSocketTickerInfo> webSocketCandles { get; set; } = new();
|
||||
|
||||
/// <summary>현재 활성화된 신호 검색에 사용될 마켓/인터벌 목록 (기존 MainForm의 체크박스 값).</summary>
|
||||
public List<object> CheckedMarkets { get; set; } = new();
|
||||
public List<object> IntervalList { get; set; } = new();
|
||||
|
||||
/// <summary>락 오브젝트 (캔들 리스트 동시 접근 보호).</summary>
|
||||
public readonly object SyncRoot = new();
|
||||
}
|
||||
Reference in New Issue
Block a user