Facets
GNSPriceImpact
Facet #4: Price impact OI windows
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
