Ai
1 Star 1 Fork 3

云金杞/ib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ExecutionFilter.py 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
云金杞 提交于 2023-04-03 10:45 +08:00 . copy from ibpy2
#!/usr/bin/env python
""" generated source for module ExecutionFilter """
#
# Original file copyright original author(s).
# This file copyright Troy Melhase, troy@gci.net.
#
# WARNING: all changes to this file will be lost.
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from ib.lib.overloading import overloaded
#
# * ExecutionFilter.java
# *
#
# package: com.ib.client
class ExecutionFilter(object):
""" generated source for class ExecutionFilter """
m_clientId = 0 # zero means no filtering on this field
m_acctCode = ""
m_time = ""
m_symbol = ""
m_secType = ""
m_exchange = ""
m_side = ""
@overloaded
def __init__(self):
""" generated source for method __init__ """
self.m_clientId = 0
@__init__.register(object, int, str, str, str, str, str, str)
def __init___0(self, p_clientId, p_acctCode, p_time, p_symbol, p_secType, p_exchange, p_side):
""" generated source for method __init___0 """
self.m_clientId = p_clientId
self.m_acctCode = p_acctCode
self.m_time = p_time
self.m_symbol = p_symbol
self.m_secType = p_secType
self.m_exchange = p_exchange
self.m_side = p_side
def __eq__(self, p_other):
""" generated source for method equals """
l_bRetVal = False
if p_other is None:
l_bRetVal = False
elif self is p_other:
l_bRetVal = True
else:
l_theOther = p_other
l_bRetVal = (self.m_clientId == l_theOther.m_clientId and self.m_acctCode.lower() == l_theOther.m_acctCode.lower() and self.m_time.lower() == l_theOther.m_time.lower() and self.m_symbol.lower() == l_theOther.m_symbol.lower() and self.m_secType.lower() == l_theOther.m_secType.lower() and self.m_exchange.lower() == l_theOther.m_exchange.lower() and self.m_side.lower() == l_theOther.m_side.lower())
return l_bRetVal
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yunjinqi/ib.git
git@gitee.com:yunjinqi/ib.git
yunjinqi
ib
ib
master

搜索帮助