# coding: utf-8

"""
    QuantDB API

    Financial data API service using core business logic

    The version of the OpenAPI document: 
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from jinyanniu_databases_quantdb_client.models.realtime_index_data_response import RealtimeIndexDataResponse

class TestRealtimeIndexDataResponse(unittest.TestCase):
    """RealtimeIndexDataResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> RealtimeIndexDataResponse:
        """Test RealtimeIndexDataResponse
            include_optional is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `RealtimeIndexDataResponse`
        """
        model = RealtimeIndexDataResponse()
        if include_optional:
            return RealtimeIndexDataResponse(
                symbol = '',
                name = '',
                price = 1.337,
                open = 1.337,
                high = 1.337,
                low = 1.337,
                prev_close = 1.337,
                change = 1.337,
                pct_change = 1.337,
                amplitude = 1.337,
                volume = 1.337,
                turnover = 1.337,
                timestamp = '',
                cache_hit = True,
                is_trading_hours = True,
                metadata = { }
            )
        else:
            return RealtimeIndexDataResponse(
                symbol = '',
                name = '',
                price = 1.337,
                open = 1.337,
                high = 1.337,
                low = 1.337,
                prev_close = 1.337,
                change = 1.337,
                pct_change = 1.337,
                amplitude = 1.337,
                volume = 1.337,
                turnover = 1.337,
                timestamp = '',
                cache_hit = True,
                is_trading_hours = True,
                metadata = { },
        )
        """

    def testRealtimeIndexDataResponse(self):
        """Test RealtimeIndexDataResponse"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
    unittest.main()
