Class IPOEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.IPOEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class IPOEvent
extends Object
implements Serializable
Represents an IPO offering lifecycle event delivered over the IPO events streaming API (`/v2/events/ipos`). IPO events come in six `verb` types: - **`Offering`** - initial publication of an offering. The `payload` carries `name`, `available_to_order`, `ticker_symbol`, `min_price`, `max_price` (and optional `source`). - **`OfferingUpdate`** - update to a previously published offering. The `payload` shape is identical to `Offering`. - **`Prospectus`** - prospectus document is now available. The `payload` carries `prospectus_url` and `subject`. - **`SixtyMinMail`** - 60-minute pricing window has opened, no new orders accepted. The `payload` carries `sixty_minute_expiration_time` and `subject`. - **`Allocation`** - final allocation result for a specific account. The `payload` carries `cusip_id`, `final_price`, `allocated_shares`, `allocated_amount`, `subject`. **This is the only verb that is account-scoped**: `account_id` and `correspondent` are populated. - **`OfferingCancellation`** - offering was cancelled. **No `payload` is present.** See the example payloads below for a concrete example per verb.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe IPO event type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(OffsetDateTime at) correspondent(String correspondent) booleanstatic IPOEventCreate an instance of IPOEvent given an JSON stringThe account this event applies to.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Timestamp the event was emitted by the streaming service.The correspondent that owns the account.Lexically sortable, monotonically increasing identifier for this event.The IPO offering this event refers to.Verb-specific payload.Timestamp the upstream event was first received by Alpaca's IPO ingestion pipeline (before fanout).getVerb()The IPO event type.inthashCode()offeringReference(String offeringReference) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.receivedAt(OffsetDateTime receivedAt) voidsetAccountId(UUID accountId) voidsetAt(OffsetDateTime at) voidsetCorrespondent(String correspondent) voidsetEventId(String eventId) voidsetOfferingReference(String offeringReference) voidsetPayload(Object payload) voidsetReceivedAt(OffsetDateTime receivedAt) voidsetVerb(IPOEvent.VerbEnum verb) toJson()Convert an instance of IPOEvent to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundverb(IPOEvent.VerbEnum verb)
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_AT
- See Also:
-
SERIALIZED_NAME_CORRESPONDENT
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_OFFERING_REFERENCE
- See Also:
-
SERIALIZED_NAME_PAYLOAD
- See Also:
-
SERIALIZED_NAME_RECEIVED_AT
- See Also:
-
SERIALIZED_NAME_VERB
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
IPOEvent
public IPOEvent()
-
-
Method Details
-
accountId
-
getAccountId
The account this event applies to. Only populated for `Allocation` events; omitted for system-wide verbs (`Offering`, `OfferingUpdate`, `Prospectus`, `SixtyMinMail`, `OfferingCancellation`).- Returns:
- accountId
-
setAccountId
-
at
-
getAt
Timestamp the event was emitted by the streaming service.- Returns:
- at
-
setAt
-
correspondent
-
getCorrespondent
The correspondent that owns the account. Only populated for `Allocation` events.- Returns:
- correspondent
-
setCorrespondent
-
eventId
-
getEventId
Lexically sortable, monotonically increasing identifier for this event. Use this value with `since_id`/`until_id` to resume the stream from a known point.- Returns:
- eventId
-
setEventId
-
offeringReference
-
getOfferingReference
The IPO offering this event refers to. Use this value with `GET /v1/ipos/{offering_reference}` to fetch the full offering metadata.- Returns:
- offeringReference
-
setOfferingReference
-
payload
-
getPayload
Verb-specific payload. The shape varies by `verb` - see schema description and `components/examples` for the structure of each. **Omitted entirely for `OfferingCancellation`.**- Returns:
- payload
-
setPayload
-
receivedAt
-
getReceivedAt
Timestamp the upstream event was first received by Alpaca's IPO ingestion pipeline (before fanout).- Returns:
- receivedAt
-
setReceivedAt
-
verb
-
getVerb
The IPO event type. Determines the shape of `payload`.- Returns:
- verb
-
setVerb
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the IPOEvent instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to IPOEvent
-
fromJson
Create an instance of IPOEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IPOEvent
- Throws:
IOException- if the JSON string is invalid with respect to IPOEvent
-
toJson
Convert an instance of IPOEvent to an JSON string- Returns:
- JSON string
-