Files
BitGet_API/Bitget_Server/Application/State/MarketState.cs

27 lines
1.2 KiB
C#
Raw Normal View History

2026-04-20 20:27:42 +09:00
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();
}