Skip to content
Thiago W. Alves edited this page Sep 11, 2019 · 10 revisions

Constructors:

Properties:

  • type : shift::Order::Type. The possible values are:
    • shift.Order.Type.LIMIT_BUY
    • shift.Order.Type.LIMIT_SELL
    • shift.Order.Type.MARKET_BUY
    • shift.Order.Type.MARKET_SELL
    • shift.Order.Type.CANCEL_BID
    • shift.Order.Type.CANCEL_ASK
  • symbol : str
  • size : int
  • executed_size : int
  • price : float
  • executed_price : float
  • id : str
  • status : shift::Order::Status. The possible values are:
    • shift.Order.Status.PENDING_NEW
    • shift.Order.Status.NEW
    • shift.Order.Status.PARTIALLY_FILLED
    • shift.Order.Status.FILLED
    • shift.Order.Status.CANCELED
    • shift.Order.Status.PENDING_CANCEL
    • shift.Order.Status.REJECTED
  • timestamp : datetime.datetime

Parameters

  • type : shift::Order::Type

    The type of the order.

  • symbol : str

    The symbol of the order.

  • size : int

    The size of the order (1 size = 100 shares).

  • price : float

    The price of the order. It is only required for market orders.

  • id : str

    The ID of the order. It is only required for the cancellation of orders.

Return Value

None