/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface SpotMarketStats */ export interface SpotMarketStats { /** * * @type {string} * @memberof SpotMarketStats */ symbol: string; /** * * @type {number} * @memberof SpotMarketStats */ market_id: number; /** * * @type {string} * @memberof SpotMarketStats */ index_price: string; /** * * @type {string} * @memberof SpotMarketStats */ mid_price: string; /** * * @type {string} * @memberof SpotMarketStats */ last_trade_price: string; /** * * @type {number} * @memberof SpotMarketStats */ daily_base_token_volume: number; /** * * @type {number} * @memberof SpotMarketStats */ daily_quote_token_volume: number; /** * * @type {number} * @memberof SpotMarketStats */ daily_price_low: number; /** * * @type {number} * @memberof SpotMarketStats */ daily_price_high: number; /** * * @type {number} * @memberof SpotMarketStats */ daily_price_change: number; } /** * Check if a given object implements the SpotMarketStats interface. */ export function instanceOfSpotMarketStats(value: object): value is SpotMarketStats { if (!('symbol' in value) || value['symbol'] === undefined) return false; if (!('market_id' in value) || value['market_id'] === undefined) return false; if (!('index_price' in value) || value['index_price'] === undefined) return false; if (!('mid_price' in value) || value['mid_price'] === undefined) return false; if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false; if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false; if (!('daily_quote_token_volume' in value) || value['daily_quote_token_volume'] === undefined) return false; if (!('daily_price_low' in value) || value['daily_price_low'] === undefined) return false; if (!('daily_price_high' in value) || value['daily_price_high'] === undefined) return false; if (!('daily_price_change' in value) || value['daily_price_change'] === undefined) return false; return true; } export function SpotMarketStatsFromJSON(json: any): SpotMarketStats { return SpotMarketStatsFromJSONTyped(json, false); } export function SpotMarketStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpotMarketStats { if (json == null) { return json; } return { 'symbol': json['symbol'], 'market_id': json['market_id'], 'index_price': json['index_price'], 'mid_price': json['mid_price'], 'last_trade_price': json['last_trade_price'], 'daily_base_token_volume': json['daily_base_token_volume'], 'daily_quote_token_volume': json['daily_quote_token_volume'], 'daily_price_low': json['daily_price_low'], 'daily_price_high': json['daily_price_high'], 'daily_price_change': json['daily_price_change'], }; } export function SpotMarketStatsToJSON(value?: SpotMarketStats | null): any { if (value == null) { return value; } return { 'symbol': value['symbol'], 'market_id': value['market_id'], 'index_price': value['index_price'], 'mid_price': value['mid_price'], 'last_trade_price': value['last_trade_price'], 'daily_base_token_volume': value['daily_base_token_volume'], 'daily_quote_token_volume': value['daily_quote_token_volume'], 'daily_price_low': value['daily_price_low'], 'daily_price_high': value['daily_price_high'], 'daily_price_change': value['daily_price_change'], }; }