Advertisement
LeRoY_Go

Untitled

Feb 10th, 2022
849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.12 KB | None | 0 0
  1. using System.Text.Json.Serialization;
  2.  
  3. namespace BotTelegram
  4. {
  5.     public class Coin
  6.     {
  7.         [JsonPropertyName("symbol")]
  8.         public string Symbol { get; set; }
  9.  
  10.         [JsonPropertyName("name")]
  11.         public string Name { get; set; }
  12.  
  13.         [JsonPropertyName("current_price")]
  14.         public double CurrentPrice { get; set; }
  15.  
  16.         [JsonPropertyName("market_cap")]
  17.         public int MarketCap { get; set; }
  18.  
  19.         [JsonPropertyName("total_volume")]
  20.         public double TotalVolume { get; set; }
  21.  
  22.         [JsonPropertyName("high_24h")]
  23.         public double High24h { get; set; }
  24.  
  25.         [JsonPropertyName("low_24h")]
  26.         public double Low24h { get; set; }
  27.  
  28.         [JsonPropertyName("price_change_percentage_1h_in_currency")]
  29.         public double PriceChangePercentage1hInCurrency { get; set; }
  30.  
  31.         [JsonPropertyName("price_change_percentage_24h_in_currency")]
  32.         public double PriceChangePercentage24hInCurrency { get; set; }
  33.  
  34.         [JsonPropertyName("price_change_percentage_7d_in_currency")]
  35.         public double PriceChangePercentage7dInCurrency { get; set; }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement