Skip to main content

Module data

Module data 

Source
Expand description

Data types for the trading domain model.

Modules§

bar
bet
close
custom
Python bindings for CustomData.
data_type
delta
deltas
depth
funding
Python bindings for funding rate data types.
greeks
option_chain
order
prices
quote
status
trade

Structs§

PyNautilusDataType
PyNautilusRecordType

Functions§

data_to_pyobject
Converts a Data value into its native PyO3 object.
deserialize_custom_from_json
Deserializes custom data from JSON bytes into a PyO3 CustomData wrapper.
pyobjects_to_bars
Transforms the given Python objects into a vector of Bar objects.
pyobjects_to_book_deltas
Transforms the given Python objects into a vector of OrderBookDelta objects.
pyobjects_to_funding_rates
Transforms the given Python objects into a vector of FundingRateUpdate objects.
pyobjects_to_index_prices
Transforms the given Python objects into a vector of IndexPriceUpdate objects.
pyobjects_to_instrument_closes
Transforms the given Python objects into a vector of InstrumentClose objects.
pyobjects_to_instrument_statuses
Transforms the given Python objects into a vector of InstrumentStatus objects.
pyobjects_to_mark_prices
Transforms the given Python objects into a vector of MarkPriceUpdate objects.
pyobjects_to_option_greeks
Transforms the given Python objects into a vector of OptionGreeks objects.
pyobjects_to_quotes
Transforms the given Python objects into a vector of QuoteTick objects.
pyobjects_to_trades
Transforms the given Python objects into a vector of TradeTick objects.
register_custom_data_class
Registers a custom data type (class) with the catalog registry.