Orders

Response

{
  "orders": {
    "order": [
      {
        "id": 228175,
        "type": "limit",
        "symbol": "AAPL",
        "side": "buy",
        "quantity": 50.00000000,
        "status": "expired",
        "duration": "pre",
        "price": 22.0,
        "avg_fill_price": 0.00000000,
        "exec_quantity": 0.00000000,
        "last_fill_price": 0.00000000,
        "last_fill_quantity": 0.00000000,
        "remaining_quantity": 0.00000000,
        "create_date": "2018-06-01T12:02:29.682Z",
        "transaction_date": "2018-06-01T12:30:02.385Z",
        "class": "equity"
      },
      {
        "id": 228749,
        "type": "market",
        "symbol": "SPY",
        "side": "buy_to_open",
        "quantity": 1.00000000,
        "status": "expired",
        "duration": "pre",
        "avg_fill_price": 0.00000000,
        "exec_quantity": 0.00000000,
        "last_fill_price": 0.00000000,
        "last_fill_quantity": 0.00000000,
        "remaining_quantity": 0.00000000,
        "create_date": "2018-06-06T20:16:17.342Z",
        "transaction_date": "2018-06-06T20:16:17.357Z",
        "class": "option",
        "option_symbol": "SPY180720C00274000"
      },
      {
        "id": 229063,
        "type": "debit",
        "symbol": "SPY",
        "side": "buy",
        "quantity": 1.00000000,
        "status": "canceled",
        "duration": "pre",
        "price": 42.0,
        "avg_fill_price": 0.00,
        "exec_quantity": 0.00000000,
        "last_fill_price": 0.00000000,
        "last_fill_quantity": 0.00000000,
        "remaining_quantity": 0.00000000,
        "create_date": "2018-06-12T21:13:36.076Z",
        "transaction_date": "2018-06-12T21:18:41.604Z",
        "class": "combo",
        "num_legs": 2,
        "strategy": "covered call",
        "leg": [
          {
            "id": 229064,
            "type": "debit",
            "symbol": "SPY",
            "side": "buy",
            "quantity": 100.00000000,
            "status": "canceled",
            "duration": "pre",
            "price": 42.0,
            "avg_fill_price": 0.00000000,
            "exec_quantity": 0.00000000,
            "last_fill_price": 0.00000000,
            "last_fill_quantity": 0.00000000,
            "remaining_quantity": 0.00000000,
            "create_date": "2018-06-12T21:13:36.076Z",
            "transaction_date": "2018-06-12T21:18:41.587Z",
            "class": "equity"
          },
          {
            "id": 229065,
            "type": "debit",
            "symbol": "SPY",
            "side": "sell_to_close",
            "quantity": 1.00000000,
            "status": "canceled",
            "duration": "pre",
            "price": 42.0,
            "avg_fill_price": 0.00000000,
            "exec_quantity": 0.00000000,
            "last_fill_price": 0.00000000,
            "last_fill_quantity": 0.00000000,
            "remaining_quantity": 0.00000000,
            "create_date": "2018-06-12T21:13:36.076Z",
            "transaction_date": "2018-06-12T21:18:41.597Z",
            "class": "option",
            "option_symbol": "SPY180720C00274000"
          }
        ]
      },
      {
        "id": 229123,
        "type": "credit",
        "symbol": "SPY",
        "side": "buy",
        "quantity": 1.00000000,
        "status": "expired",
        "duration": "pre",
        "price": 0.8,
        "avg_fill_price": 0.00,
        "exec_quantity": 0.00000000,
        "last_fill_price": 0.00000000,
        "last_fill_quantity": 0.00000000,
        "remaining_quantity": 0.00000000,
        "create_date": "2018-06-13T16:54:39.812Z",
        "transaction_date": "2018-06-13T20:55:00.069Z",
        "class": "multileg",
        "num_legs": 4,
        "strategy": "condor",
        "leg": [
          {
            "id": 229124,
            "type": "credit",
            "symbol": "SPY",
            "side": "buy_to_open",
            "quantity": 1.00000000,
            "status": "expired",
            "duration": "pre",
            "price": 0.8,
            "avg_fill_price": 0.00000000,
            "exec_quantity": 0.00000000,
            "last_fill_price": 0.00000000,
            "last_fill_quantity": 0.00000000,
            "remaining_quantity": 0.00000000,
            "create_date": "2018-06-13T16:54:39.812Z",
            "transaction_date": "2018-06-13T20:55:00.069Z",
            "class": "option",
            "option_symbol": "SPY180720C00274000"
          },
          {
            "id": 229125,
            "type": "credit",
            "symbol": "SPY",
            "side": "sell_to_open",
            "quantity": 1.00000000,
            "status": "expired",
            "duration": "pre",
            "price": 0.8,
            "avg_fill_price": 0.00000000,
            "exec_quantity": 0.00000000,
            "last_fill_price": 0.00000000,
            "last_fill_quantity": 0.00000000,
            "remaining_quantity": 0.00000000,
            "create_date": "2018-06-13T16:54:39.812Z",
            "transaction_date": "2018-06-13T20:55:00.069Z",
            "class": "option",
            "option_symbol": "SPY180720C00275000"
          },
          {
            "id": 229126,
            "type": "credit",
            "symbol": "SPY",
            "side": "sell_to_open",
            "quantity": 1.00000000,
            "status": "expired",
            "duration": "pre",
            "price": 0.8,
            "avg_fill_price": 0.00000000,
            "exec_quantity": 0.00000000,
            "last_fill_price": 0.00000000,
            "last_fill_quantity": 0.00000000,
            "remaining_quantity": 0.00000000,
            "create_date": "2018-06-13T16:54:39.812Z",
            "transaction_date": "2018-06-13T20:55:00.069Z",
            "class": "option",
            "option_symbol": "SPY180720C00276000"
          },
          {
            "id": 229127,
            "type": "credit",
            "symbol": "SPY",
            "side": "buy_to_open",
            "quantity": 1.00000000,
            "status": "expired",
            "duration": "pre",
            "price": 0.8,
            "avg_fill_price": 0.00000000,
            "exec_quantity": 0.00000000,
            "last_fill_price": 0.00000000,
            "last_fill_quantity": 0.00000000,
            "remaining_quantity": 0.00000000,
            "create_date": "2018-06-13T16:54:39.812Z",
            "transaction_date": "2018-06-13T20:55:00.069Z",
            "class": "option",
            "option_symbol": "SPY180720C00277000"
          }
        ]
      }
    ]
  }
}

Definitions

FieldDescription
idUnique identifier for the order
typeSingle-leg, One of: market, limit, stop, stop_limit
Multi-leg, One of: market, debit, credit, even
symbolSecurity symbol or underlying security symbol
sideEquity, One of: buy, buy_to_cover, sell, sell_short
Option, One of: buy_to_open, buy_to_close, sell_to_open, sell_to_close
quantityNumber of shares or contracts
statusOne of: open, partially_filled, filled, expired, canceled, pending, rejected, error
durationOne of: day, pre, post, gtc
priceLimit price
avg_fill_priceAverage fill price
exec_quantityTotal number of shares/contracts filled
last_fill_priceLast fill price
last_fill_quantityLast fill quantity
remaining_quantityNumber of shares/contracts remaining
create_dateDate the order was created
transaction_dateDate the order was last updated
classOne of: equity, option, combo, multileg
strategyOne of: freeform, covered_call, protective_put, strangle, straddle, spread, collar, butterfly, condor, unknown
option_symbolOCC option symbol
stop_priceStop price
reason_descriptionRejection details
tagOrder tag if available