Phemex API
type: WebAPI
description: Phemex is a cryptocurrency derivatives exchange offering REST and WebSocket APIs for spot trading, perpetual contracts, futures, hedged perpetual contracts, asset transfers, and real-time market data.
provider: Phemex
  type: Organization
  contact point: ContactPoint
    contact type: customer support
documentation: https://github.com/phemex/phemex-api-docs
terms of service: https://phemex.com/terms-conditions
potential action: placeOrder
  type: SearchAction
  description: Place a trading order on Phemex
  target: https://api.phemex.com/orders
potential action: getOrderBook
  type: SearchAction
  description: Retrieve current order book
  target: https://api.phemex.com/md/orderbook
potential action: getPositions
  type: SearchAction
  description: Retrieve account positions
  target: https://api.phemex.com/accounts/accountPositions
available channel: REST API
  type: ServiceChannel
  service url: Phemex API
available channel: WebSocket API
  type: ServiceChannel
  service url: wss://phemex.com/ws
available channel: Testnet REST API
  type: ServiceChannel
  service url: https://testnet-api.phemex.com
keywords: cryptocurrency
keywords: derivatives
keywords: spot trading
keywords: perpetual contracts
keywords: futures
keywords: websocket
keywords: market data
keywords: hedged perpetual
has credential: HMAC SHA256 Authentication
  type: DigitalDocument
  description: API requests are authenticated using HMAC SHA256 signatures. Required headers: x-phemex-access-token, x-phemex-request-expiry, x-phemex-request-signature.
subject of: Phemex Contract Trading API
  type: SoftwareApplication
  application category: Financial Trading
  description: REST and WebSocket API for trading perpetual contracts, position management, and market data.
subject of: Phemex Spot Trading API
  type: SoftwareApplication
  application category: Financial Trading
  description: REST and WebSocket API for spot trading, wallet queries, and market data.
subject of: Phemex Hedged Perpetual API
  type: SoftwareApplication
  application category: Financial Trading
  description: REST and WebSocket API for hedged perpetual contract trading with independent long/short leverage.
subject of: Phemex Asset Transfer API
  type: SoftwareApplication
  application category: Financial Services
  description: REST API for asset transfers between account types and sub-account management.