@aftermath/perpetuals-v2-position (0x9196…8dec) | SuiLearn ExplorerMove package · Move Registry
@aftermath/perpetuals-v2-position
0x9196fffe0341b2f0ca7424926b22d9e9e35b4807a1f625fc20eeea1382d08dec
Defines the Position type used by Aftermath's perpetuals exchange.
Open in Playground Read the source, view function signatures and call functions there.
Details
- Version
- 1
- Modules
- 2 (35 functions)
- Name
- @aftermath/perpetuals-v2-position
- Latest version
- v1
- Contact
- github@aftermath.finance
Published by the package owner in the Move Registry. Use the name in code with mvr add @aftermath/perpetuals-v2-position.
constants0 functions · 0 structs
Explore constants in Playground position35 functions · 1 structs
Functions
- abs_net_basePUBLIC
- add_base_to_positionPUBLIC
- add_to_collateralPUBLIC
- add_to_collateral_usdPUBLIC
- add_to_pending_amountPUBLIC
apply_maker_fill_or_restore_if_bad_debtPUBLICapply_taker_fills_and_settlePUBLICbase_and_quote_amountsPUBLICcalculate_bankruptcy_pricePUBLICcalculate_position_funding_internalPUBLICcollateralPUBLICcompute_free_collateralPUBLICcompute_free_collateral_with_fundingsPUBLICcompute_margin_and_free_collateralPUBLICcompute_margin_and_requirementPUBLICcompute_margin_with_fundingsPUBLICcreate_positionPUBLICeffective_collateral_usd_valueeffective_collateral_usd_value_with_fundingeffective_initial_margin_ratioPUBLICensure_margin_requirementsPUBLICfunding_rate_snapshotsPUBLICinitial_margin_ratioPUBLICis_long_or_flatPUBLICmargin_requirementPUBLICpending_base_amounts_by_sidePUBLICpending_order_countPUBLICreset_collateralPUBLICset_initial_margin_ratioPUBLICsettle_position_fundingPUBLICsub_from_collateralPUBLICsub_from_pending_amountPUBLICunrealized_fundingPUBLICunrealized_pnlPUBLICupdate_pending_ordersPUBLIC