Exchange.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Text.Json.Serialization;
  2. namespace economy.Models.Financial.Exchange
  3. {
  4. // 검색결과 변수
  5. public class Response
  6. {
  7. public List<Data> Items { get; set; }
  8. }
  9. public class Data
  10. {
  11. [JsonPropertyName("result")]
  12. public int Result { get; set; }
  13. [JsonPropertyName("cur_unit")]
  14. public string CurUnit { get; set; } // 통화 단위
  15. [JsonPropertyName("cur_nm")]
  16. public string CurNm { get; set; } // 국가/통화명
  17. [JsonPropertyName("ttb")]
  18. public string Ttb { get; set; } // 매입 환율
  19. [JsonPropertyName("tts")]
  20. public string Tts { get; set; } // 매도 환율
  21. [JsonPropertyName("deal_bas_r")]
  22. public string DealBasRate { get; set; } // 기준 환율
  23. [JsonPropertyName("bkpr")]
  24. public string BankSellingRate { get; set; } // 은행 판매율
  25. [JsonPropertyName("yy_efee_r")]
  26. public string YearlyExchangeFeeRate { get; set; } // 연간 환전 수수료율
  27. [JsonPropertyName("ten_dd_efee_r")]
  28. public string TenDayExchangeFeeRate { get; set; } // 10일 환전 수수료율
  29. [JsonPropertyName("kftc_bkpr")]
  30. public string KftcBankSellingRate { get; set; } // 한국 외환 거래소 기준 판매율
  31. [JsonPropertyName("kftc_deal_bas_r")]
  32. public string KftcDealBaseRate { get; set; } // 한국 외환 거래소 기준 기준율
  33. }
  34. }