Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 13bb313243
Fetching contributors…

Cannot retrieve contributors at this time

file 64 lines (56 sloc) 2.279 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
#!/usr/bin/env python
# -*- coding: utf-8 -*-

##
# Translated source for OrderState.
##

# Source file: OrderState.java
# Target file: OrderState.py
#
# Original file copyright original author(s).
# This file copyright Troy Melhase, troy@gci.net.
#
# WARNING: all changes made to this file will be lost.


class OrderState(object):
    """ generated source for OrderState

"""
    m_status = ""
    m_initMargin = ""
    m_maintMargin = ""
    m_equityWithLoan = ""
    m_commission = float()
    m_minCommission = float()
    m_maxCommission = float()
    m_commissionCurrency = ""
    m_warningText = ""

    @overloaded
    def __init__(self):
        super(OrderState, self).__init__(None, None, None, None, 0.0, 0.0, 0.0, None, None)

    @__init__.register(object, str, str, str, str, float, float, float, str, str)
    def __init___0(self, status,
                         initMargin,
                         maintMargin,
                         equityWithLoan,
                         commission,
                         minCommission,
                         maxCommission,
                         commissionCurrency,
                         warningText):
        self.m_initMargin = initMargin
        self.m_maintMargin = maintMargin
        self.m_equityWithLoan = equityWithLoan
        self.m_commission = commission
        self.m_minCommission = minCommission
        self.m_maxCommission = maxCommission
        self.m_commissionCurrency = commissionCurrency
        self.m_warningText = warningText

    def __eq__(self, other):
        if (self == other):
            return True
        if other is None:
            return False
        state = other
        if (self.m_commission != state.m_commission) or (self.m_minCommission != state.m_minCommission) or (self.m_maxCommission != state.m_maxCommission):
            return False
        if (Util.StringCompare(self.m_status, state.m_status) != 0) or (Util.StringCompare(self.m_initMargin, state.m_initMargin) != 0) or (Util.StringCompare(self.m_maintMargin, state.m_maintMargin) != 0) or (Util.StringCompare(self.m_equityWithLoan, state.m_equityWithLoan) != 0) or (Util.StringCompare(self.m_commissionCurrency, state.m_commissionCurrency) != 0):
            return False
        return True
Something went wrong with that request. Please try again.