Skip to content

put_submission

PUT
/v0/submissions/{bidder_id}

Authorizations

Parameters

Path Parameters

bidder_id
required

A UUID newtype

string format: uuid

Unique identifier of the bidder

Request Body required

The submission endpoint embeds a mini-CRUD interface, accordingly we need a type to embed the CRUD operations.

object
auths
required

List of auth entries for this submission

Array
One of:

Create a new authorization with the specified portfolio and data

object
auth_id
required

The unique identifier for the authorization

string format: uuid
data
required

The authorization data

object
max_rate

The fastest rate at which the portfolio may buy (non-negative)

number | null format: double
max_trade

A maximum amount of trade to preserve (always enforced against the authorization’s contemporaneous amount of trade)

number | null format: double
min_rate

The fastest rate at which the portfolio may sell (non-positive)

number | null format: double
min_trade

A minimum amount of trade to preserve (always enforced against the authorization’s contemporaneous amount of trade)

number | null format: double
portfolio
required

The portfolio associated with this authorization

object
key
additional properties
number format: double
costs
required

List of cost entries for this submission

Array
One of:

Create a new cost with the specified group and data

object
cost_id
required

The unique identifier for the cost

string format: uuid
data
required
One of:
One of:

A representation of a piecewise-linear, weakly monotone decreasing demand curve

Demand curves define a bidder’s willingness to pay for different quantities of a good. In flow trading, these curves must be:

  • Piecewise-linear (defined by a sequence of points)
  • Weakly monotone decreasing (price non-increasing as rate increases)
  • Include the point rate=0 in their domain (must allow zero trade)
Array<object>

A representation of a point for use in defining piecewise-linear curves

Each point consists of:

  • A rate (quantity per time unit)
  • A price (value per unit)

Points are used to define the vertices of piecewise-linear demand curves.

object
price
required

The price (value per unit) coordinate

number format: double
rate
required

The rate (quantity per time) coordinate

number format: double
group
required

The group associated with this cost

object
key
additional properties
number format: double

Responses

200

A submission represents a bidder’s complete set of active authorizations and costs that are considered for auction processing.

Submissions are not first-class primitives, but intermediate objects and not persisted entities. They’re constructed from the current state of a bidder’s auths and costs when needed for an auction.

object
as_of
required

The system-time at which these lists were generated

string format: date-time
auths
required

A list of “active” auths

Array<object>

A full description of an authorization

An AuthRecord combines all the information needed to define an authorization:

  • Who owns it (bidder_id)
  • What it trades (portfolio)
  • How it can be traded (data)
  • The current accumulated trade (trade)
object
auth_id
required

A unique id for the auth

string format: uuid
bidder_id
required

The responsible bidder’s id

string format: uuid
data
One of:
null
portfolio
One of:
null
trade

The amount of cumulative trade associated to this authorization, as-of the request time

number | null format: double
version
required

The “last-modified-or-created” time as recorded by the system

string format: date-time
costs
required

A list of “active” costs

Array<object>

A full description of a cost

A CostRecord combines all the information needed to define a cost:

  • Who owns it (bidder_id)
  • Which auths it applies to (group)
  • The utility function (data)
object
bidder_id
required

The responsible bidder’s id

string format: uuid
cost_id
required

A unique id for the cost

string format: uuid
data
One of:
null
group

The group associated to the cost. Because it is not always required, some endpoints may omit its definition.

object | null
version
required

The “last-modified-or-created” time as recorded by the system

string format: date-time

500