Skip to main content

Module watcher

Module watcher 

Source
Expand description

Liquidation watcher background task.

Polls accounts for liquidation health and drives both backend-managed partial liquidation and on-chain full liquidation transitions.

Structsยง

CancelTarget ๐Ÿ”’
LiquidationWatcher
Liquidation watcher background task.
LiquidationWatcherConfig
Configuration for the liquidation watcher.
OpenOrderSyncResult ๐Ÿ”’
PartialCycleOutcome ๐Ÿ”’

Constantsยง

ENGINE_RESPONSE_TIMEOUT ๐Ÿ”’
PARTIAL_LIQ_MIN_SIZE ๐Ÿ”’
PARTIAL_PLAN_MAX_ROUNDS ๐Ÿ”’

Functionsยง

decimal_from_f64 ๐Ÿ”’
derive_portfolio_mark_price ๐Ÿ”’
format_pm_option_symbol ๐Ÿ”’
get_timestamp_millis ๐Ÿ”’
Get current timestamp in milliseconds.
liquidation_state_to_type ๐Ÿ”’
Convert LiquidationState to LiquidationStateType for messages.
merge_partial_plan ๐Ÿ”’