forked from chrisleekr/binance-trading-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-environment-variables.json
347 lines (347 loc) · 16.8 KB
/
custom-environment-variables.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
{
"mode": "BINANCE_MODE",
"tz": "BINANCE_TZ",
"binance": {
"live": {
"apiKey": "BINANCE_LIVE_API_KEY",
"secretKey": "BINANCE_LIVE_SECRET_KEY"
},
"test": {
"apiKey": "BINANCE_TEST_API_KEY",
"secretKey": "BINANCE_TEST_SECRET_KEY"
}
},
"redis": {
"host": "BINANCE_REDIS_HOST",
"port": {
"__name": "BINANCE_REDIS_PORT",
"__format": "number"
},
"password": "BINANCE_REDIS_PASSWORD",
"db": "BINANCE_REDIS_DB"
},
"mongo": {
"host": "BINANCE_MONGO_HOST",
"port": {
"__name": "BINANCE_MONGO_PORT",
"__format": "number"
},
"database": "BINANCE_MONGO_DATABASE"
},
"slack": {
"enabled": {
"__name": "BINANCE_SLACK_ENABLED",
"__format": "boolean"
},
"webhookUrl": "BINANCE_SLACK_WEBHOOK_URL",
"channel": "BINANCE_SLACK_CHANNEL",
"username": "BINANCE_SLACK_USERNAME"
},
"localTunnel": {
"enabled": {
"__name": "BINANCE_LOCAL_TUNNEL_ENABLED",
"__format": "boolean"
},
"subdomain": "BINANCE_LOCAL_TUNNEL_SUBDOMAIN"
},
"featureToggle": {
"notifyOrderConfirm": {
"__name": "BINANCE_FEATURE_TOGGLE_NOTIFY_ORDER_CONFIRM",
"__description": "Set a boolean to notify the order checking/confirm messages. Note that enabling this feature toggle can flood the messages.",
"__format": "boolean"
},
"notifyDebug": {
"__name": "BINANCE_FEATURE_TOGGLE_NOTIFY_DEBUG",
"__description": "Set a boolean to notify the debug message. Note that enabling this feature toggle can flood the messages.",
"__format": "boolean"
},
"notifyOrderExecute": {
"__name": "BINANCE_FEATURE_TOGGLE_NOTIFY_ORDER_EXECUTE",
"__description": "Set a boolean to notify the order executed messages. Note that enabling this feature toggle can flood the messages.",
"__format": "boolean"
}
},
"authentication": {
"enabled": {
"__name": "BINANCE_AUTHENTICATION_ENABLED",
"__description": "Set a boolean to enable authentication on the bot.",
"__format": "boolean"
},
"password": "BINANCE_AUTHENTICATION_PASSWORD",
"loginLimiter": {
"maxConsecutiveFails": {
"__name": "BINANCE_AUTHENTICATION_LOGIN_LIMITER_MAX_CONSECUTIVE_FAILS",
"__description": "Set number of allowed login failures. If failed maximum consecutive fails, the bot will block the request based on the block duration (seconds).",
"__format": "number"
},
"duration": {
"__name": "BINANCE_AUTHENTICATION_LOGIN_LIMITER_DURATION",
"__description": "Set seconds for storing points since the first login failure.",
"__format": "number"
},
"blockDuration": {
"__name": "BINANCE_AUTHENTICATION_LOGIN_LIMITER_BLOCK_DURATION",
"__description": "Set seconds for blocking the request after reaching maximum consecutive login failures.",
"__format": "number"
}
}
},
"jobs": {
"alive": {
"enabled": {
"__name": "BINANCE_JOBS_ALIVE_ENABLED",
"__format": "boolean"
},
"cronTime": "BINANCE_JOBS_ALIVE_CRONTIME",
"priceSymbol": "BINANCE_JOBS_ALIVE_PRICE_SYMBOL",
"balanceSymbols": "BINANCE_JOBS_ALIVE_BALANCE_SYMBOLS"
},
"trailingTrade": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_ENABLED",
"__format": "boolean"
},
"cronTime": "BINANCE_JOBS_TRAILING_TRADE_CRON_TIME",
"symbols": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SYMBOLS",
"__format": "json"
},
"botOptions": {
"authentication": {
"lockList": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTHENTICATION_LOCK_LIST",
"__description": "Set a boolean to lock the list or not. If locking the list, the bot will display the login screen before showing the list. If don't lock the list, the bot will display the symbol list, but disabling actions.",
"__format": "boolean"
},
"lockAfter": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTHENTICATION_LOCK_AFTER",
"__description": "Set minutes for the authentication. Once the time passes the configured minutes after login, the bot will be automatically locked.",
"__format": "number"
}
},
"autoTriggerBuy": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTO_TRIGGER_BUY",
"__description": "Set a boolean to trigger 1st grid trade for buying after removing the last buy price due to completed grid trades for selling. Note that this action may be triggered if you sell the coin in Binance directly and the last buy price was recorded.",
"__format": "boolean"
},
"triggerAfter": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_TRIGGER_AFTER",
"__description": "Set minutes to trigger buy orders for the symbol after removing the last buy price.",
"__format": "number"
},
"conditions": {
"whenLessThanATHRestriction": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTO_TRIGGER_BY_CONDITIONS_WHEN_LESS_THAN_ATH_RESTRICTION",
"__description": "Set a boolean to reschedule the auto-buy trigger action if the price is over the ATH restriction.",
"__format": "boolean"
},
"afterDisabledPeriod": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTO_TRIGGER_BY_CONDITIONS_AFTER_DISABLED_PERIOD",
"__description": "Set a boolean to reschedule the auto-buy trigger action if the action is currently disabled by the stop-loss or other actions.",
"__format": "boolean"
},
"tradingView": {
"overrideInterval": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTO_TRIGGER_BY_CONDITIONS_TRADINGVIEW_OVERRIDE_INTERVAL",
"__description": "Override TradingView candle interval while attempting auto trigger buy. If empty, it will use TradingView -> interval. Available interval: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d",
"__format": "boolean"
},
"whenStrongBuy": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTO_TRIGGER_BY_CONDITIONS_TRADINGVIEW_WHEN_STRONG_BUY",
"__description": "Set a boolean to trigger the auto-buy trigger action if the TradingView recommendation is `Strong buy`. If the recommendation is not `Strong buy`, then the bot will re-schedule the auto-buy trigger action.",
"__format": "boolean"
},
"whenBuy": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_AUTO_TRIGGER_BY_CONDITIONS_TRADINGVIEW_WHEN_BUY",
"__description": "Set a boolean to trigger the auto-buy trigger action if the TradingView recommendation is `Buy`. If the recommendation is not `Buy`, then the bot will re-schedule the auto-buy trigger action.",
"__format": "boolean"
}
}
}
},
"orderLimit": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_ORDER_LIMIT_ENABLED",
"__description": "Set a boolean to restrict the order based on the configuration. If enabled, the bot will not place orders if the conditions meet.",
"__format": "boolean"
},
"maxBuyOpenOrders": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_ORDER_LIMIT_MAX_BUY_OPEN_ORDERS",
"__description": "Set the number of concurrent open orders for buying. If set 3, then the bot will not place more than 3 buy open orders.",
"__format": "number"
},
"maxOpenTrades": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_ORDER_LIMIT_MAX_OPEN_TRADES",
"__description": "Set the maximum number of open trades. If set 5,, then the bot will not place a buy order when there are 5 symbols recorded with the last buy price.",
"__format": "number"
}
},
"tradingView": {
"interval": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_TRADING_VIEW_INTERVAL",
"__description": "Set the interval to retrieve TradingView technical analysis. If empty, it will use candles -> interval. Available interval: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d",
"__format": "string"
},
"useOnlyWithin": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_TRADING_VIEW_USE_ONLY_WITHIN",
"__description": "Set the minutes to allow to use TradingView technical analysis data. If the data is older than configured minutes, the bot will ignore the TradingView technical analysis data. This is due to avoid the issue with TradingView downtime.",
"__format": "number"
},
"ifExpires": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_TRADING_VIEW_IF_EXPIRES",
"__description": "Set an action method if the TradingView technical analysis data is passed allowed minutes. Available: ignore, do-not-buy",
"__format": "string"
}
},
"logs": {
"deleteAfter": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BOT_OPTIONS_LOGS_DELETE_AFTER",
"__description": "Set the minutes to delete the log. If the log is older than the configured minutes, the log will be removed from the database.",
"__format": "number"
}
}
},
"candles": {
"interval": "BINANCE_JOBS_TRAILING_TRADE_CANDLES_INTERVAL",
"limit": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_CANDLES_LIMIT",
"__format": "number"
}
},
"buy": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_ENABLED",
"__format": "boolean"
},
"triggerPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_TRIGGER_PERCENTAGE",
"__format": "number"
},
"stopPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_STOP_PERCENTAGE",
"__format": "number"
},
"limitPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_LIMIT_PERCENTAGE",
"__format": "number"
},
"athRestriction": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_ATH_RESTRICTION_ENABLE",
"__format": "boolean"
},
"candles": {
"interval": "BINANCE_JOBS_TRAILING_TRADE_BUY_ATH_RESTRICTION_CANDLES_INTERVAL",
"limit": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_ATH_RESTRICTION_CANDLES_LIMIT",
"__format": "number"
}
},
"restrictionPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_ATH_RESTRICTION_RESTRICTION_PERCENTAGE",
"__format": "number"
}
},
"tradingView": {
"whenStrongBuy": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_TRADINGVIEW_WHEN_STRONG_BUY",
"__description": "Set a boolean to use TradingView recommendation to trigger the buy. If the buy trigger price is reached, the bot will check TradingView recommendation and if it is not `Strong buy`, then the bot will not place a buy order.",
"__format": "boolean"
},
"whenBuy": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_BUY_TRADINGVIEW_WHEN_BUY",
"__description": "Set a boolean to use TradingView recommendation to trigger the buy. If the buy trigger price is reached, the bot will check TradingView recommendation and if it is not `Buy`, then the bot will not place a buy order.",
"__format": "boolean"
}
}
},
"sell": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_ENABLED",
"__format": "boolean"
},
"triggerPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_TRIGGER_PERCENTAGE",
"__format": "number"
},
"stopPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_STOP_PERCENTAGE",
"__format": "number"
},
"limitPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_LIMIT_PERCENTAGE",
"__format": "number"
},
"stopLoss": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_STOP_LOSS_ENABLED",
"__format": "boolean"
},
"maxLossPercentage": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_STOP_LOSS_MAX_LOSS_PERCENTAGE",
"__format": "number"
},
"disableBuyMinutes": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_STOP_LOSS_DISABLE_BUY_MINUTES",
"__format": "number"
},
"orderType": "BINANCE_JOBS_TRAILING_TRADE_SELL_STOP_LOSS_ORDER_TYPE"
},
"tradingView": {
"forceSellOverZeroBelowTriggerPrice": {
"whenNeutral": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_TRADING_VIEW_FORCE_SELL_OVER_ZERO_BELOW_TRIGGER_PRICE_WHEN_NEUTRAL",
"__description": "Set a boolean to use TradingView recommendation to sell the coin at the market price if the profit is over 0 but under the trigger price. When the condition is met and the TradingView recommendation is `Neutral`, then the bot will place a market sell order immediately. If the auto-buy trigger is enabled, then it will place a buy order later. Note that this action can cause loss if the profit is less than commission.",
"__format": "boolean"
},
"whenSell": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_TRADING_VIEW_FORCE_SELL_OVER_ZERO_BELOW_TRIGGER_PRICE_WHEN_SELL",
"__description": "Set a boolean to use TradingView recommendation to sell the coin at the market price if the profit is over 0 but under the trigger price. When the condition is met and the TradingView recommendation is `Sell`, then the bot will place a market sell order immediately. If the auto-buy trigger is enabled, then it will place a buy order later. Note that this action can cause loss if the profit is less than commission.",
"__format": "boolean"
},
"whenStrongSell": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SELL_TRADING_VIEW_FORCE_SELL_OVER_ZERO_BELOW_TRIGGER_PRICE_WHEN_STRONG_SELL",
"__description": "Set a boolean to use TradingView recommendation to sell the coin at the market price if the profit is over 0 but under the trigger price. When the condition is met and the TradingView recommendation is `Strong sell`, then the bot will place a market sell order immediately. If the auto-buy trigger is enabled, then it will place a buy order later. Note that this action can cause loss if the profit is less than commission.",
"__format": "boolean"
}
}
}
},
"system": {
"temporaryDisableActionAfterConfirmingOrder": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SYSTEM_TEMPORARY_DISABLE_ACTION_AFTER_CONFIRMING_ORDER",
"__description": "Set the seconds for disabling any actions after confirming an order. Note that decreasing this value can cause issues with the bot not recording the last buy price.",
"__format": "number"
},
"checkManualOrderPeriod": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SYSTEM_CHECK_MANUAL_ORDER_PERIOD",
"__description": "Set the seconds for the period of checking the manual orders. Note that reducing the seconds can cause issues with the bot exceeding the API usage.",
"__format": "number"
},
"placeManualOrderInterval": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SYSTEM_PLACE_MANUAL_ORDER_INTERVAL",
"__description": "Set the seconds for the period of placing the manual orders. Note that reducing the seconds can cause issues with the bot exceeding the API usage.",
"__format": "number"
},
"refreshAccountInfoPeriod": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SYSTEM_REFRESH_ACCOUNT_INFO_PERIOD",
"__description": "Set the seconds for the period of checking the account info.",
"__format": "number"
},
"checkOrderExecutePeriod": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_SYSTEM_CHECK_ORDER_EXECUTE_PERIOD",
"__description": "Set the seconds for the period of checking the grid trade order executed. Note that reducing the seconds can cause issues with the bot exceeding the API usage.",
"__format": "number"
}
}
},
"trailingTradeIndicator": {
"enabled": {
"__name": "BINANCE_JOBS_TRAILING_TRADE_ENABLED",
"__format": "boolean"
},
"cronTime": "BINANCE_JOBS_TRAILING_TRADE_INDICATOR_CRON_TIME"
}
}
}