Pacifica
  • Getting Started
    • Closed Alpha Guide
      • Link To Guide PDF
    • Closed Alpha Trading Competition
  • Trading on Pacifica
    • Overview
    • Contract Specifications
      • Oracle Price & Mark Price
      • Settlement Mechanism
    • Order Types
      • Market Order
      • Limit Order
      • Order Rules & Constraints
    • Margin & Leverage
    • Funding Rates
    • Liquidations
  • API Documentation
    • API
      • REST
        • Account
        • Agent
        • Funding
        • Info
        • Kline
        • Orders
        • Portfolio
        • Positions
        • Models
      • Websocket
        • Orderbook
        • Trades
        • Orders
        • Positions
        • User Order History
        • User Trade History
        • Candle
        • Account Data
    • Specification
  • Other
    • Brand Assets
    • Contact Us
    • Glossary of Terms
Powered by GitBook
On this page
  • Params
  • Stream
  1. API Documentation
  2. API
  3. Websocket

Positions

PreviousOrdersNextUser Order History

Last updated 1 month ago

Refer to for establishing the websocket connection.

Params

{
    "source": "positions",
    "user": "<user_address>"
}

Stream

{
    "u":  "<user_address>",
    "s":  "<token_symbol>",
    "d":  "<order_side>",
    "a":  "<position_amount>",
    "p":  "<entry_price>",
    "m":  "<margin>",
    "am": "<added_margin>",
    "lt": <liquidation_ticker>,
    "at": <adl_ticker>,
    "i":  "<is_isolated>",
    "t":  <timestamp>
}
Websocket