Class TradePair

This is analogous to the PairConfig type in the server.

Hierarchy

  • TradePair

Constructors

  • Parameters

    • id: TradePairId
    • initialMarginFraction: BigNumber
    • maintenanceMarginFraction: BigNumber
    • incrementalInitialMarginFraction: BigNumber
    • baselinePositionSize: BigNumber
    • incrementalPositionSize: BigNumber
    • marginFeeFraction: BigNumber
    • spreadFraction: BigNumber
    • isActive: boolean
    • isReduceOnly: boolean
    • maxOpenInterestDiff: null | BigNumber
    • maxOpenInterestLong: null | BigNumber
    • maxOpenInterestShort: null | BigNumber
    • borrowFeeFactor: BigNumber
    • fundingFactor: BigNumber
    • fundingExponent: BigNumber
    • h2soPairData: H2SOPairData
    • usePriceImpact: boolean
    • priceImpactFraction: null | BigNumber
    • skewScale: null | BigNumber

    Returns TradePair

Properties

baselinePositionSize: BigNumber
borrowFeeFactor: BigNumber
fundingExponent: BigNumber
fundingFactor: BigNumber
h2soPairData: H2SOPairData
incrementalInitialMarginFraction: BigNumber
incrementalPositionSize: BigNumber
initialMarginFraction: BigNumber
isActive: boolean
isReduceOnly: boolean
maintenanceMarginFraction: BigNumber
marginFeeFraction: BigNumber
maxOpenInterestDiff: null | BigNumber
maxOpenInterestLong: null | BigNumber
maxOpenInterestShort: null | BigNumber
pair: Pair
priceImpactFraction: null | BigNumber
skewScale: null | BigNumber
spreadFraction: BigNumber
usePriceImpact: boolean
divisor: BigNumber = ...

Methods

Generated using TypeDoc