# --------------------------------------------------------
# Author: James Ma
# Email stuff here: jamesmawm@gmail.com
#
# Developed and updated by Joseph Loss on 6/19/2019
# MS Financial Engineering
# University of Illinois at Urbana-Champaign
#
# Inquiries: loss2@illinois.edu
# --------------------------------------------------------

from ibUtil import *


class StockOrder:
    def __init__(self, order_id, stock_code, is_buy, qty, price=None, stop_price = None):
        self.order_id = order_id
        self.stock_code = stock_code
        self.is_buy = is_buy
        self.qty = qty
        self.price = price
        self.stop_price = stop_price
        self.filled_timed = None

    def get_stock_order(self):
        return create_stock_order(self.order_id, self.qty, self.is_buy, self.price, self.stop_price)

    def get_order_position(self):
        return self.qty * (1 if self.is_buy else -1)

fd358c58cd5cebc718623aaa180886ab562f5786
<mask token>


class StockOrder:
    <mask token>
    <mask token>
    <mask token>

<mask token>


class StockOrder:
    <mask token>
    <mask token>

    def get_order_position(self):
        return self.qty * (1 if self.is_buy else -1)

<mask token>


class StockOrder:

    def __init__(self, order_id, stock_code, is_buy, qty, price=None,
        stop_price=None):
        self.order_id = order_id
        self.stock_code = stock_code
        self.is_buy = is_buy
        self.qty = qty
        self.price = price
        self.stop_price = stop_price
        self.filled_timed = None

    def get_stock_order(self):
        return create_stock_order(self.order_id, self.qty, self.is_buy,
            self.price, self.stop_price)

    def get_order_position(self):
        return self.qty * (1 if self.is_buy else -1)

from ibUtil import *


class StockOrder:

    def __init__(self, order_id, stock_code, is_buy, qty, price=None,
        stop_price=None):
        self.order_id = order_id
        self.stock_code = stock_code
        self.is_buy = is_buy
        self.qty = qty
        self.price = price
        self.stop_price = stop_price
        self.filled_timed = None

    def get_stock_order(self):
        return create_stock_order(self.order_id, self.qty, self.is_buy,
            self.price, self.stop_price)

    def get_order_position(self):
        return self.qty * (1 if self.is_buy else -1)

# --------------------------------------------------------
# Author: James Ma
# Email stuff here: jamesmawm@gmail.com
#
# Developed and updated by Joseph Loss on 6/19/2019
# MS Financial Engineering
# University of Illinois at Urbana-Champaign
#
# Inquiries: loss2@illinois.edu
# --------------------------------------------------------

from ibUtil import *


class StockOrder:
    def __init__(self, order_id, stock_code, is_buy, qty, price=None, stop_price = None):
        self.order_id = order_id
        self.stock_code = stock_code
        self.is_buy = is_buy
        self.qty = qty
        self.price = price
        self.stop_price = stop_price
        self.filled_timed = None

    def get_stock_order(self):
        return create_stock_order(self.order_id, self.qty, self.is_buy, self.price, self.stop_price)

    def get_order_position(self):
        return self.qty * (1 if self.is_buy else -1)
