⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comboleg.java

📁 网上期货交易的外挂原码,可实现自动交易功能,自动添加模块
💻 JAVA
字号:
/* * ComboLeg.java * */package com.ib.client;public class ComboLeg {    public final static int SAME = 0; // open/close leg value is same as combo    public final static int OPEN = 1;    public final static int CLOSE = 2;    public final static int UNKNOWN = 3;    public int m_conId;    public int m_ratio;    public String m_action; // BUY/SELL    public String m_exchange;    public int m_openClose;    public ComboLeg() {        m_conId = 0;        m_ratio = 0;        m_openClose = 0;    }    public ComboLeg(int p_ConId, int p_Ratio, String p_Action, String p_exchange, int p_openClose) {        m_conId = p_ConId;        m_ratio = p_Ratio;        m_action = p_Action;        m_exchange = p_exchange;        m_openClose = p_openClose;    }    public boolean equals(Object p_other) {        if (this == p_other) {            return true;        } else if (p_other == null) {            return false;        }        ComboLeg l_theOther = (ComboLeg) p_other;        String l_thisAction = m_action != null ? m_action : "";        String l_thisExchange = m_exchange != null ? m_exchange : "";        return (l_thisAction.compareToIgnoreCase(l_theOther.m_action) == 0 &&                l_thisExchange.compareToIgnoreCase(l_theOther.m_exchange) == 0 && m_conId == l_theOther.m_conId &&                m_ratio == l_theOther.m_ratio && m_openClose == l_theOther.m_openClose);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -