0.0.1 • Published 1 year ago

alperp-1 v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Large Open/Increase Position Size Bot

Description

This bot detects a large size position opening and a large increase in an existing position. It listens to UpdatePosition and IncreasePosition event emissions on Perp Trade Contract and creates a finding if sizeDelta exceeds a threshold.

The threshold can be adjusted in src/network.ts.

Supported Chains

  • Polygon

Alerts

  • ALPERP-1-1

    • Fired when a newly open position size is large
    • Severity is always set to "Info".
    • Type is always set to "Info".
    • Metadata contains:
      • perpTrade: Address of Perp Trade contract.
      • account: Address of position owner.
      • positionSize: Size of the opened position.
      • positionKey: Key of the opened position.
  • ALPERP-1-2

    • Fired when there is a large increase of an existing position
    • Severity is always set to "Info".
    • Type is always set to "Info".
    • Metadata contains:
      • perpTrade: Address of Perp Trade contract.
      • account: Address of position owner.
      • positionIncrementSize: Size of the increased position
      • finalPositionSize: Final position size after increment
      • positionKey: Key of the increased position.

Test Data

The bot behaviour can be verified with the following transactions:

0.0.1

1 year ago