Get Position Info

API Description

Retrieves current position information for a specific trader address. This endpoint provides detailed data about open positions including size, entry price, balance, and funding information. Only positions with non-zero size are returned.

HTTP Request

GET /v4/public/mm/position/list

Request Parameters

Parameter
Type
Required
Description

chainId

uint64

Yes

Chain ID (e.g., 143 for Monad mainnet)

address

string

Yes

Trader address (EVM address format)

Response Parameters

Parameter
Type
Description

balance

string

Position balance (in wei/smallest unit)

size

string

Position size (positive for long, negative for short)

entryNotional

string

Total entry notional value

entrySocialLossIndex

string

Entry social loss index

entryFundingIndex

string

Entry funding index

side

uint32

Position side (0 = LONG, 1 = SHORT)

entryPrice

string

Average entry price (in wei/smallest unit)

lastUpdateTime

uint64

Last update timestamp (Unix timestamp in seconds)

lastUpdateTxHash

string

Transaction hash of last update

instrumentAddr

string

Instrument contract address

expiry

uint32

Expiry timestamp (4294967295 for perpetual)

symbol

string

Trading pair symbol (e.g., BTCUSDC)

Request Example

Python (requests)

Note: This endpoint requires API authentication. See Quick Start Guide for signature generation details.

Response Example

Success Response

Error Response

Notes

  • This endpoint requires API authentication (see Quick Start Guide)

  • Required parameters: chainId, address

  • Response format: Returns an array of position objects

  • Position filtering: Only positions with non-zero size are returned

  • Position side:

    • side: 0 = LONG position

    • side: 1 = SHORT position

  • Position size:

    • Positive value = LONG position

    • Negative value = SHORT position

  • Price and size format: All values are returned as strings in wei/smallest unit format to preserve precision

  • Entry indices:

    • entrySocialLossIndex: Social loss index at entry time

    • entryFundingIndex: Funding index at entry time (used for funding fee calculations)

  • Expiry: 4294967295 indicates a perpetual contract

  • Time fields: lastUpdateTime is a Unix timestamp in seconds (not milliseconds)

  • Transaction hash: lastUpdateTxHash is the transaction hash of the last position update

  • Balance: Current position balance (collateral)

  • Entry price: Average entry price for the position

  • Entry notional: Total notional value at entry

  • Rate limit: 120 requests per minute

  • Success response has code: 0 (not 200)

Last updated