Skip to content

Commit b43c2b2

Browse files
committed
Updated to latest Protos. Also:
* added support for SubscriptionType = `SETTLEMENT` which will only send down settlements as they happen. * added support for suppressing initial MarketSnapshots and InstrumentDefinitions on SubscriptionRequest  * fixed docstrings
1 parent 67ed560 commit b43c2b2

10 files changed

+257
-136
lines changed

openfeed/generated/openfeed_api_pb2.py

Lines changed: 52 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openfeed/generated/openfeed_api_pb2.pyi

Lines changed: 91 additions & 12 deletions
Large diffs are not rendered by default.

openfeed/generated/openfeed_instrument_pb2.py

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openfeed/generated/openfeed_instrument_pb2.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class InstrumentDefinition(_message.Message):
2121
MONEY_MARKET_FUND: _ClassVar[InstrumentDefinition.InstrumentType]
2222
USER_DEFINED_SPREAD: _ClassVar[InstrumentDefinition.InstrumentType]
2323
EQUITY_OPTION: _ClassVar[InstrumentDefinition.InstrumentType]
24+
OTHER: _ClassVar[InstrumentDefinition.InstrumentType]
2425
UNKNOWN_INSTRUMENT_TYPE: InstrumentDefinition.InstrumentType
2526
FOREX: InstrumentDefinition.InstrumentType
2627
INDEX: InstrumentDefinition.InstrumentType
@@ -32,6 +33,7 @@ class InstrumentDefinition(_message.Message):
3233
MONEY_MARKET_FUND: InstrumentDefinition.InstrumentType
3334
USER_DEFINED_SPREAD: InstrumentDefinition.InstrumentType
3435
EQUITY_OPTION: InstrumentDefinition.InstrumentType
36+
OTHER: InstrumentDefinition.InstrumentType
3537
class BookType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
3638
__slots__ = []
3739
UNKNOWN_BOOK_TYPE: _ClassVar[InstrumentDefinition.BookType]

openfeed/generated/openfeed_pb2.py

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openfeed/generated/openfeed_pb2.pyi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ class ActionType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
119119
LISTING: _ClassVar[ActionType]
120120
DELISTING: _ClassVar[ActionType]
121121
EXCHANGE_MOVE: _ClassVar[ActionType]
122+
ALIAS_CHANGED: _ClassVar[ActionType]
122123
UNKNOWN_BOOK_SIDE: BookSide
123124
BID: BookSide
124125
OFFER: BookSide
@@ -199,6 +200,7 @@ UNKNOWN_ACTION: ActionType
199200
LISTING: ActionType
200201
DELISTING: ActionType
201202
EXCHANGE_MOVE: ActionType
203+
ALIAS_CHANGED: ActionType
202204

203205
class OpenfeedMessage(_message.Message):
204206
__slots__ = ["sendingTime", "totalCount", "syncSequence", "context", "channelReset", "heartBeat", "adminMessage", "instrumentDefinition", "instrumentGroupStatus", "marketSnapshot", "marketUpdate", "marketStatus", "eodCommoditySummary", "instrumentAction"]
@@ -1379,20 +1381,22 @@ class Ohlc(_message.Message):
13791381
def __init__(self, marketId: _Optional[int] = ..., symbol: _Optional[str] = ..., open: _Optional[_Union[Open, _Mapping]] = ..., high: _Optional[_Union[High, _Mapping]] = ..., low: _Optional[_Union[Low, _Mapping]] = ..., close: _Optional[_Union[Close, _Mapping]] = ..., volume: _Optional[int] = ..., priceVolume: _Optional[float] = ..., numberTrades: _Optional[int] = ..., tradeDate: _Optional[int] = ..., transactionTime: _Optional[int] = ..., tradeIds: _Optional[_Iterable[str]] = ..., openStartTime: _Optional[int] = ..., closeEndTime: _Optional[int] = ...) -> None: ...
13801382

13811383
class InstrumentAction(_message.Message):
1382-
__slots__ = ["transactionTime", "tradeDate", "action", "message", "instrument", "newInstrument"]
1384+
__slots__ = ["transactionTime", "tradeDate", "action", "message", "oldAlias", "instrument", "newInstrument"]
13831385
TRANSACTIONTIME_FIELD_NUMBER: _ClassVar[int]
13841386
TRADEDATE_FIELD_NUMBER: _ClassVar[int]
13851387
ACTION_FIELD_NUMBER: _ClassVar[int]
13861388
MESSAGE_FIELD_NUMBER: _ClassVar[int]
1389+
OLDALIAS_FIELD_NUMBER: _ClassVar[int]
13871390
INSTRUMENT_FIELD_NUMBER: _ClassVar[int]
13881391
NEWINSTRUMENT_FIELD_NUMBER: _ClassVar[int]
13891392
transactionTime: int
13901393
tradeDate: int
13911394
action: ActionType
13921395
message: str
1396+
oldAlias: str
13931397
instrument: _openfeed_instrument_pb2.InstrumentDefinition
13941398
newInstrument: _openfeed_instrument_pb2.InstrumentDefinition
1395-
def __init__(self, transactionTime: _Optional[int] = ..., tradeDate: _Optional[int] = ..., action: _Optional[_Union[ActionType, str]] = ..., message: _Optional[str] = ..., instrument: _Optional[_Union[_openfeed_instrument_pb2.InstrumentDefinition, _Mapping]] = ..., newInstrument: _Optional[_Union[_openfeed_instrument_pb2.InstrumentDefinition, _Mapping]] = ...) -> None: ...
1399+
def __init__(self, transactionTime: _Optional[int] = ..., tradeDate: _Optional[int] = ..., action: _Optional[_Union[ActionType, str]] = ..., message: _Optional[str] = ..., oldAlias: _Optional[str] = ..., instrument: _Optional[_Union[_openfeed_instrument_pb2.InstrumentDefinition, _Mapping]] = ..., newInstrument: _Optional[_Union[_openfeed_instrument_pb2.InstrumentDefinition, _Mapping]] = ...) -> None: ...
13961400

13971401
class RequestForQuote(_message.Message):
13981402
__slots__ = ["quoteRequestId", "symbol", "securityId", "orderQuantity", "quoteType", "side"]

0 commit comments

Comments
 (0)