Libraries
IPriceImpactUtils
Interface for GNSPriceImpact facet (inherits types and also contains functions, events, and custom errors)
Initializes price impact facet
Initializes negative pnl cumulative volume multiplier
Initializes pair factors
Updates price impact windows count
Updates price impact windows duration
Updates negative pnl cumulative volume multiplier
Whitelists/unwhitelists traders from protection close factor
Updates pairs 1% depths above and below
Sets protection close factors for pairs
Sets protection close factor blocks duration for pairs
Sets cumulative factors for pairs
Sets whether pairs are exempt from price impact on open
Sets whether pairs are exempt from price impact on close once protection close factor has expired
Adds open interest to current window
Returns active open interest used in price impact calculation for a pair and side (long/short)
Returns price impact % (1e10 precision) and price after impact (1e10 precision) for a trade
Returns a pair’s depths above and below the price
Returns current price impact windows settings
Returns OI window details (long/short OI)
Returns multiple OI windows details (long/short OI)
Returns depths above and below the price for multiple pairs
Returns factors for a set of pairs (1e10)
Returns negative pnl cumulative volume multiplier
Returns whether a trader is whitelisted from protection close factor
Triggered when OiWindowsSettings is initialized (once)
Triggered when OiWindowsSettings.windowsCount is updated
Triggered when OiWindowsSettings.windowsDuration is updated
Triggered when negPnlCumulVolMultiplier is updated
Triggered when a trader is whitelisted/unwhitelisted from protection close factor
Triggered when a pair’s protection close factor is updated
Triggered when a pair’s protection close factor duration is updated
Triggered when a pair’s cumulative factor is updated
Triggered when a pair’s exemptOnOpen value is updated
Triggered when a pair’s exemptAfterProtectionCloseFactor value is updated
Triggered when OI is added to a window.
Triggered when multiple pairs’ OI are transferred to a new window (when updating windows duration).
Triggered when a pair’s OI is transferred to a new window.
Triggered when a pair’s depth is updated.
