CryptoHubData.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. namespace Application.Abstractions.Crypto;
  2. public static class CryptoHubData
  3. {
  4. // WebSocket Ticker 전체 필드
  5. public sealed record TickerData(
  6. string Market,
  7. string Symbol,
  8. decimal OpeningPrice,
  9. decimal HighPrice,
  10. decimal LowPrice,
  11. decimal TradePrice,
  12. decimal PrevClosingPrice,
  13. string Change,
  14. decimal ChangePrice,
  15. decimal SignedChangePrice,
  16. decimal ChangeRate,
  17. decimal SignedChangeRate,
  18. decimal TradeVolume,
  19. decimal AccTradeVolume,
  20. decimal AccTradeVolume24h,
  21. decimal AccTradePrice,
  22. decimal AccTradePrice24h,
  23. string TradeDate,
  24. string TradeTime,
  25. long TradeTimestamp,
  26. string AskBid,
  27. decimal AccAskVolume,
  28. decimal AccBidVolume,
  29. decimal Highest52WeekPrice,
  30. string Highest52WeekDate,
  31. decimal Lowest52WeekPrice,
  32. string Lowest52WeekDate,
  33. string MarketState,
  34. string? DelistingDate,
  35. string MarketWarning,
  36. long Timestamp,
  37. string StreamType
  38. );
  39. // WebSocket Trade 전체 필드
  40. public sealed record TradeData(
  41. string Market,
  42. string Symbol,
  43. decimal TradePrice,
  44. decimal TradeVolume,
  45. string AskBid,
  46. decimal PrevClosingPrice,
  47. string Change,
  48. decimal ChangePrice,
  49. string TradeDate,
  50. string TradeTime,
  51. long TradeTimestamp,
  52. long SequentialId,
  53. long Timestamp,
  54. string StreamType,
  55. decimal BestAskPrice,
  56. decimal BestAskSize,
  57. decimal BestBidPrice,
  58. decimal BestBidSize
  59. );
  60. // WebSocket Orderbook 전체 필드
  61. public sealed record OrderbookData(
  62. string Market,
  63. string Symbol,
  64. decimal TotalAskSize,
  65. decimal TotalBidSize,
  66. IReadOnlyList<OrderbookUnitData> Units,
  67. long Timestamp,
  68. decimal Level,
  69. string StreamType
  70. );
  71. public sealed record OrderbookUnitData(
  72. decimal AskPrice,
  73. decimal BidPrice,
  74. decimal AskSize,
  75. decimal BidSize
  76. );
  77. // WebSocket Candle 전체 필드
  78. public sealed record CandleData(
  79. string Market,
  80. string Symbol,
  81. string CandleDateTimeUtc,
  82. string CandleDateTimeKst,
  83. decimal OpeningPrice,
  84. decimal HighPrice,
  85. decimal LowPrice,
  86. decimal TradePrice,
  87. decimal CandleAccTradeVolume,
  88. decimal CandleAccTradePrice,
  89. long Timestamp,
  90. string StreamType
  91. );
  92. }