Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
application.properties [2018/10/08 03:32]
gingerman
application.properties [2019/06/16 03:51] (current)
armchairguru
Line 1: Line 1:
 ===== application.properties ===== ===== application.properties =====
- +<callout type="​success"​ icon="​glyphicon glyphicon-barcode">​ 
-**Changes to this file will require you to restart the bot.** +**Changes to the API key or API Secret ​will require you to restart the bot.**\\ 
- +\\ 
-[[application.properties1|Click here for Version 1 settings]] +Click to jump to the section listed.\\ 
 +\\
   * [[application.properties#​General Settings]]   * [[application.properties#​General Settings]]
   * [[application.properties#​api_keys|API Settings]]   * [[application.properties#​api_keys|API Settings]]
Line 11: Line 11:
   * [[application.properties#​other_options|Additional Options]]   * [[application.properties#​other_options|Additional Options]]
   * [[application.properties#​API Throttle]]   * [[application.properties#​API Throttle]]
 +</​callout>​
  
-===== Example application.properties file =====+\\
 Click to view the explanation of each parameter.\\ Click to view the explanation of each parameter.\\
  
Line 22: Line 23:
 [[application.properties#​server.context_path]] = \\ [[application.properties#​server.context_path]] = \\
 [[application.properties#​server.exchange_url]] = \\ [[application.properties#​server.exchange_url]] = \\
 +[[application.properties#​server.display_advanced_stats]] = true\\
  
 [[application.properties#​server.sitename]] =  My BTC Bot \\ [[application.properties#​server.sitename]] =  My BTC Bot \\
Line 28: Line 30:
  
 [[application.properties#​server.timezone_offset]] = +00:00\\ [[application.properties#​server.timezone_offset]] = +00:00\\
-[[application.properties#​server.language]] = engb\\+[[application.properties#​server.timezone]] = US/Eastern \\ 
 +[[application.properties#​server.language]] = enus\\
 [[application.properties#​server.skin]] = dark\\ [[application.properties#​server.skin]] = dark\\
 [[application.properties#​server.currency]] = USD\\ [[application.properties#​server.currency]] = USD\\
Line 41: Line 44:
 [[application.properties#​telegram|telegram.bot_token_1]] = \\ [[application.properties#​telegram|telegram.bot_token_1]] = \\
 [[application.properties#​telegram|telegram.chat_1]] = \\ [[application.properties#​telegram|telegram.chat_1]] = \\
 +[[application.properties#​telegram.new_signal_notification]] = true\\
 [[application.properties#​telegram.disable_notification]] = false\\ [[application.properties#​telegram.disable_notification]] = false\\
  
 [[application.properties#​discord|discord.bot_token_1]] = \\ [[application.properties#​discord|discord.bot_token_1]] = \\
 [[application.properties#​discord|discord.chat_1]] = \\ [[application.properties#​discord|discord.chat_1]] = \\
 +[[application.properties#​discord.new_signal_notification]] = true\\
 +[[application.properties#​discord.new_signal_notification_channel]] = \\
  
 [[application.properties#​api_keys|default_api_key]] ​         = The Exchange API key registered with PT Assistant\\ [[application.properties#​api_keys|default_api_key]] ​         = The Exchange API key registered with PT Assistant\\
 [[application.properties#​api_keys|default_api_secret]] ​      = The Secret key for the default_api_key\\ [[application.properties#​api_keys|default_api_secret]] ​      = The Secret key for the default_api_key\\
-[[application.properties#​api_keys|trading_api_key]] ​         = The second Exchange API key.\\ 
-[[application.properties#​api_keys|trading_api_secret]] ​      = The Secret for the second API Key\\ 
  
 [[application.properties#​telegram|telegram.startup_notification]] = true\\ [[application.properties#​telegram|telegram.startup_notification]] = true\\
Line 60: Line 64:
 #testmode does paper trading so you will see buy and sell activity.\\ #testmode does paper trading so you will see buy and sell activity.\\
 [[application.properties#​server.test_mode]] = true\\ [[application.properties#​server.test_mode]] = true\\
 +[[application.properties#​server.use_testnet]] = false\\
  
 #timeout in seconds\\ #timeout in seconds\\
Line 65: Line 70:
  
 #enabling debug mode\\ #enabling debug mode\\
-[[application.properties#​logging.level.nl.komtek]] = DEBUG\\ +[[application.properties##​logging.level.nl.komtek]] = DEBUG\\
-[[application.properties#​logging.level.nl.komtek.pt.services]] = TRACE\\+
  
 #API Throttle Interim Fix \\ #API Throttle Interim Fix \\
Line 82: Line 86:
 </​file>​ </​file>​
 Place your ProfitTrailer license here.  Place your ProfitTrailer license here. 
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == server.port == == server.port ==
Line 91: Line 98:
  
 **Note:** **Note:**
 +  - 8080 is a reserved networking port and might not work on some operating systems.
   - 8085 is reserved for some VM applications and might not work on some operating systems.   - 8085 is reserved for some VM applications and might not work on some operating systems.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 101: Line 111:
  
 Bind the Profit trailer instance to a specific WAN/Public IP address. Useful for uses with multiple public IP addresses and multiple bots. Bind the Profit trailer instance to a specific WAN/Public IP address. Useful for uses with multiple public IP addresses and multiple bots.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 108: Line 120:
 trading.exchange = BITTREX trading.exchange = BITTREX
 </​file>​ </​file>​
-Use to set the exchange you want the bot to connect to. Possible values (POLONIEX, BITTREX, BINANCE).+Use to set the exchange you want the bot to connect to. Possible values (POLONIEX, BITTREX, BINANCE, KUCOIN, HUOBI, BITMEX).
 Must be in CAPITALS. Must be in CAPITALS.
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == server.sitename == == server.sitename ==
Line 117: Line 132:
 </​file>​ </​file>​
 Set the unique text you wish to appear in the browser tab (website title). This it also used in [[application.properties#​Discord]] and [[application.properties#​Telegram]] Notifications Set the unique text you wish to appear in the browser tab (website title). This it also used in [[application.properties#​Discord]] and [[application.properties#​Telegram]] Notifications
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == trading.log_history == == trading.log_history ==
  
 <file java> <file java>
-trading.log_history = 7+trading.log_history = 8
 </​file>​ </​file>​
-Set how many days of sell log history to show in the GUI. Once the set number of days passes, older history will be **removed** from the bot. Set this for as long as you want to hold the sales history in ProfitTrailer. ​With [[Pro Features#​PTTracker]] now included with any PRO license ProfitTrailer PRO users will be able to maintain ​an indefinite history in Tracker regardless of how many days are stored in ProfitTrailer.+Set how many days of sell log history to show in the GUI. Once the set number of days passes, older history will be **removed** from the bot. Set this for as long as you want to hold the sales history in ProfitTrailer. 
 + 
 +The bot can easily manage a a couple of months of history. Storing trade history data is unlimited when set to 0 or an invalid value. 
 + 
 +**Notes:​** 
 +  * Backups ​are stored in the /​data/​backups folder. 
 +  * history setting has a max of 1826 
 + 
 +[[application.properties#​top]]
  
-The bot can easily manage a a couple of months of history. The maximum value is 1826 days (5 years). ​ 
 ---- ----
 == server.timezone_offset == == server.timezone_offset ==
 +**Use server.timezone Instead**
  
 <file java> <file java>
Line 134: Line 160:
 Set your desired timezone relative to where you live. Important Correct format +hh:mm or -hh:mm Set your desired timezone relative to where you live. Important Correct format +hh:mm or -hh:mm
 See **[[https://​www.timeanddate.com/​time/​map/​]]** if you have no idea what timezone you live in. See **[[https://​www.timeanddate.com/​time/​map/​]]** if you have no idea what timezone you live in.
 +
 +**Note:**
 +  - ''​[[application.properties#​server.timezone]]''​ will be used instead of the offset if it is entered.
 +
 +[[application.properties#​top]]
 +
 +----
 +== server.timezone ==
 +
 +<file java>
 +server.timezone = US/Eastern
 +</​file>​
 +Valid Values: [[timezones|Java Time Zones]]
 +
 +Set the timezone ID of the location you live. This will take precedence over ''​[[application.properties#​server.timezone_offset]]''​ and will automatically handle daylight saving times.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 141: Line 184:
 server.disable_password = false server.disable_password = false
 </​file>​ </​file>​
-Set to true to disable password login to access to your monitoring page.  +Set to true to disable password login to access to your monitoring page. 
 + 
 +[[application.properties#​top]] 
 ---- ----
 == server.disable_config == == server.disable_config ==
Line 148: Line 194:
 server.disable_config = true server.disable_config = true
 </​file>​ </​file>​
-If set to true this will disable the "​Config"​ options in the web GUI. +If set to true this will disable the "​Config"​ options in the web GUI. 
 + 
 +[[application.properties#​top]] 
 ---- ----
 == server.disable_online_config == == server.disable_online_config ==
Line 164: Line 213:
   -  send back offline   -  send back offline
   -  save in offlineData   -  save in offlineData
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 172: Line 223:
 </​file>​ </​file>​
 Enables a button in the GUI to safely stop the bot. Enables a button in the GUI to safely stop the bot.
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == server.disable_notification == == server.disable_notification ==
Line 179: Line 233:
 </​file>​ </​file>​
 Set to true to disable the GUI notifications (errors, config changes etc). Set to true to disable the GUI notifications (errors, config changes etc).
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == server.disable_browser ​ == == server.disable_browser ​ ==
Line 185: Line 242:
 server.disable_browser = false server.disable_browser = false
 </​file>​ </​file>​
-Set to true to stop the browser from automatically opening each time the bot starts. ​ +Set to true to stop the browser from automatically opening each time the bot starts.
-----+
  
 +[[application.properties#​top]]
 +
 +----
  
 \\ \\
Line 199: Line 258:
 default_api_secret = default_api_secret =
 </​file>​ </​file>​
-Put the exchange API key here that you registered when purchasing (or by using the PT Assistant Bot) and its secret key here. +Put the exchange API key here that you registered when purchasing (or by using the PT Assistant Bot) and its secret key here. 
 + 
 +[[application.properties#​top]] 
 ---- ----
-== trading_api_key == 
-== trading_api_secret == 
  
-<file java> 
-trading_api_key = 
-trading_api_secret = 
-</​file>​ 
-Put a second exchange API key here that will be used to do all the buying and selling. This API key does **NOT** need to be registered. Use a different API Key to default_api_key. 
----- 
 \\ \\
 ==== Telegram ==== ==== Telegram ====
Line 244: Line 298:
  
 ---- ----
 +== telegram.new_signal_notification ==
  
 +<file java>
 +telegram.new_signal_notification = true
 +</​file>​
 +Set to true to enable a notification to be sent when a new [[Signals|signal]] is received.
 +
 +----
 == telegram.disable_notification == == telegram.disable_notification ==
  
Line 251: Line 312:
 </​file>​ </​file>​
 Set to true disable the sound on telegram notifications. Set to true disable the sound on telegram notifications.
- 
  
 ---- ----
Line 267: Line 327:
 </​file>​ </​file>​
 Set to true to add telegram notifications on shutdown. Will not work for unexpected shutdowns. Set to true to add telegram notifications on shutdown. Will not work for unexpected shutdowns.
 +
 +[[application.properties#​top]]
  
 ---- ----
 +
 \\ \\
 ==== Discord ==== ==== Discord ====
Line 280: Line 343:
 </​file>​ </​file>​
 Your first Discord bot token. ​ Your first Discord bot token. ​
 +
 ---- ----
 == discord.chat_1 == == discord.chat_1 ==
Line 287: Line 351:
 </​file>​ </​file>​
 The channel name that the bot will post notifications in. The channel name that the bot will post notifications in.
 +
 ---- ----
 == discord.bot_token_2 == == discord.bot_token_2 ==
Line 294: Line 359:
 </​file>​ </​file>​
 Your second Discord bot token. ​ Your second Discord bot token. ​
 +
 ---- ----
 == discord.chat_2 == == discord.chat_2 ==
Line 301: Line 367:
 </​file>​ </​file>​
 The channel name that the second bot will post notifications in. The channel name that the second bot will post notifications in.
 +
 +----
 +== discord.new_signal_notification ==
 +
 +<file java>
 +discord.new_signal_notification = true
 +</​file>​
 +Set to true to enable a notification to be sent when a new [[Signals|signal]] is received.
 +
 +----
 +== discord.new_signal_notification_channel ==
 +
 +<file java>
 +discord.new_signal_notification_channel = channel name
 +</​file>​
 +Set a separate channel for new SIGNAL notifications to be sent to. If nothing is set ''​discord.chat_1''​ will be used instead.
 +
 ---- ----
 == discord.startup_notification == == discord.startup_notification ==
Line 308: Line 391:
 </​file>​ </​file>​
 Set to true to add discord notifications on startup. Set to true to add discord notifications on startup.
 +
 ---- ----
 == discord.shutdown_notification == == discord.shutdown_notification ==
Line 315: Line 399:
 </​file>​ </​file>​
 Set to true to add discord notifications on shutdown. Will not work for unexpected shutdowns. Set to true to add discord notifications on shutdown. Will not work for unexpected shutdowns.
 +
 +[[application.properties#​top]]
 +
 ---- ----
 +
 \\ \\
 ==== Other Options ==== ==== Other Options ====
Line 333: Line 421:
   - Pairs and DCA heartbeats may not occur   - Pairs and DCA heartbeats may not occur
   - You will not see your existing holdings on the exchange.   - You will not see your existing holdings on the exchange.
 +
 +[[application.properties#​top]]
  
 ---- ----
 +== server.display_advanced_stats ==
  
 +<file java>
 +server.display_advanced_stats = false
 +</​file>​
 +Pro/​Advanced Users only: Set to false to disable advanced statistics in the GUI.\\
 +**NOTE:** This is enabled by default. You can turn advanced stats off using this setting.
  
 +{{stats-as-2.png?​800&​nolink|}}
 +
 +\\
 +To see all of the advanced statistic explanations,​ [[web_interface_guide#​advanced_statistics|check the web interface guide here]].
 +
 +\\
 +[[application.properties#​top]]
 +
 +----
 == server.test_mode == == server.test_mode ==
  
Line 349: Line 454:
 When changing from test mode to live trading a restart is required. Reset the testmode data using the reset button in the GUI before restarting. ​ When changing from test mode to live trading a restart is required. Reset the testmode data using the reset button in the GUI before restarting. ​
  
-You can use the button in the settings menu or the url http://​localhost:​8081/​settings/​test/​reset to reset test_mode ​sales, pairs and DCA data without restarting if you wish to try another strategy with a clean slate.+You can use the button in the settings menu or the url http://​localhost:​8081/​settings/​test/​reset to reset sales, pairs and DCA data without restarting if you wish to try another strategy with a clean slate.
  
 **Notes:​** ​ **Notes:​** ​
   - Your real coins and balance will not display while in test mode. The bot ignores them while paper trading.   - Your real coins and balance will not display while in test mode. The bot ignores them while paper trading.
-  - ''​[[pairs.properties#start_balance]]'' ​needs to be set in pairs.properties. +  - ''​[[hotconfig#test_mode_start_balance]]'' ​is used to set a Start Balance to use for test mode funds
-  - Deleting ProfitTrailerData.json will also clear the data but at the expense of any real data also+  - Even if you ran a live bot and a test mode bot side by side the results would sometimes differ. The test mode bot will assume all attempts to buy or sell were successful where as if it were live it might have expired
-  - Even if you ran a live bot and a test mode bot side by side the results would sometimes differ. The test mode bot will assume all attempts to buy or sell were successful where as if it were live it might have expired. ​+  - There is a 15 second delay after a reset before trading resumes.
  
 +[[application.properties#​top]]
 +
 +----
 +== server.use_testnet ==
 +
 +<file java>
 +server.use_testnet = true
 +</​file>​
 +Set to true to use the test net instead of the live net on Bitmex. ​
 +
 +**Notes:**
 +  - Not applicable to any other exchanges.
 +  - unlike ProfitTrailers [[application.properties#​server.test_mode]] the Bitmex testnet is not using the exact same data as the live net.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 369: Line 489:
 The token is like a password. Configure any random string of letters and numbers. e.g (kjashd983h2dn9832jdi3d0892h3d) The token is like a password. Configure any random string of letters and numbers. e.g (kjashd983h2dn9832jdi3d0892h3d)
  
 +[[application.properties#​top]]
  
 ---- ----
Line 382: Line 503:
 **Notes:** **Notes:**
   - This does not change the requirement to run each bot on a different port.   - This does not change the requirement to run each bot on a different port.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 400: Line 523:
 Bittrex: https://​www.tradingview.com/​chart/?​symbol=BITTREX:​%c%b \\ Bittrex: https://​www.tradingview.com/​chart/?​symbol=BITTREX:​%c%b \\
 Poloniex: https://​www.tradingview.com/​chart/?​symbol=POLONIEX:​%c%b \\ Poloniex: https://​www.tradingview.com/​chart/?​symbol=POLONIEX:​%c%b \\
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 410: Line 535:
  
 Use this setting if you are getting too many Websocket timeout errors. Default length is 30 seconds but you can increase this if required. Use this setting if you are getting too many Websocket timeout errors. Default length is 30 seconds but you can increase this if required.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 418: Line 545:
 </​file>​ </​file>​
 Choose between three possible skins dark, light and default. ​ Choose between three possible skins dark, light and default. ​
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 433: Line 562:
   * CHT = Chinese Traditional   * CHT = Chinese Traditional
   * CHS = Chinese Simplified   * CHS = Chinese Simplified
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 472: Line 603:
   * USD - United States Dollar   * USD - United States Dollar
   * ZAR - South African Rand   * ZAR - South African Rand
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 481: Line 614:
 Support may ask you to run your bot in debug mode to help us work out why something is not working. You can run it in debug mode using this parameter. Running in DEBUG mode constantly is not recommended as the log file is huge. Support may ask you to run your bot in debug mode to help us work out why something is not working. You can run it in debug mode using this parameter. Running in DEBUG mode constantly is not recommended as the log file is huge.
  
-**WARNING:​** The log file will contain sensitive information such as your API Keys. If subsequently providing screenshots to supportbe sure to censor such information. +**WARNING:​** The log file will contain sensitive information such as your API Keys. Do not post pictures/​files/​links of your logs in open/public chatuse the support initiated ticket channels as they are private.
-----+
  
-\\ +[[application.properties#top]]
-**[[application.properties|TOP]]** +
-\\+
  
 +----
 === API Throttle === === API Throttle ===
-These parameters are a temporary solution to reduce the rate of  API calls while we continue to rewrite the API code. +These parameters are a temporary solution to reduce the rate of  API calls while we continue to rewrite the API code.\\ 
 +**NOTE: These are not always necessary. Mostly they can be removed or commented in the file so they are ignored except in specific circumstances.**
 ---- ----
- 
 == server.throttle_millis == == server.throttle_millis ==
  
Line 541: Line 671:
 **[[application.properties|TOP]]** **[[application.properties|TOP]]**
 \\ \\
- 
-~~DISCUSSION~~ 
  • application.properties.1538969563.txt.gz
  • Last modified: 9 months ago
  • by gingerman