Private configPrivate defaultBuild a cancel order transaction
Cancel order transaction data.
Build a claim fee transaction
This method only claims for the transaction sending address. OperatingFor is not supported
Build a limit order transaction
Limit order transaction data.
Build a modify position transaction. Can be used to increase/decrease an existing position, open/close a position and deposit or withdraw collateral.
Modify position transaction data.
Build a place order transaction. Can be used to set combined limit, stop loss and take profit orders.
Place order transaction data.
Build a EIP712 paylod for signing a market update intent
Build a EIP712 paylod for signing a take order
Build a stop loss order transaction
Stop loss transaction data.
Build a take profit order transaction
Take profit transaction data.
Build an update market transaction. Can be used to increase/decrease an existing position, open/close a position and deposit or withdraw collateral
Update market transaction data.
Build a update intent transaction
Fetches active position history for a given address
User's position history for an active position.
Fetches position PnL for a given market and Address
User's PnL for an active position.
Fetches the position history for a given address
User's position history.
Fetches the MarketOracles
The MarketOracles.
Fetches the MarketSnapshots
The MarketSnapshots.
Fetches the 24hr volume data for a list of market
Markets 24hr volume data.
Fetches Historical data for markets
Market 7d data.
Fetches the open orders for a given address
User's open orders.
Fetches the market settlement fees for a list of markets
Markets settlement fees.
Fetches the sub positions activity for a given position
User's sub positions.
Fetches the trade history across all markets for a given address
User's trade history.
Waits for a perennial transaction to settle and invokes an optional callback
Transaction hash
Optional onSettlement: ((res) => void)Optional callback to invoke on settlement
Optional txOptional version?: { Rest ...args: [args: OmitBound<BuildCancelOrderSigningPayloadArgs> & OptionalAddress]Sign a EIP712 intent signing payload
Rest ...args: [args: OmitBound<BuildIntentSigningPayloadArgs> & OptionalAddress]Rest ...args: [args: OmitBound<BuildPlaceOrderSigningPayloadArgs> & OptionalAddress]Sign a EIP712 take signing payload
Rest ...args: [args: OmitBound<BuildTakeSigningPayloadArgs> & OptionalAddress]Send a cancel order transaction
Transaction Hash.
Rest ...args: [args: OmitBound<BuildCancelOrderTxArgs> & OptionalAddress]Send a claim fee transaction
Rest ...args: [args: OmitBound<BuildClaimFeeTxArgs> & OptionalAddress]Send a limit order transaction
Transaction hash.
Rest ...args: [args: OmitBound<BuildLimitOrderTxArgs> & OptionalAddress]Send a modify position transaction. Can be used to increase/decrease an existing position, open/close a position and deposit or withdraw collateral.
Transaction Hash
Rest ...args: [args: OmitBound<BuildModifyPositionTxArgs> & OptionalAddress]Send a place order transaction. Can be used to set limit, stop loss and take profit orders.
Transaction Hash.
Rest ...args: [args: OmitBound<BuildPlaceOrderTxArgs> & OptionalAddress]Send a stop loss order transaction
Transaction hash.
Rest ...args: [args: OmitBound<BuildStopLossTxArgs> & OptionalAddress]Send a take profit order transaction
Transaction hash.
Rest ...args: [args: OmitBound<BuildTakeProfitTxArgs> & OptionalAddress]Send an update market transaction. Can be used to increase/decrease an existing position, open/close a position and deposit or withdraw collateral
Transaction Hash.
Rest ...args: [args: OmitBound<BuildUpdateMarketTxArgs> & OptionalAddress]Send a update intent transaction
Rest ...args: [args: OmitBound<BuildUpdateIntentTxArgs> & OptionalAddress]
Markets module class
Param: config
SDK configuration
Param: config.chainId
SupportedChainId
Param: config.publicClient
Public Client
Param: config.graphClient
GraphQL Client
Param: config.oracleClients
Oracle Clients OracleClients
Param: config.walletClient
Wallet Client
Param: config.operatingFor
If set, the module will read data and send multi-invoker transactions on behalf of this address.
Param: config.supportedMarkets
Subset of availalbe markets to support.
Returns
Markets module instance