Skip to main content

CatalogWriter

Trait CatalogWriter 

Source
pub trait CatalogWriter: CatalogReader {
    // Required methods
    fn upsert_market_catalog_state<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 MarketCatalogState,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update_trading_mode_for_underlying<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        underlying: &'life1 str,
        trading_mode: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Catalog write operations.

Required Methods§

Source

fn upsert_market_catalog_state<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 MarketCatalogState, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Insert or update market catalog state. On conflict (market already exists), only last_extension_at and last_extension_ref_price are updated – the initial listing fields (ref_price_at_listing, listed_at, listing_policy_version) are immutable after creation.

Source

fn update_trading_mode_for_underlying<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, underlying: &'life1 str, trading_mode: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Update trading mode for all instruments of an underlying.

Implementors§