Drafts

Also see Drafts.

Instruments

Also see Instruments.

Portfolios

Also see Portfolios.

Resource representations

{
  "kind": "trade",
  "id": integer,
  "created_at": datetime,
  "updated_at": datetime,
  "positions": [
    {
      "kind": "position",
      "id": integer,
      "quantity": integer,
      "created_at": datetime,
      "updated_at": datetime,
      "instrument": instrument
    },
    .
    .
    .
  ]
}

Methods


GET /portfolios/:portfolio_id/trades
List trades for the specified portfolio.

List trades for the specified portfolio.

Params

Param Name Description
portfolio_id
Optional

The slug of the portfolio to get the trades for.


Value:

Must be String


GET /portfolios/:portfolio_id/draft/trade
Get a trade.

GET /portfolios/:portfolio_id/pending_parent_update/trade
Get a trade.

GET /trades/:id
Get a trade.

Get a trade.

Params

Param Name Description
id
Optional

The id of the trade.


Value:

Must be a number.

portfolio_id
Optional

The slug of the portfolio to get the draft trade for.


Value:

Must be String

budget
Optional

The budget of the preview. Used only when generating the trade of a preview, ignored otherwise


Value:

Must be decimal.