Account
Phemex
PHEMEX × HAASONLINE

Phemex Trading Bot

Automate your Phemex trading with HaasOnline TradeServer. Connect your own API keys, build strategies in HaasScript, backtest them against real market data, and run them across all 2 of our Phemex integrations.

About Phemex

Phemex was founded in 2019 in Singapore by a team of former Morgan Stanley engineers led by Jack Tao, with derivatives as its original focus.

We connect to both Phemex venues. Its contracts venue offers perpetual and dated futures on BTC, ETH and a wide range of altcoins, in both USDT-margined (linear) and coin-margined (inverse) variants with leverage up to 100x, served by a low-latency matching engine and a unified sub-account structure. Its spot exchange runs alongside, unlevered, so a spot strategy and a leveraged one can both be pointed at Phemex.

For automation, the sub-account architecture is the feature that matters: you can segregate strategies onto separate sub-accounts so one bot's drawdown cannot consume another's margin. Combined with the low-latency engine, Phemex suits higher-frequency strategies better than most venues we support.

What we support on Phemex

Integration Markets Trading
Phemex 450+ Spot
Phemex Contracts 150+ Derivatives

Strategies you can run on Phemex

  • Arbitrage: exploit price differences between two connected venues, so it needs a second exchange
  • DCA: average into a position on a schedule or on drawdown triggers
  • Grid trading: ladder orders through a range and work the swings inside it
  • Market making: quote both sides and earn the spread
  • Ping pong: buy a level, sell the next one up, repeat
  • Scalping: short-horizon entries and exits on your own tick interval
  • Signals: trade an external webhook, from TradingView or your own source, with each incoming signal firing the bot immediately
  • WaveRunner: grid trading with anchor-scale safety and auto re-anchoring
  • Zone recovery: hedge a losing position rather than close it, and work back to flat
  • Custom HaasScript: Lua-based, 750+ built-in commands, visual or full-script editors

Phemex's spot and derivatives markets are separate integrations on our side, so one set of API keys gives your bots both order books and a spot strategy and a leveraged one can run side by side.

Every strategy can be backtested against historical Phemex data before you commit capital, and you can connect an AI assistant through our MCP server to audit and write strategies in conversation.

Automate Phemex in minutes

Free for 7 days. Your keys and funds stay on your own Phemex account.
Start free 7-day trial View all supported exchanges

Automated trading does not remove market risk. Past performance is not indicative of future results, and only deploy capital you can afford to have at risk.