view Simoleon/Models/CurrencyQuoteModel.swift @ 165:6f024e6a3b19

Remove unused purchase files
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sat, 11 Sep 2021 16:29:57 +0200
parents 0c589138a6f3
children
line wrap: on
line source

//
//  CurrencyQuoteModel.swift
//  Simoleon
//
//  Created by Dennis Concepción Martín on 15/07/2021.
//

import Foundation

struct CurrencyQuoteModel: Codable, Hashable {
    var pair: String?
    var price: Double?
    var bid: Double?
    var ask: Double?
    var timeStamp: Int?
    
    private enum CodingKeys: String, CodingKey {
        case pair = "s"
        case price = "p"
        case bid = "b"
        case ask = "a"
        case timeStamp = "t"
    }
}