Logo hamster-bot Claude new: MCP Hyperliquid new: Hyperliquid 1 771 of us in the chat
RU EN PT
Loading…

Trading bot for OKX

hamster-bot runs on your own computer or VPS and trades on OKX through the API. Your money stays in your exchange account, and the keys never leave your machine: they are only in the bot's settings.

Sign up on OKX Download the bot

Markets

In the bot settings, set exchange.name and the pair as the exchange names it:

Market exchange.name Pair example
USDT-M futures (perpetual) okx BTC-USDT-SWAP
Coin-M futures (inverse) okx BTC-USD-SWAP
Delivery futures okx BTC-USDT-250627
Spot okx BTC-USDT

On spot the bot only goes long, there is no shorting.

API key

Create an API key on OKX with trading permission. The bot never needs to withdraw, so leave that permission off. If the exchange allows it, restrict the key to the IP of the computer or server the bot runs on.
OKX will ask you to set a passphrase for the key. Save it, because the bot needs it too.
To trade futures, switch your OKX account mode to «Spot and futures». In «Spot only» mode the bot can only trade spot.

Strategies

All of the bot's strategies are available on OKX. Before trading real money, run your settings on historical data in the tester.

ZigZag, ZZ · ZigZag Double, ZigZag MarketOrder · Donchian Channel · Channel Close Strategy · RiskTurtle · Moving Average Crossover, Price vs MA, MACD Trend · Squeeze · RSI Pullback · DoubleDragon · MRS · MRS2, MRS2 FAST · MRS3 · HiDeep · RedFlag · SmartProfit · Grid · ShadowOverlap · TV MAPM · MZ · TradingView Webhook · Volume Market · Long/Short-bot · Close Position Delete Orders

Videos

OKX support in hamster-bot video OKX support in hamster-bot First launch of the trading bot video First launch of the trading bot Trading on TradingView alerts video Trading on TradingView alerts

All videos →

Exchange sign-up

If you don't have a OKX account yet, please sign up with my referral link. It helps me keep working on the bot.


Other exchanges: Bybit · Binance · Bitget · BingX · BTSE · Hyperliquid

Compared with cloud bots: 3Commas · Bitsgap · Cryptohopper