对此文件的更改将要求您重新启动bot

单击以查看每个参数的说明

license = your ProfitTrailer license
server.port = 8081
server.address =
server.api_token =

server.context_path =
server.exchange_url =

server.sitename = My BTC Bot
trading.exchange = BINANCE
trading.log_history = 8
trading.signal_providers =

server.timezone_offset = +00:00
server.timezone = America/New_York
server.language = engb
server.skin = dark
server.currency = USD

server.disable_password = false
server.disable_config = false
server.disable_online_config = false
server.enable_shutdown = true
server.disable_notification = false
server.disable_browser = false

telegram.bot_token_1 =
telegram.chat_1 =
telegram.new_signal_notification = true
telegram.disable_notification = false

discord.bot_token_1 =
discord.chat_1 =
discord.new_signal_notification = true
discord.new_signal_notification_channel =

default_api_key = The Exchange API key registered with PT Assistant
default_api_secret = The Secret key for the default_api_key
trading_api_key = The second Exchange API key.
trading_api_secret = The Secret for the second API Key

telegram.startup_notification = true
discord.startup_notification = true
telegram.shutdown_notification = true
discord.shutdown_notification = true

server.start_trading_delay = 5

#testmode does paper trading so you will see buy and sell activity.
server.test_mode = true
server.use_testnet = false

#timeout in seconds
connection.timeout = 30

#enabling debug mode
logging.level.nl.komtek = DEBUG
logging.level.nl.komtek.pt.services = TRACE

#API Throttle Interim Fix
server.throttle_millis = 10
server.throttle_calls_amount = 40
server.throttle_calls_seconds = 30


一般设置

license
license = 

请输入ProfitTrailer序列号在这。


server.port
server.port = 8081

机器人正在使用的端口,如果要在同一台计算机上启动其他机器人实例,请将此值更改为唯一的值(如8082等)。

注意:

  1. 8085端口保留给某些VM应用程序,可能无法在某些操作系统上运行

server.address
server.address = 123.123.123.123

将ProfitTrailer实例绑定到特定的IP地址。适用于具有多个IP地址的服务器。


trading.exchange
trading.exchange = BINANCE

用于设置您希望机器人连接的交易所。可能的值(POLONIEX, BITTREX, BINANCE, KUCOIN, HUOBI, BITMEX).必须是大写字母。


server.sitename
server.sitename = BlueMango-bot

设置您希望在浏览器选项卡中显示的唯一名称(网站标题), 这也用于DiscordTelegram 通知。


trading.log_history
trading.log_history = 7

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 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.

机器人可以轻松管理几个月的历史,最大值为1826天(5年)。


trading.signal_providers
trading.signal_providers = SGNLAWESOMESIGNALS, SGNLPTTRADINGVIEW

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.


server.timezone_offset
server.timezone_offset = +02:00

根据您居住的地方设置时区,格式 +hh:mm or -hh:mm 看https://www.timeanddate.com/time/map/ 如果你不知道你住的是什么时区。

注意:

  1. server.timezone 如果这个被输入使用offset将被替代。

server.timezone
server.timezone = US/Central

参考值: Java Time Zones

设置您所在位置的时区ID。这将优先于server.timezone_offset 并将自动处理夏令时。


server.disable_password
server.disable_password = false

设置为true以禁用密码登录以访问机器人页面。


server.disable_config
server.disable_config = true

如果设置为true,则将关闭WEB图形中的“配置”选项。


server.disable_online_config
server.disable_online_config = false

设置为true以启用设置的本地脱机存储,而不是PT数据库。策略设置(不包括application.properties)仍将传送到PT服务器进行加密,但将本地存储在名为offlineData的文件中。仍必须使用Web GUI编辑设置。

Config Data is local in memory. When you save new changes:

  1. send changes to the bot
  2. encrypt the data locally
  3. send encrypted data to the server for additional encryption
  4. send back offline
  5. save in offlineData

server.enable_shutdown
server.enable_shutdown = true

启用WEB图形中的按钮以安全地停止机器人。


server.disable_notification
server.disable_notification = false

设置为true以禁用GUI通知(错误,配置更改等)。


server.disable_browser
server.disable_browser = false

设置为true以阻止浏览器在每次机器人启动时自动打开。



API Keys

default_api_key
default_api_secret
default_api_key =
default_api_secret =

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
trading_api_key =
trading_api_secret =

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
telegram.bot_token_1 = your bot token

Your first Telegram bot token.


telegram.chat_1
telegram.chat_1 = your chat ID

Your first chat ID.


telegram.bot_token_2
telegram.bot_token_2 = your second bot token

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
telegram.chat_2 = your second chat ID

Your second chat ID if you want to send the notifications to another chat or group.


telegram.new_signal_notification
telegram.new_signal_notification = true

Set to true to enable a notification to be sent when a new signal is received.


telegram.disable_notification
telegram.disable_notification = false

Set to true disable the sound on telegram notifications.


telegram.startup_notification
telegram.startup_notification = true

Set to true to add telegram notifications on startup.


telegram.shutdown_notification
telegram.shutdown_notification = true

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
discord.bot_token_1 = your bot token

Your first Discord bot token.


discord.chat_1
discord.chat_1 = channel name

The channel name that the bot will post notifications in.


discord.bot_token_2
discord.bot_token_2 = your bot token

Your second Discord bot token.


discord.chat_2
discord.chat_2 = channel name

The channel name that the second bot will post notifications in.


discord.new_signal_notification
discord.new_signal_notification = true

Set to true to enable a notification to be sent when a new signal is received.


discord.new_signal_notification_channel
discord.new_signal_notification_channel = channel name

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 = true

Set to true to add discord notifications on startup.


discord.shutdown_notification
discord.shutdown_notification = true

Set to true to add discord notifications on shutdown. Will not work for unexpected shutdowns.



其它选项

server.start_trading_delay
server.start_trading_delay = 5

启动延迟交易可防止机器人在启动后立即交易,时间为分钟。

此参数旨在为您提供足够的时间将机器人置于只卖模式中停止交易,在恢复交易之前您对买卖策略或其它设置有充分的时间思考。

注意:

  1. 监控购买列表为空
  2. Pairs和DCA列表不会发生动作
  3. 您将不会看到您交易所持币金额

server.test_mode
server.test_mode = true

使用测试模式测试新策略,而无需实际购买或出售您的硬币。

机器人将在控制台和WEB图形中进行全纸上交易,追踪和交易货币,就好像它是真实交易并记录销售和利润损失。

从测试模式更改为真实交易时,需要重新启动机器人。在重新启动之前,使用GUI中的重置按钮重置测试模式数据。

您可以使用设置菜单中的按钮或网址 http://localhost:8081/settings/test/reset 重置测试模式, pairs and DCA data without restarting if you wish to try another strategy with a clean slate.

Notes:

  1. Your real coins and balance will not display while in test mode. The bot ignores them while paper trading.
  2. start_balance needs to be set in pairs.properties.
  3. Deleting ProfitTrailerData.json will also clear the data but at the expense of any real data also.
  4. 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
server.use_testnet = true

Set to true to use the test net instead of the live net on Bitmex.

Notes:

  1. Not applicable to any other exchanges.
  2. unlike ProfitTrailers server.test_mode the Bitmex testnet is not using the exact same data as the live net.

server.api_token
server.api_token = 

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
server.context_path = /binancebtc

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:

  1. This does not change the requirement to run each bot on a different port.

server.exchange_url
server.exchange_url = https://www.binance.com/tradeDetail.html?symbol=%c_%b

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
connection.timeout = 30

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
server.skin = default

Choose between three possible skins dark, light and default.


server.language
server.language = ENGB

为Web图形切换显示语言。 支持语言:

  • ENGB = 欧式
  • ENUS = 美式
  • KO = 韩文
  • CHT = 中文繁体
  • CHS = 中文简体

server.currency
server.currency = USD

在WEB图形界面中显示你要以哪种货币作为你的估算货币,默认美元USD

Available Currencies:

  • AUD - 澳元
  • 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
logging.level.nl.komtek = DEBUG

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.



TOP

API Throttle

在我们继续重写API代码的同时,这些参数是降低API调用速率的临时解决方案。


server.throttle_millis
server.throttle_millis = 100

适用于所有交易所。

Set the number of milliseconds to pause between each pair in the code loop.


server.throttle_calls_amount
server.throttle_calls_amount = 40

Works on Binance and Bittrex.

Set the number of API calls to count before pausing for the number of seconds set in server.throttle_calls_seconds.


server.throttle_calls_seconds
server.throttle_calls_seconds = 30

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 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


TOP

Enter your comment:
 
  • zh/zh_application.properties.txt
  • Last modified: 3 weeks ago
  • by mango