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
zh:zh_application.properties [2019/02/07 14:23]
mango
— (current)
Line 1: Line 1:
-===== application.properties ===== 
  
-**修改配置后请重启机器人已确保更改生效** 
- 
-  * [[zh_application.properties#​General Settings]] 
-  * [[zh_application.properties#​api_keys|API Settings]] 
-  * [[zh_application.properties#​Telegram]] 
-  * [[zh_application.properties#​Discord]] 
-  * [[zh_application.properties#​other_options|Additional Options]] 
-  * [[zh_application.properties#​API Throttle]] 
- 
-===== Example application.properties file ===== 
-Click to view the explanation of each parameter.\\ 
- 
-[[application.properties#​license]] = your ProfitTrailer license\\ 
-[[application.properties#​server.port]] = 8081\\ 
-[[application.properties#​server.address]] = \\ 
-[[application.properties#​server.api_token]] = \\ 
- 
-[[application.properties#​server.context_path]] = \\ 
-[[application.properties#​server.exchange_url]] = \\ 
- 
-[[application.properties#​server.sitename]] =  My BTC Bot \\ 
-[[application.properties#​trading.exchange]] = BINANCE\\ 
-[[application.properties#​trading.log_history]] = 8\\ 
-[[application.properties#​trading.signal_providers]] = \\ 
- 
-[[application.properties#​server.timezone_offset]] = +00:00\\ 
-[[application.properties#​server.timezone]] = America/​New_York \\ 
-[[application.properties#​server.language]] = engb\\ 
-[[application.properties#​server.skin]] = dark\\ 
-[[application.properties#​server.currency]] = USD\\ 
- 
-[[application.properties#​server.disable_password]] = false\\ 
-[[application.properties#​server.disable_config]] = false\\ 
-[[application.properties#​server.disable_online_config]] = false\\ 
-[[application.properties#​server.enable_shutdown]] = true\\ 
-[[application.properties#​server.disable_notification]] = false\\ 
-[[application.properties#​server.disable_browser]] = false\\ 
- 
-[[application.properties#​telegram|telegram.bot_token_1]] = \\ 
-[[application.properties#​telegram|telegram.chat_1]] = \\ 
-[[application.properties#​telegram.new_signal_notification]] = true\\ 
-[[application.properties#​telegram.disable_notification]] = false\\ 
- 
-[[application.properties#​discord|discord.bot_token_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_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#​discord|discord.startup_notification]] = true\\ 
-[[application.properties#​telegram|telegram.shutdown_notification]] = true\\ 
-[[application.properties#​discord|discord.shutdown_notification]] = true\\ 
- 
-[[application.properties#​server.start_trading_delay]] = 5\\ 
- 
-#testmode does paper trading so you will see buy and sell activity.\\ 
-[[application.properties#​server.test_mode]] = true\\ 
-[[application.properties#​server.use_testnet]] = false\\ 
- 
-#timeout in seconds\\ 
-[[application.properties#​connection.timeout]] = 30\\ 
- 
-#enabling debug mode\\ 
-[[application.properties#​logging.level.nl.komtek]] = DEBUG\\ 
-[[application.properties#​logging.level.nl.komtek.pt.services]] = TRACE\\ 
- 
-#API Throttle Interim Fix \\ 
-[[application.properties#​server.throttle_millis]] = 10\\ 
-[[application.properties#​server.throttle_calls_amount]] = 40\\ 
-[[application.properties#​server.throttle_calls_seconds]] = 30\\ 
- 
----- 
-==== General Settings ==== 
- 
-== license == 
- 
-<file java> 
-license =  
-</​file>​ 
-Place your ProfitTrailer license here.  
----- 
-== server.port == 
- 
-<file java> 
-server.port = 8081 
-</​file>​ 
-The port that is being used by the bot. Change this value to something unique (like 8082, etc) if you want to start other instances of the bot on the same machine. ​ 
- 
-**Note:** 
-  - 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. 
- 
----- 
-== trading.exchange == 
- 
-<file java> 
-trading.exchange = BITTREX 
-</​file>​ 
-Use to set the exchange you want the bot to connect to. Possible values (POLONIEX, BITTREX, BINANCE, KUCOIN, HUOBI, BITMEX). 
-Must be in CAPITALS. 
----- 
-== server.sitename == 
- 
-<file java> 
-server.sitename = Steves Bittrex Bot 
-</​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 
- 
----- 
-== trading.log_history == 
- 
-<file java> 
-trading.log_history = 7 
-</​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. 
- 
-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 = 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 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. ​ 
- 
-The valid values are the SKU from the ProfitTrailer shop **without the trailing number**. 
- 
-{{::​signal_sku.png?​180&​direct|}} 
- 
----- 
-== server.timezone_offset == 
- 
-<file java> 
-server.timezone_offset = +02:00 
-</​file>​ 
-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. 
- 
-**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. 
- 
----- 
-== server.disable_password == 
- 
-<file java> 
-server.disable_password = false 
-</​file>​ 
-Set to true to disable password login to access to your monitoring page.  ​ 
----- 
-== server.disable_config == 
- 
-<file java> 
-server.disable_config = true 
-</​file>​ 
-If set to true this will disable the "​Config"​ options in the web GUI.  
----- 
-== server.disable_online_config == 
- 
-<file java> 
-server.disable_online_config = false 
-</​file>​ 
-Set to true to enable local offline storage of settings instead of on the PT database. Settings (excluding application.properties) will still be communicated to the PT server for encryption but will be stored locally in a file named offlineData. Settings must still be edited using the web GUI. 
- 
-Config Data is local in memory. ​ 
-When you save new changes: 
-  -  send changes to the bot 
-  -  encrypt the data locally 
-  -  send encrypted data to the server for additional encryption 
-  -  send back offline 
-  -  save in offlineData 
- 
----- 
-== server.enable_shutdown == 
- 
-<file java> 
-server.enable_shutdown = true 
-</​file>​ 
-Enables a button in the GUI to safely stop the bot. 
----- 
-== server.disable_notification == 
- 
-<file java> 
-server.disable_notification = false 
-</​file>​ 
-Set to true to disable the GUI notifications (errors, config changes etc). 
----- 
-== server.disable_browser ​ == 
- 
-<file java> 
-server.disable_browser = false 
-</​file>​ 
-Set to true to stop the browser from automatically opening each time the bot starts. ​ 
----- 
- 
- 
-\\ 
-==== API Keys ==== 
- 
-== default_api_key == 
-== default_api_secret == 
- 
-<file java> 
-default_api_key = 
-default_api_secret = 
-</​file>​ 
-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_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 ==== 
-See [[Notification Setup]] for in depth guidance. 
- 
----- 
-== telegram.bot_token_1 == 
- 
-<file java> 
-telegram.bot_token_1 = your bot token 
-</​file>​ 
-Your first Telegram bot token. 
----- 
-== telegram.chat_1 == 
- 
-<file java> 
-telegram.chat_1 = your chat ID 
-</​file>​ 
-Your first chat ID. 
----- 
-== telegram.bot_token_2 == 
- 
-<file java> 
-telegram.bot_token_2 = your second bot token 
-</​file>​ 
-Your second Telegram bot token if you want to send the notifications to another bot. You can use the same token as botToken1. 
----- 
-== telegram.chat_2 == 
- 
-<file java> 
-telegram.chat_2 = your second chat ID 
-</​file>​ 
-Your second chat ID if you want to send the notifications to another chat or group. 
- 
----- 
-== 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 == 
- 
-<file java> 
-telegram.disable_notification = false 
-</​file>​ 
-Set to true disable the sound on telegram notifications. 
- 
----- 
-== telegram.startup_notification == 
- 
-<file java> 
-telegram.startup_notification = true 
-</​file>​ 
-Set to true to add telegram notifications on startup. 
----- 
-== telegram.shutdown_notification == 
- 
-<file java> 
-telegram.shutdown_notification = true 
-</​file>​ 
-Set to true to add telegram notifications on shutdown. Will not work for unexpected shutdowns. 
- 
----- 
-\\ 
-==== Discord ==== 
-See [[Notification Setup]] for in depth guidance. 
- 
----- 
-== discord.bot_token_1 == 
- 
-<file java> 
-discord.bot_token_1 = your bot token 
-</​file>​ 
-Your first Discord bot token. ​ 
- 
----- 
-== discord.chat_1 == 
- 
-<file java> 
-discord.chat_1 = channel name 
-</​file>​ 
-The channel name that the bot will post notifications in. 
- 
----- 
-== discord.bot_token_2 == 
- 
-<file java> 
-discord.bot_token_2 = your bot token 
-</​file>​ 
-Your second Discord bot token. ​ 
- 
----- 
-== discord.chat_2 == 
- 
-<file java> 
-discord.chat_2 = channel name 
-</​file>​ 
-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 == 
- 
-<file java> 
-discord.startup_notification = true 
-</​file>​ 
-Set to true to add discord notifications on startup. 
- 
----- 
-== discord.shutdown_notification == 
- 
-<file java> 
-discord.shutdown_notification = true 
-</​file>​ 
-Set to true to add discord notifications on shutdown. Will not work for unexpected shutdowns. 
----- 
-\\ 
-==== Other Options ==== 
- 
-== server.start_trading_delay == 
- 
-<file java> 
-server.start_trading_delay = 5 
-</​file>​ 
- 
-The start delay prevents the bot from trading for the set number of minutes after bootup. ​ 
- 
-This parameter is designed to give you enough time to place the bot in SOM or disable trading, or change your buy/sell strategies before it resumes trading. 
- 
-**Notes:** 
-  - The Possible Buy Log will be empty 
-  - Pairs and DCA heartbeats may not occur 
-  - You will not see your existing holdings on the exchange. 
- 
----- 
- 
- 
-== server.test_mode == 
- 
-<file java> 
-server.test_mode = true 
-</​file>​ 
- 
-Use test mode to setup and test new settings without actually buying/​selling your coins. 
- 
-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. 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. 
- 
-**Notes:​** ​ 
-  - 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. 
-  - 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. ​ 
- 
----- 
-== 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. 
- 
----- 
-== server.api_token == 
- 
-<file java> 
-server.api_token =  
-</​file>​ 
- 
-This optional token can be used to allow third party applications to connection to your BOT via a built in API. 
- 
-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 \\ 
- 
----- 
-== connection.timeout == 
- 
-<file java> 
-connection.timeout = 30 
-</​file>​ 
-Valid Values: Integers greater than or equal to 30 
- 
-Use this setting if you are getting too many Websocket timeout errors. Default length is 30 seconds but you can increase this if required. 
- 
----- 
-== server.skin == 
- 
-<file java> 
-server.skin = default 
-</​file>​ 
-Choose between three possible skins dark, light and default. ​ 
- 
----- 
-== server.language == 
- 
-<file java> 
-server.language = ENGB 
-</​file>​ 
-Set your desired localization for the Web GUI. 
- 
-Available Languages: 
-  * ENGB = English with European date format 
-  * ENUS = English with US date format 
-  * KO = Korean ​ 
-  * CHT = Chinese Traditional 
-  * CHS = Chinese Simplified 
- 
----- 
-== server.currency == 
- 
-<file java> 
-server.currency = USD 
-</​file>​ 
-Set your desired currency for values in the Web GUI to be displayed in. 
- 
-Available Currencies: 
-  * AUD - Australian Dollar 
-  * BRL - Brazilian Real 
-  * CAD - Canadian Dollar 
-  * CHF - Swiss Franc 
-  * CNY - Chinese Yuan Renminbi 
-  * CZK - Czech Koruna 
-  * DKK - Danish Krone 
-  * EUR - Euro 
-  * GBP - British Pound 
-  * HKD - Hong Kong Dollar 
-  * HUF - Hungarian Forint 
-  * IDR - Indonesian Rupiah 
-  * ILS - Israeli Shekel 
-  * INR - Indian Rupee 
-  * JPY - Japanese Yen 
-  * KRW - South Korean Won 
-  * MXN - Mexican Peso 
-  * MYR - Malaysian Ringgit 
-  * NOK - Norwegian Krone 
-  * NZD - New Zealand Dollar 
-  * PHP - Philippine Piso 
-  * PLN - Polish Zloty 
-  * RUB - Russian Ruble 
-  * SEK - Swedish Krona 
-  * SGD - Singapore Dollar 
-  * THB - Thai Baht 
-  * TRY - Turkish Lira 
-  * USD - United States Dollar 
-  * ZAR - South African Rand 
- 
----- 
-== logging.level.nl.komtek == 
- 
-<file java> 
-logging.level.nl.komtek = DEBUG 
-</​file>​ 
-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 support, be sure to censor such information. 
----- 
- 
-\\ 
-**[[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. 
- 
----- 
- 
-== server.throttle_millis == 
- 
-<file java> 
-server.throttle_millis = 100 
-</​file>​ 
-Works on all exchanges. 
- 
-Set the number of milliseconds to pause between each pair in the code loop. 
- 
----- 
- 
-== server.throttle_calls_amount == 
- 
-<file java> 
-server.throttle_calls_amount = 40 
-</​file>​ 
-Works on Binance and Bittrex. 
- 
-Set the number of API calls to count before pausing for the number of seconds set in ''​[[application.properties#​server.throttle_calls_seconds]]''​. 
- 
----- 
- 
-== server.throttle_calls_seconds == 
- 
-<file java> 
-server.throttle_calls_seconds = 30 
-</​file>​ 
-Works on Binance and Bittrex. 
- 
-Set the number of seconds to pause in between batches of API calls. The number of calls is set with ''​[[application.properties#​server.throttle_calls_amount]]''​. 
- 
----- 
- 
-Examples: 
- 
-Bittrex (Only if you are having banning problems) 
-  * server.throttle_millis = 100 
-  * server.throttle_calls_amount = 40 
-  * server.throttle_calls_seconds = 30 
- 
-Binance / Poloniex (Only if you are having banning problems) 
-  * server.throttle_millis = 10 
-  * server.throttle_calls_amount = 1000 
-  * server.throttle_calls_seconds = 30 
- 
-\\ 
-**[[application.properties|TOP]]** 
-\\ 
- 
-~~DISCUSSION~~ 
  • zh/zh_application.properties.1549549390.txt.gz
  • Last modified: 3 months ago
  • by mango