コード例 #1
0
    def __init__(self,
                 orderId=None,
                 quantity=None,
                 price=None,
                 disclosedQuantity=None,
                 triggerPrice=None,
                 local_vars_configuration=None):  # noqa: E501
        """ExistingSOROrder - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._orderId = None
        self._quantity = None
        self._price = None
        self._disclosedQuantity = None
        self._triggerPrice = None
        self.discriminator = None

        self.orderId = orderId
        if quantity is not None:
            self.quantity = quantity
        if price is not None:
            self.price = price
        if disclosedQuantity is not None:
            self.disclosedQuantity = disclosedQuantity
        if triggerPrice is not None:
            self.triggerPrice = triggerPrice
コード例 #2
0
    def __init__(self,
                 instrumentToken=None,
                 quantity=None,
                 price=None,
                 amount=None,
                 triggerPrice=None,
                 local_vars_configuration=None):  # noqa: E501
        """OrderInfo - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._instrumentToken = None
        self._quantity = None
        self._price = None
        self._amount = None
        self._triggerPrice = None
        self.discriminator = None

        if instrumentToken is not None:
            self.instrumentToken = instrumentToken
        if quantity is not None:
            self.quantity = quantity
        if price is not None:
            self.price = price
        if amount is not None:
            self.amount = amount
        if triggerPrice is not None:
            self.triggerPrice = triggerPrice
コード例 #3
0
    def __init__(self, instrumentToken=None, transactionType=None, quantity=None, price=None, validity=None, variety=None, disclosedQuantity=None, triggerPrice=None, tag=None, local_vars_configuration=None):  # noqa: E501
        """NewSOROrder - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._instrumentToken = None
        self._transactionType = None
        self._quantity = None
        self._price = None
        self._validity = None
        self._variety = None
        self._disclosedQuantity = None
        self._triggerPrice = None
        self._tag = None
        self.discriminator = None

        if instrumentToken is not None:
            self.instrumentToken = instrumentToken
        if transactionType is not None:
            self.transactionType = transactionType
        if quantity is not None:
            self.quantity = quantity
        if price is not None:
            self.price = price
        if validity is not None:
            self.validity = validity
        if variety is not None:
            self.variety = variety
        if disclosedQuantity is not None:
            self.disclosedQuantity = disclosedQuantity
        if triggerPrice is not None:
            self.triggerPrice = triggerPrice
        if tag is not None:
            self.tag = tag
コード例 #4
0
    def __init__(self,
                 orderId=None,
                 quantity=None,
                 price=None,
                 disclosedQuantity=None,
                 triggerPrice=None,
                 validity=None,
                 tslo=None,
                 bracket=None,
                 tslonew=None,
                 bracketnew=None,
                 gtc=None,
                 ctd=None,
                 cod=None,
                 local_vars_configuration=None):  # noqa: E501
        """ExistingOrder - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._orderId = None
        self._quantity = None
        self._price = None
        self._disclosedQuantity = None
        self._triggerPrice = None
        self._validity = None
        self._tslo = None
        self._bracket = None
        self._tslonew = None
        self._bracketnew = None
        self._gtc = None
        self._ctd = None
        self._cod = None
        self.discriminator = None

        self.orderId = orderId
        if quantity is not None:
            self.quantity = quantity
        if price is not None:
            self.price = price
        if disclosedQuantity is not None:
            self.disclosedQuantity = disclosedQuantity
        if triggerPrice is not None:
            self.triggerPrice = triggerPrice
        self.validity = validity
        if tslo is not None:
            self.tslo = tslo
        if bracket is not None:
            self.bracket = bracket
        if tslonew is not None:
            self.tslonew = tslonew
        if bracketnew is not None:
            self.bracketnew = bracketnew
        if gtc is not None:
            self.gtc = gtc
        if ctd is not None:
            self.ctd = ctd
        if cod is not None:
            self.cod = cod
コード例 #5
0
    def __init__(self, ConvertQuantity=None, local_vars_configuration=None):  # noqa: E501
        """Ctdplace - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._ConvertQuantity = None
        self.discriminator = None

        if ConvertQuantity is not None:
            self.ConvertQuantity = ConvertQuantity
コード例 #6
0
    def __init__(self,
                 squareOffFlag=None,
                 local_vars_configuration=None):  # noqa: E501
        """Codplace - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._squareOffFlag = None
        self.discriminator = None

        if squareOffFlag is not None:
            self.squareOffFlag = squareOffFlag
コード例 #7
0
    def __init__(self,
                 closeDate=None,
                 local_vars_configuration=None):  # noqa: E501
        """Gtcplace - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._closeDate = None
        self.discriminator = None

        if closeDate is not None:
            self.closeDate = closeDate
コード例 #8
0
    def __init__(self,
                 gtcOrderNo=None,
                 local_vars_configuration=None):  # noqa: E501
        """Gtcmodify - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._gtcOrderNo = None
        self.discriminator = None

        if gtcOrderNo is not None:
            self.gtcOrderNo = gtcOrderNo
コード例 #9
0
    def __init__(self, configuration=None, header_name=None, header_value=None,
                 cookie=None, pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'KSTradeApi-python/1.0.0/python'
        self.client_side_validation = configuration.client_side_validation
コード例 #10
0
    def __init__(self,
                 spread=None,
                 trailingPrice=None,
                 local_vars_configuration=None):  # noqa: E501
        """Tsloplace - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._spread = None
        self._trailingPrice = None
        self.discriminator = None

        if spread is not None:
            self.spread = spread
        if trailingPrice is not None:
            self.trailingPrice = trailingPrice
コード例 #11
0
ファイル: fault.py プロジェクト: traderays/ks-orderapi-python
    def __init__(self, code=None, message=None, description=None, local_vars_configuration=None):  # noqa: E501
        """Fault - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._code = None
        self._message = None
        self._description = None
        self.discriminator = None

        if code is not None:
            self.code = code
        if message is not None:
            self.message = message
        if description is not None:
            self.description = description
コード例 #12
0
    def __init__(self,
                 transactionType=None,
                 orderInfo=None,
                 local_vars_configuration=None):  # noqa: E501
        """ReqMargin - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._transactionType = None
        self._orderInfo = None
        self.discriminator = None

        if transactionType is not None:
            self.transactionType = transactionType
        if orderInfo is not None:
            self.orderInfo = orderInfo
コード例 #13
0
    def __init__(self,
                 userid=None,
                 password=None,
                 local_vars_configuration=None):  # noqa: E501
        """UserCredentials - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._userid = None
        self._password = None
        self.discriminator = None

        if userid is not None:
            self.userid = userid
        if password is not None:
            self.password = password
コード例 #14
0
    def __init__(self,
                 userid=None,
                 accessCode=None,
                 local_vars_configuration=None):  # noqa: E501
        """UserDetails - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._userid = None
        self._accessCode = None
        self.discriminator = None

        if userid is not None:
            self.userid = userid
        if accessCode is not None:
            self.accessCode = accessCode
コード例 #15
0
    def __init__(self, Spread=None, trailingPrice=None, bookProfit=None, bookDisclosedQty=None, local_vars_configuration=None):  # noqa: E501
        """Bracketplace - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._Spread = None
        self._trailingPrice = None
        self._bookProfit = None
        self._bookDisclosedQty = None
        self.discriminator = None

        if Spread is not None:
            self.Spread = Spread
        if trailingPrice is not None:
            self.trailingPrice = trailingPrice
        if bookProfit is not None:
            self.bookProfit = bookProfit
        if bookDisclosedQty is not None:
            self.bookDisclosedQty = bookDisclosedQty
コード例 #16
0
    def __init__(self,
                 instrumentToken=None,
                 transactionType=None,
                 quantity=None,
                 price=None,
                 product=None,
                 validity=None,
                 variety=None,
                 disclosedQuantity=None,
                 triggerPrice=None,
                 tslo=None,
                 bracket=None,
                 tslonew=None,
                 bracketnew=None,
                 gtc=None,
                 ctd=None,
                 cod=None,
                 tag=None,
                 smartOrderRouting=None,
                 local_vars_configuration=None):  # noqa: E501
        """NewOrder - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._instrumentToken = None
        self._transactionType = None
        self._quantity = None
        self._price = None
        self._product = None
        self._validity = None
        self._variety = None
        self._disclosedQuantity = None
        self._triggerPrice = None
        self._tslo = None
        self._bracket = None
        self._tslonew = None
        self._bracketnew = None
        self._gtc = None
        self._ctd = None
        self._cod = None
        self._tag = None
        self._smartOrderRouting = None
        self.discriminator = None

        if instrumentToken is not None:
            self.instrumentToken = instrumentToken
        if transactionType is not None:
            self.transactionType = transactionType
        if quantity is not None:
            self.quantity = quantity
        if price is not None:
            self.price = price
        if product is not None:
            self.product = product
        if validity is not None:
            self.validity = validity
        if variety is not None:
            self.variety = variety
        if disclosedQuantity is not None:
            self.disclosedQuantity = disclosedQuantity
        if triggerPrice is not None:
            self.triggerPrice = triggerPrice
        if tslo is not None:
            self.tslo = tslo
        if bracket is not None:
            self.bracket = bracket
        if tslonew is not None:
            self.tslonew = tslonew
        if bracketnew is not None:
            self.bracketnew = bracketnew
        if gtc is not None:
            self.gtc = gtc
        if ctd is not None:
            self.ctd = ctd
        if cod is not None:
            self.cod = cod
        if tag is not None:
            self.tag = tag
        if smartOrderRouting is not None:
            self.smartOrderRouting = smartOrderRouting