# coding: utf-8

"""
    Bluefin API

    Bluefin API

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

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


import unittest

from bluefin_pro_api_client.models.create_order_request import CreateOrderRequest

class TestCreateOrderRequest(unittest.TestCase):
    """CreateOrderRequest unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> CreateOrderRequest:
        """Test CreateOrderRequest
            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 `CreateOrderRequest`
        """
        model = CreateOrderRequest()
        if include_optional:
            return CreateOrderRequest(
                sign_order_fields = bluefin_pro_api_client.models.create_order_request_sign_order_fields.CreateOrderRequest_signOrderFields(
                    market_address = '', 
                    account_address = '', 
                    price_e9 = '452400000', 
                    quantity_e9 = '452400000', 
                    side = 'LONG', 
                    leverage_e9 = '4000000000', 
                    is_isolated = True, 
                    salt = '123335432', 
                    expires_at_utc_millis = 12345665432, 
                    signed_at_utc_millis = 1234567856, ),
                signature = '',
                order_hash = '',
                client_order_id = '',
                type = 'LIMIT',
                reduce_only = True,
                post_only = True,
                time_in_force = 'GTT',
                trigger_price_e9 = '300000000',
                self_trade_prevention_type = 'TAKER'
            )
        else:
            return CreateOrderRequest(
                sign_order_fields = bluefin_pro_api_client.models.create_order_request_sign_order_fields.CreateOrderRequest_signOrderFields(
                    market_address = '', 
                    account_address = '', 
                    price_e9 = '452400000', 
                    quantity_e9 = '452400000', 
                    side = 'LONG', 
                    leverage_e9 = '4000000000', 
                    is_isolated = True, 
                    salt = '123335432', 
                    expires_at_utc_millis = 12345665432, 
                    signed_at_utc_millis = 1234567856, ),
                signature = '',
                order_hash = '',
                type = 'LIMIT',
                reduce_only = True,
                post_only = True,
                time_in_force = 'GTT',
        )
        """

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

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