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 [2019/02/02 14:38]
taniman
application.properties [2019/04/12 21:35] (current)
armchairguru
Line 20: Line 20:
 [[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 47: Line 48:
 [[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]] = 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_key]] ​         = The second Exchange API key. **(Deprecated,​ no longer used)**\\ 
-[[application.properties#​api_keys|trading_api_secret]] ​      = The Secret for the second API Key\\+[[application.properties#​api_keys|trading_api_secret]] ​      = The Secret for the second API Key **(Deprecated,​ no longer used)**\\
  
 [[application.properties#​telegram|telegram.startup_notification]] = true\\ [[application.properties#​telegram|telegram.startup_notification]] = true\\
Line 68: Line 70:
  
 #enabling debug mode\\ #enabling debug mode\\
 +[[application.properties#​logging.live_stoploss_trigger_update]] = true \\
 [[application.properties#​logging.level.nl.komtek]] = DEBUG\\ [[application.properties#​logging.level.nl.komtek]] = DEBUG\\
 [[application.properties#​logging.level.nl.komtek.pt.services]] = TRACE\\ [[application.properties#​logging.level.nl.komtek.pt.services]] = TRACE\\
Line 85: Line 88:
 </​file>​ </​file>​
 Place your ProfitTrailer license here.  Place your ProfitTrailer license here. 
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == server.port == == server.port ==
Line 94: Line 100:
  
 **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 104: Line 113:
  
 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 113: Line 124:
 Use to set the exchange you want the bot to connect to. Possible values (POLONIEX, BITTREX, BINANCE, KUCOIN, HUOBI, BITMEX). 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 120: Line 134:
 </​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]]
  
 ---- ----
Line 125: Line 141:
  
 <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. 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.
  
-The bot can easily manage a a couple of months of history. ​The maximum value is 1826 days (5 years)+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]]
  
 ---- ----
Line 138: Line 160:
 </​file>​ </​file>​
  
-Define the Signal providers you wish to receive ​signal from. This property is **only required** if your bot is receiving signals from **multiple providers**.+Define the Signal providers ​from which you wish to receive ​signals. This property is **only required** if your bot is receiving signals from **multiple providers**.
 If you have signed up for 3 signal providers and you want a certain bot to receive signals from only 2 of those providers. You can define the providers you want to use separated by a comma. ​ If you have signed up for 3 signal providers and you want a certain bot to receive signals from only 2 of those providers. You can define the providers you want to use separated by a comma. ​
  
Line 144: Line 166:
  
 {{::​signal_sku.png?​180&​direct|}} {{::​signal_sku.png?​180&​direct|}}
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 156: Line 180:
 **Note:** **Note:**
   - ''​[[application.properties#​server.timezone]]''​ will be used instead of the offset if it is entered.   - ''​[[application.properties#​server.timezone]]''​ will be used instead of the offset if it is entered.
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 166: Line 192:
  
 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. 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 173: Line 201:
 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 180: Line 211:
 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 196: Line 230:
   -  send back offline   -  send back offline
   -  save in offlineData   -  save in offlineData
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 204: Line 240:
 </​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 211: Line 250:
 </​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 217: Line 259:
 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 231: Line 275:
 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. 
 ---- ----
 == trading_api_key == == trading_api_key ==
Line 237: Line 282:
  
 <file java> <file java>
-trading_api_key = +trading_api_key = (Deprecated,​ no longer used) 
-trading_api_secret =+trading_api_secret = (Deprecated,​ no longer used)
 </​file>​ </​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.+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 than default_api_key.\\ 
 +**NOTE: The trading_api_key is deprecated and no longer used** 
 + 
 +[[application.properties#​top]] 
 ---- ----
 +
 \\ \\
 ==== Telegram ==== ==== Telegram ====
Line 305: Line 355:
 </​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 350: Line 403:
 </​file>​ </​file>​
 Set to true to enable a notification to be sent when a new [[Signals|signal]] is received. 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.
  
 ---- ----
Line 366: Line 427:
 </​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 384: Line 449:
   - 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 = true
 +</​file>​
 +Set to true to enable advanced statistics to be displayed in the GUI.
  
 +{{::​tsl_advanced_stas.png?​800&​nolink|}}
 +
 +TSL: Trailing Stoploss\\
 +OT: Original Trigger\\
 +CT: current Trigger\\
 +HP: Highest Profit\\
 +OV: Original Value\\ ​
 +TV: Trailing Value\\
 +CP: Current Profit\\
 +LP: Lowest Profit ​
 +
 +[[application.properties#​top]]
 +
 +----
 == server.test_mode == == server.test_mode ==
  
Line 404: Line 490:
 **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 uses 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. ​
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 419: Line 506:
   - Not applicable to any other exchanges.   - 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.   - 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 431: Line 520:
 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 444: Line 534:
 **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 462: Line 554:
 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 472: Line 566:
  
 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 480: Line 576:
 </​file>​ </​file>​
 Choose between three possible skins dark, light and default. ​ Choose between three possible skins dark, light and default. ​
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 495: Line 593:
   * CHT = Chinese Traditional   * CHT = Chinese Traditional
   * CHS = Chinese Simplified   * CHS = Chinese Simplified
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 534: Line 634:
   * USD - United States Dollar   * USD - United States Dollar
   * ZAR - South African Rand   * ZAR - South African Rand
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 544: Line 646:
  
 **WARNING:​** The log file will contain sensitive information such as your API Keys. If subsequently providing screenshots to support, be sure to censor such information. **WARNING:​** The log file will contain sensitive information such as your API Keys. If subsequently providing screenshots to support, be sure to censor such information.
 +
 +[[application.properties#​top]]
 +
 ---- ----
 +== logging.live_stoploss_trigger_update ==
  
-\\ +<file java> 
-**[[application.properties|TOP]]** +logging.live_stoploss_trigger_update = true 
-\\+</​file>​
  
-=== API Throttle === +Normally we log when trailing stop loss starts and every minute if it moves up we log that too. When this property set to true we will log every time it moves up. No need to wait 1 minute.
-These parameters are a temporary solution ​to reduce the rate of  API calls while we continue ​to rewrite the API code.+
  
-----+[[application.properties#​top]]
  
 +----
 +=== API Throttle ===
 +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 ==
  
  • application.properties.1549118284.txt.gz
  • Last modified: 3 months ago
  • by taniman