CreateQuote

Attributes

ObjectId

See ‘object-id’ in object-type: quote.

Optional

Firm
See ‘firm’ in object-type: quote.
Cusip

See ‘cusip’ in object-type: quote.

Optional

Isin

See ‘isin’ in object-type: quote.

Optional

AskPrice
See ‘ask-price’ in object-type: quote.
AskQty
See ‘ask-qty’ in object-type: quote.
BuyPrice
See ‘buy-price’ in object-type: quote.
BuyQty
See ‘buy-qty’ in object-type: quote.

JSON Examples

{
    "UpdateType": "CreateQuote",
    "Firm": "SCGV",
    "Isin": "US00206RDA77",
    "BidPrice": "98-05.875",
    "BidQty": 25000,
    "AskPrice": "98-06.875",
    "AskQty": 25000
}

check_valid()

CreateQuote may only be submitted by a ‘marketmaker’ (as defined in the organization’s authorized list) for the Firm listed on the quote.

The following checks are performed:

  • Check that all required attributes have been provided.
  • Check that all provided unique attributes do not exist in the store.
  • Check that Firm is a valid object-id of type organization.
  • Check that one of Cusip or Isin is provided, and points to a valid bond. If both are provided, they must point to the same bond.
  • Authorization checks, as defined above.

apply()

Create a new object in the store with object-type of ‘quote’.

Increment the ref-count of the corresponding organization.