Skip to content

Releases: openfeed-org/sdk-python

Python SDK for Openfeed v1.4.0

20 Sep 20:08
Compare
Choose a tag to compare

Added the following:

  • support for streaming and filtering User Defined Spreads (eg T8^UDS)
  • support for streaming Equity Options (eg AAPL^EO)
  • support for logon via JWT
  • added a global on_message callback/listener

UDS Example:

# subscribe to UDS an filter by type (optional)
of_client.add_symbol_subscription(
    "T8^UDS", callback=on_message, subscription_type=["QUOTE"], spread_type_filter=["RR", "JR"])

EO Example:

of_client.add_symbol_subscription("AAPL^EO", callback=on_message])

JWT Auth Example:

# new client with JWT
of_client = openfeed.OpenfeedClient("", "", jtw="YOUR_TOKEN")

Global Message Handler:

# add a global message handler for all incoming OF messages
of_client.on_message = lambda msg: print("Global Message:", msg)

Python SDK for Openfeed v1.3.0

04 Aug 15:56
Compare
Choose a tag to compare

This release includes the latest protos.

Python SDK for Openfeed v1.2.0

08 Jun 17:18
Compare
Choose a tag to compare

This release exposes the option to set instrument_type on exchange subscriptions.

Note: Futures Spreads and Options must be explicitly requested.

See full list of InstrumentTypes here.

#subscribe to CME trades for Options and Futures
of_client.add_exchange_subscription("CME", callback=on_message, subscription_type=["TRADES"], instrument_type=["OPTION", "FUTURE"])

Python SDK for Openfeed v1.1.9

21 Sep 17:55
Compare
Choose a tag to compare

correctly fires instrumentDefinition callbacks on request_instruments_for_exchange

e.g.

def on_message(msg):
  if msg.WhichOneOf("data") == "instrumentDefinition":
    print("Instrument: ", msg)

of_client.request_instruments_for_exchange("AMEX", callback=on_message)

Python SDK for Openfeed v1.1.8

11 Aug 16:34
Compare
Choose a tag to compare

reduce logging noise and fix on_close method signature.

Python SDK for Openfeed v1.1.6

27 May 17:17
Compare
Choose a tag to compare

Support subscriptions by symbol aliases, e.g. ES*0, ESM21, etc.

Python SDK for Openfeed

16 Jan 16:01
Compare
Choose a tag to compare
v1.1.2

fixed doc links

Python SDK for Openfeed

03 Nov 23:05
Compare
Choose a tag to compare
  • updated to latest protobufs
  • added request_available_exchanges
  • exposed service and subscription_type for Symbol and Exchange subscriptions

Python SDK for Openfeed

22 Oct 21:45
Compare
Choose a tag to compare
v1.0.5

back to pep517 for now.

Python SDK for Openfeed

25 Aug 21:33
Compare
Choose a tag to compare

Initial Release