LogoLogo
Back to HaasOnline.comSwitch to Developer API
3.x
3.x
  • Welcome
  • Getting Started
    • What is Haas Trade Server?
    • System Requirements
    • Installation
      • Windows
      • Linux
        • Downgrading Mono
      • MacOS
    • Configuration
      • License Key
        • Upgrading Your License
      • Price Drivers & Accounts
      • Exchanges
        • Binance
        • Binance USDT Futures
        • Binance COIN Futures
        • Binance US
        • Bitfinex
        • BitMEX
        • Bitpanda Pro
        • Bitstamp
        • Bittrex
        • Bybit
        • (Unsupported) C-Cex
        • Cex.IO
        • (Unsupported) CobinHood
        • Coinbase PRO
        • Deribit
        • (Unsupported) FTX
        • Gemini
        • HitBTC
        • Huobi
        • Ionomy
        • Kraken
        • Kraken Futures
        • KuCoin
        • (Unsupported) NovaExchange
        • OKCoin
        • OKEX
        • OKEX-Futures
        • OKEX-Swap
        • Poloniex
        • Scripted Driver
    • Updating HTS
      • Stable Update
      • Beta Update
    • Apps
      • Discord
      • Telegram
    • Security
      • Two-factor Authentication (2FA)
    • Troubleshooting
      • Frequently Asked Questions
      • Two-factor Authentication (2FA)
      • Debugging & Logs
      • Exchange API
      • Invalid License
      • Lost Login Credentials
      • Orders Being Rejected
      • Unresponsive HTS UI
      • Using Safe Mode
    • Tips & Tricks
      • Keyboard Shortcuts
      • Migrating Your HTS
      • Never Logout
      • Reactivate Bots on Startup
      • Used Symbols
  • Trade Bots
    • Getting Started
    • General Settings
    • Trade Settings
    • Bot Charts
    • Indicators
      • Candlestick Patterns
        • Advance Block
        • Belt Hold
          • Belt Hold Bearish
          • Belt Hold Bullish
        • Break Away
          • Breakaway Bearish
          • Breakaway Bullish
        • Closing Marubozu
        • Concealing Baby Swallow
        • Counter Attack
          • Counter Attack Bullish
          • Counter Attack Bearish
        • Doji
        • Doji Star
        • Dragon Fly Doji
        • Engulfing Bearish
        • Engulfing Bullish
        • Gap Side-by-Side White Lines
        • Gravestone Doji
        • Hammer
        • Hanging Man
        • Harami
          • Harami Bearish
          • Harami Bullish
        • Harami Cross
          • Harami Cross Bearish
          • Harami Cross Bullish
        • High Wave
        • Hikkake
          • Hikkake Bearish
          • Hikkake Bullish
        • Homing Pigeon
        • Identical Three Crows
        • In Neck
        • Inverted Hammer
        • Kicking Bearish
        • Kicking Bullish
        • Ladder Bottom
        • Long Legged Doji
        • Long Line
        • Matching Low
        • Marubozu
          • Marubozu Bearish
          • Marubozu Bullish
        • On Neck
        • Rickshaw Man
        • Rise Fall Three Methods
        • Separating Lines
        • Shooting Star
        • Short Line
        • Simple Double Down Candle
        • Simple Double Up Candle
        • Simple Down Candle
        • Simple Up Candle
        • Spinning Top
        • Stalled Pattern
        • Stick Sandwich Down
        • Stick Sandwich Up
        • Tasuki Gap
        • Three Black Crows
        • Three Inside Down
        • Three Inside Up
        • Three Line Strike
          • Three Line Strike Bearish
          • Three Line Strike Bullish
        • Three Outside Down
        • Three Outside Up
        • Three Stars in North
        • Three Stars in South
        • Three White Soldiers
        • Tristar
        • Thrusting
        • Two Crows
      • Aroon
      • Aroon Oscillator
      • Awesome Oscillator
      • Balance of Power (BOP)
      • Blind Indicator
      • Bollinger Bands
      • Bollinger Bands %B
      • Bollinger Bands %W
      • Commodity Channel Index (CCI)
      • Chande Momentum Oscillator (CMO)
      • Connors RSI (CRSI)
      • Coppock Curve
      • Detrended Price Oscillator (DPO)
      • Donchian Channels
      • Double Exponential Moving Average (DEMA)
      • Dynamic Buy/Sell
      • Elliot Wave Prediction
      • Exponential Moving Average (EMA)
      • Fast RSI
      • Fibonacci Retracements
      • Fixed Buy/Sell
      • Fractals
      • Ichi Clouds
      • Kaufmans Adaptive Moving Average (KAMA)
      • Keltner Channels
      • Momentum
      • Money Flow Index
      • Moving Average Convergence Divergence (MACD)
      • Parabolic SAR
      • Percentage Price Oscillator
      • Rate Of Change (ROC)
      • Rate Of Change Percent (Alternative) (ROC)
      • Regression Slope Cross
      • Relative Strength Index (RSI)
      • Script Indicator (C#)
      • Simple Moving Average (SMA)
      • Slow RSI
      • Small Fractals
      • Stochastic Oscillator
      • StochRSI
      • Stochastic^2
      • Timed Blind Indicator
      • Tom Demark Sequential (TD)
      • Triangular Moving Average (TRIMA)
      • Triple Exponential Average (TRIX)
      • Triple Exponential Moving Average (TEMA)
      • Ultimate Oscillator
      • Weighted Moving Average (WMA)
      • Williams %R
    • Safeties
      • Stop Loss
        • Stop Loss
        • Stop Loss (Fixed)
        • Stop Loss (Dynamic)
        • Stop Loss (Trailing)
        • Close position below % loss
      • Take Profit
        • Take Profit
        • Take Profit (Fixed)
        • Take Profit (Dynamic)
        • Close position above x% profit
      • Roof-In
        • Roof-In
        • Roof-In (Fixed)
        • Roof-In (Dynamic)
        • Roof-In (Trailing)
      • Disable Bot
        • Deactivate bot after buy
        • Deactivate bot after sell
        • Deactivate after X Minutes
        • Deactivate after X Idle Trades
        • Deactivate After X Trades
      • Others
        • Close Before Settlement
        • Force Bot to stay Bought/Long
        • Force Bot to Stay Sold/Short
        • Price Dump
        • Price Pump
        • Reset last buy price
        • Reset last sell price
        • Trade On Trend Lines
      • Script
        • Script Safety (C#)
    • Insurances
      • Fee
        • Overcome Double The Fee Costs
        • Overcome Fee Costs
      • Script
        • Script Insurance (C#)
      • Others
        • Wait after order
      • Price
        • Never Buy Higher
        • Never Sell Lower
        • Absolute Price Change
        • Percentage Price Change
      • Profit/Loss
        • Be Profitable In X Trades
        • Disable on Losses
        • Stay Profitable
      • Trend
        • Trade Only Sideways
        • Trade Only Trending
  • Custom Bots
    • Accumulation Bot
    • Advanced Index Bot
    • C# Script Bot
    • Crypto Index Bot
    • Email Bot
      • Email provider guide
      • Tradingview alert guide
      • Troubleshooting
    • Flash Crash Bot
      • Setup guide
      • Profit calculation
      • Price spread examples
      • Full screen mode
      • Follow the trend
      • Deactivation safety
      • Order management
      • Amount calculator
    • Intelli Alice Bot
    • Inter-Exchange Arbitrage Bot
    • MadHatter Bot
      • Setup Guide
      • Full screen mode
    • Market Making Bot
    • Order Bot
      • Full screen mode
      • Template Manager
    • Ping Pong Bot
    • Scalper Bot
      • Replicating the Scalper Bot in a Trade Bot
    • Trend Lines Bot
    • Zone Recovery Bot
  • Bot Tools
    • Backtesting & Paper Trading
    • Bot Dashboard
    • Bot List
    • Bot Performance Analyzer
    • Haas Labs
  • Bot Extensions
    • Deactivate After Order
    • Deactivate On Safety
    • Flash Crash Bot Manager
    • Manage Bots On Email Alarm
    • Manage Bots On Price Alarm
    • Manage Bots On Indicator
    • Order Persistence
    • Panic Move
    • Trailing Stop
  • Asset Management
    • Portfolio
      • Settings
      • History Synchronisation
      • Dashboard
      • Asset Information
      • Asset Location
      • Asset Trends
      • Trade Profit
      • Trade Volume
      • Trade Frequency
      • Balance Per Day
      • Trade History
      • Deposit & Withdrawal History
      • Position History
    • External Wallet
  • Other Features
    • Advanced Orders
      • Stop Loss
      • Take Profit
      • Trailing Stop
    • Dashboard
      • Alarms
      • Bots Related
      • Bulk Widgets
      • Account Related
      • Calculators
      • Charts
      • Clocks
      • News & Media
      • Order book & Trades
      • Portfolio
      • Tickers
    • Indicator Scanner
    • Manual Trading
    • Marketview
    • Market Compare
    • Order Templates
    • Technical Analysis
  • Changelog
    • Stable Release
    • Beta Release
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Submit support ticket
Powered by GitBook
On this page
  • Installation Video
  • Supported Linux distributions
  • Supported Mono versions
  • Installation
  • Setting Up HTS
  • Troubleshooting
  • Additional resources

Was this helpful?

  1. Getting Started
  2. Installation

Linux

PreviousWindowsNextDowngrading Mono

Last updated 2 years ago

Was this helpful?

Installation Video

Need a VPS? Get credit on or for your first 30 days.

Supported Linux distributions

To be fair, there are so many Linux distributions that we have not tested them all. We simply do not know if they all work or if there are any issues. When you are trying a Linux version which is not listed as supported then please contact the support desk. We'd like to know when something new is tried, if it works, and how well.

Please make sure that your system meets the requirements we have outlined:

The following Linux distributions have been tested and are reported to be functional:

  • Ubuntu 16.04, 18.04, 20.04

  • Arch Linux 2018.10.0

  • Debian 9

  • CentOS 7

Make sure your Linux machine has an external IP-address, internal addresses won't work! It must not look like 192.168.x.x or 10.x.x.x or from 172.16.x.x to 172.31.x.x (f.i. AWS EC2)

Supported Mono versions

To make the HTS platform work on Linux we are using the Mono framework. Since recently Microsoft has taken over the development of Mono and are pushing many updates, some updates work and some updates can give issues.

The versions of Mono have been tested and are reported to be functional:

  • v5.14.0.177

  • v5.18.0.240

  • v5.20.1.19

  • v6.4.0.198

  • v6.6.0.161

  • v6.8.0.123

Mono version 4.x.x and 6.10.x and above have been known to NOT work with the platform. Please make sure you DO NOT install them.

Should you ever need to downgrade your version of Mono, please follow the steps outlined here:

Only downgrade if necessary or recommended by Support.

Installation

Our installation begins with installing a version of Mono framework higher than 5.14.x but lower than 6.8.x. This guide assumes that you are using Ubuntu as your main OS.

Make sure you go through these steps as the root user.

sudo apt-get update
sudo apt-get upgrade
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

To find out what processor your machine is running

cat /proc/cpuinfo | grep vendor_id

Intel processors will output "GenuineIntel".

Copy the command appropriate for your CPU and Ubuntu version into your Terminal

Ubuntu version 16:

echo "deb https://download.mono-project.com/repo/ubuntu xenial/snapshots/5.14.0.177 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu version 18:

echo "deb https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.14.0.177 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu version 20 (lowest version of Mono you can downgrade to is 6.8):

echo "deb https://download.mono-project.com/repo/ubuntu focal/snapshots/6.8 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu version 16:

echo "deb [arch=amd64] https://download.mono-project.com/repo/ubuntu xenial/snapshots/5.14.0.177 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu version 18:

echo "deb [arch=amd64] https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.14.0.177 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu version 20 (lowest version of Mono you can downgrade to is 6.8):

echo "deb [arch=amd64] https://download.mono-project.com/repo/ubuntu focal/snapshots/6.8 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get install mono-complete mono-vbnc

The installation of HTS itself

tar -xzvf linux32.tar.gz

This is how we can start the platform

sudo ./Haasbot.sh

To confirm it's all working use the command below and HTS should be listed on ports 8090 and 8092.

netstat -tulpn

If you need to restart the platform, you can use either of these commands:

sudo killall mono

or

kill $(ps ax | grep mono | fgrep -v grep | awk '{ print $1 }')

Ensure that you set the below settings in MainSettings.XML which you can find in /root/HTS/Settings:

<OpenInterfaceOnStartup> to false.

<HostingAdres> to the IP address of the machine that is hosting your platform. Remember it must not look like 192.168.x.x or 10.x.x.x or from 172.16.x.x to 172.31.x.x

Setting Up HTS

You are now ready to enter your license key.

You can now proceed to insert the API key(s) for the exchange(s) that you use.

Troubleshooting

  • Start HTS in debug mode to see details printed directly to the console, like so:

    mono-service HTS.exe --debug -l:HTS.lock
  • Incorrect login details? Can't login to your HTS? Follow the steps outlined below:

Additional resources

Pre-installation of the

License is invalid error - please contact

System Requirements
Downgrading Mono
Mono framework
License Key
Price Drivers & Accounts
support
Lost Login Credentials
VULTR
Digital Ocean
Linux VPS Installation Guide
Haas Trade Server Ubuntu 18.04 installation comics (Hetzner edition)
Logo