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/03/03 02:24]
armchairguru
application.properties [2019/05/21 17:35] (current)
armchairguru
Line 1: Line 1:
 +~~NOTOC~~
 ===== application.properties ===== ===== application.properties =====
  
Line 20: Line 21:
 [[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 \\
 [[application.properties#​trading.exchange]] = BINANCE\\ [[application.properties#​trading.exchange]] = BINANCE\\
 [[application.properties#​trading.log_history]] = 8\\ [[application.properties#​trading.log_history]] = 8\\
-[[application.properties#​trading.signal_providers]] = \\ 
  
 [[application.properties#​server.timezone_offset]] = +00:00\\ [[application.properties#​server.timezone_offset]] = +00:00\\
-[[application.properties#​server.timezone]] = America/New_York ​\\ +[[application.properties#​server.timezone]] = US/Eastern ​\\ 
-[[application.properties#​server.language]] = engb\\+[[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 51: Line 52:
 [[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 69: Line 68:
  
 #enabling debug mode\\ #enabling debug mode\\
-[[application.properties#​logging.live_stoploss_trigger_update]] = true \\ +[[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\\
  
 #API Throttle Interim Fix \\ #API Throttle Interim Fix \\
Line 87: Line 86:
 </​file>​ </​file>​
 Place your ProfitTrailer license here.  Place your ProfitTrailer license here. 
 +
 +[[application.properties#​top]]
 +
 ---- ----
 == server.port == == server.port ==
Line 96: 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 106: 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 115: Line 122:
 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 122: 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]]
  
 ---- ----
Line 131: Line 143:
 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.
  
-**NoteDatabase backups are only created when the bot is booted; the DB is locked otherwise. ​Backups are stored in the /​data/​backups folder.** +**Notes:** 
- +  * Backups are stored in the /​data/​backups folder. 
----- +  history setting has max of 1826
-== trading.signal_providers == +
- +
-<file java> +
-trading.signal_providers = SGNLAWESOMESIGNALS,​ SGNLPTTRADINGVIEW +
-</​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**. +
-If you have signed up for 3 signal providers and you want certain bot to receive signals from only 2 of those providers. You can define the providers you want to use separated by a comma.  +
- +
-The valid values are the SKU from the ProfitTrailer shop **without the trailing number**.+
  
-{{::​signal_sku.png?​180&​direct|}}+[[application.properties#​top]]
  
 ---- ----
 == server.timezone_offset == == server.timezone_offset ==
 +**Use server.timezone Instead**
  
 <file java> <file java>
Line 160: Line 163:
 **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 165: Line 170:
  
 <file java> <file java>
-server.timezone = US/Central+server.timezone = US/Eastern
 </​file>​ </​file>​
-Valid Values: [[https://​garygregory.wordpress.com/​2013/​06/​18/​what-are-the-java-timezone-ids|Java Time Zones]]+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. 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 177: 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 184: 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 200: Line 213:
   -  send back offline   -  send back offline
   -  save in offlineData   -  save in offlineData
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 208: 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 215: 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 221: 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 235: 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 309: 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 378: 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 396: 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 = true
 +</​file>​
 +Pro Users only: Set to true to enable advanced statistics to be displayed in the GUI.
  
 +{{stats-as-2.png?​800&​nolink|}}
 +
 +TSL: Trailing Stoploss\\
 +TPS: Take Profit Safety\\
 +AS: After Sale - Tracks the price action for 24 hours after a coin has sold and only while the bot is running\\
 +L: Lowest Price\\
 +H: Highest Price\\
 +TB: Trailing Buy\\
 +OT: Original Trigger\\
 +CT: current Trigger\\
 +HP: Highest Profit\\
 +CP: Current Profit\\
 +LP: Lowest Profit\\
 +OV: Original Value\\ ​
 +TV: Trailing Value
 +
 +[[application.properties#​top]]
 +
 +----
 == server.test_mode == == server.test_mode ==
  
Line 416: Line 467:
 **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 431: Line 483:
   - 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 443: Line 497:
 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 456: Line 511:
 **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 474: Line 531:
 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 484: Line 543:
  
 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 492: Line 553:
 </​file>​ </​file>​
 Choose between three possible skins dark, light and default. ​ Choose between three possible skins dark, light and default. ​
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 507: Line 570:
   * CHT = Chinese Traditional   * CHT = Chinese Traditional
   * CHS = Chinese Simplified   * CHS = Chinese Simplified
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 546: Line 611:
   * USD - United States Dollar   * USD - United States Dollar
   * ZAR - South African Rand   * ZAR - South African Rand
 +
 +[[application.properties#​top]]
  
 ---- ----
Line 556: Line 623:
  
 **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]]
-**[[application.properties|TOP]]** +
-\\+
  
 ---- ----
Line 570: Line 634:
  
 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. 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.
 +
 +[[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 630: Line 690:
 **[[application.properties|TOP]]** **[[application.properties|TOP]]**
 \\ \\
- 
-~~DISCUSSION~~ 
  • application.properties.1551579885.txt.gz
  • Last modified: 3 months ago
  • by armchairguru