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/05/28 10:04]
t1m3c
application.properties [2019/01/21 08:53] (current)
sgtbatten [General Settings]
Line 1: Line 1:
-===== application.properties ​Version 2.0 =====+===== application.properties =====
  
 **Changes to this file will require you to restart the bot.** **Changes to this file will require you to restart the bot.**
Line 17: Line 17:
 [[application.properties#​license]] = your ProfitTrailer license\\ [[application.properties#​license]] = your ProfitTrailer license\\
 [[application.properties#​server.port]] = 8081\\ [[application.properties#​server.port]] = 8081\\
 +[[application.properties#​server.address]] = \\
 [[application.properties#​server.api_token]] = \\ [[application.properties#​server.api_token]] = \\
 +
 +[[application.properties#​server.context_path]] = \\
 +[[application.properties#​server.exchange_url]] = \\
  
 [[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.language]] = engb\\ [[application.properties#​server.language]] = engb\\
 [[application.properties#​server.skin]] = dark\\ [[application.properties#​server.skin]] = dark\\
Line 37: Line 43:
 [[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#​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\\
Line 56: 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 88: Line 97:
 **Note:** **Note:**
   - 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.
 +
 +----
 +== server.address ==
 +
 +<file java>
 +server.address = 123.123.123.123
 +</​file>​
 +
 +Bind the Profit trailer instance to a specific WAN/Public IP address. Useful for uses with multiple public IP addresses and multiple bots.
  
 ---- ----
Line 95: Line 113:
 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.
 ---- ----
Line 104: Line 122:
 </​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
 +
 ---- ----
 == trading.log_history == == trading.log_history ==
Line 113: Line 132:
  
 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. The maximum value is 1826 days (5 years). ​
 +
 +----
 +== trading.signal_providers ==
 +
 +<file java>
 +trading.signal_providers = 
 +</​file>​
 +
 +Define the Signal providers yo wish to use. Multiple Providers can be separated using a comma. If blank, all providers are included.
 +
 ---- ----
 == server.timezone_offset == == server.timezone_offset ==
Line 121: Line 150:
 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.
 +
 +----
 +== server.timezone ==
 +
 +<file java>
 +server.timezone = US/Central
 +</​file>​
 +Valid Values: [[https://​garygregory.wordpress.com/​2013/​06/​18/​what-are-the-java-timezone-ids|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.
  
 ---- ----
Line 231: Line 273:
  
 ---- ----
 +== 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 238: Line 287:
 </​file>​ </​file>​
 Set to true disable the sound on telegram notifications. Set to true disable the sound on telegram notifications.
- 
  
 ---- ----
Line 267: Line 315:
 </​file>​ </​file>​
 Your first Discord bot token. ​ Your first Discord bot token. ​
 +
 ---- ----
 == discord.chat_1 == == discord.chat_1 ==
Line 274: Line 323:
 </​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 281: Line 331:
 </​file>​ </​file>​
 Your second Discord bot token. ​ Your second Discord bot token. ​
 +
 ---- ----
 == discord.chat_2 == == discord.chat_2 ==
Line 288: Line 339:
 </​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.startup_notification == == discord.startup_notification ==
Line 295: Line 355:
 </​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 334: Line 395:
 The bot will do full paper trading, tracking and trading coins in the console and Web GUI as if it were live trading and record sales and profits/​losses in.  The bot will do full paper trading, tracking and trading coins in the console and Web GUI as if it were live trading and record sales and profits/​losses in. 
  
-When changing from test mode to live trading a restart is required. ​You may see some incorrect balances in your live bot for a minute or so after the restart. The test data will automatically clear itself completely.+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
  
-Use the url http://​localhost:​8081/​settings/​test/​reset to reset test_mode pairs and DCA data without restarting if you wish to try another strategy ​for example (won't clear sales).+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.
  
 **Notes:​** ​ **Notes:​** ​
Line 344: Line 405:
   - 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. ​
  
 +----
 +== 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.
  
 ---- ----
Line 356: Line 428:
 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)
  
 +
 +----
 +== server.context_path ==
 +<file java>
 +server.context_path = /binancebtc
 +</​file>​
 +
 +Adds a custom base url to the Web server.
 +
 +Using the example above you would now access ProfitTrailer from http://​localhost:​8081/​binancebtc/​monitoring.
 +
 +**Notes:**
 +  - This does not change the requirement to run each bot on a different port.
 +
 +----
 +== server.exchange_url ==
 +<file java>
 +server.exchange_url = https://​www.binance.com/​tradeDetail.html?​symbol=%c_%b
 +</​file>​
 +
 +Define custom url to be used when a coin pair is clicked in the Web GUI.
 +
 +The %c and %b values are variables based on the coin pair being clicked.
 +
 +**%c** = currency (DOGE)\\
 +**%b** = base (BTC)
 +
 +If you are wanting to link to TV instead of the exchange this is also possible.\\
 +Binance: https://​www.tradingview.com/​chart/?​symbol=BINANCE:​%c%b \\
 +Bittrex: https://​www.tradingview.com/​chart/?​symbol=BITTREX:​%c%b \\
 +Poloniex: https://​www.tradingview.com/​chart/?​symbol=POLONIEX:​%c%b \\
  
 ---- ----
Line 384: Line 487:
  
 Available Languages: Available Languages:
-  * ENGB = English with European ​data format+  * ENGB = English with European ​date format
   * ENUS = English with US date format   * ENUS = English with US date format
   * KO = Korean ​   * KO = Korean ​
  • application.properties.1527501875.txt.gz
  • Last modified: 8 months ago
  • by t1m3c