Configuring

query.json

Property

Description

symbol

Specifies the symbol pair to query. Set to 'null' to query all available coins from Binance.

maxPriceChangePercent

Identifies the maximum allowed percentage change for the past 24H.

volumeUpperLimit

Maximum allowed volume for the past 24H.

volumeLowerLimit

Minimum allowed volume for the past 24H.

minimumTradingAge

Trading age is the number of days since the coin has been listed in Binance Futures.

percentageFromAllTimeHigh

Coins near all time high will not be traded.

exclude

Coins in this list will not be traded.

autoExclude

(true/false) Allows permanent banning of coins when they reached percentage criteria for the past 24H.

autoExcludePercentage

Percentage criteria for automatic exclusion. When coins reached this percentage, it will be permanently excluded.

bbStrategy

(true/false) Enables Bollinger Bands to filter coins

bbBarCount

Indicates the length or number of bars to be used for Bollinger Bands

web-settings.json

Property

Description

active

Identifies the current active settings from the user-defined settings.

defaultSettings

Identifies the default settings from the user-defined settings. This will be active if volatility of BTC is less than the specified volatility amount in the application.properties.

safe

Describes the safe settings from the user-defined settings. Safe settings will be active if BTC reaches certain volatility. Volatility Indicator can be found here https://lunarcrush.com/developers/tradingview. See application.properties to change volatility settings

userDefinedSettings

Users can create multiple settings. Settings in active property will be used. Users can also change settings through Telegram bot. See application.properties to setup Telegram Bot.

maxOpen

Maximum allowed positions at a time.

openOrderIsolationPercentage

New positions will not be opened when percentage of total balance is reached.

marginPercentNotification

Discord notificaiton when margin reached a percentage of total balance

autoLickValue

(true/false) If true, enables retrieving of liquidation value from liquidation.wtf. Otherwise, lickValue will be used.

marginType

(crossed/isolated) Allows changing of margin type.

application.properties

spring.datasource.initialization-mode

Application initializes the database using SQL script upon start up. Change value to "never" to retain the database values.

api.liquidation

REST endpoint to the liquidation.wtf for retrieving data

scheduler.leverage

Time in milliseconds to change the leverage

scheduler.margin

Time in milliseconds to change margin type

scheduler.account-information

Time in milliseconds to retrieve account information

scheduler.mark-price

Time in milliseconds to retrieve mark price information

scheduler.candlestick

Time in milliseconds to retrieve candlestick data

scheduler.liquidation

Time in milliseconds to retrieve liquidation data from liquidation.wtf

scheduler.write-coins

Time in milliseconds to update coins.json

scheduler.income-history

Time in milliseconds to save income history

scheduler.lickhunter

Cron expression to restart lickhunter. Remove value to disable scheduled restart. To create cron expression, go to http://cronmaker.com

scheduler.sentiments

Cron expression to check sentiments. To create cron expression, go to http://cronmaker.com

telegram.token

Telegram token for bot created from @BotFather

telegram.bot

Name of the created bot. Must not include '@'.

telegram.username

List of allowed usernames that have access to the bot. Must not include '@'.

sentiments.api

REST endpoint of sentiments api

sentiments.key

API key generated from http://lunarcrush.com

sentiments.pause-bot-enable

If true, bot will pause after social/twitter volume notification. Bot will resume after specified hours.

sentiments.puase-bot

Time in hours to pause the bot from trading.

sentiments.change-settings

Enables switching of settings between safe and default when volatility of BTC meets criteria.

sentiments.change-settings-volatility

When BTC volatility is above this criteria, change to safer settings otherwise switch to default. Volatility is described as degree of variation of a trading price series over time as measured by the standard deviation of logarithmic returns. Validate result @ https://lunarcrush.com/developers/tradingview

sentiments.social-volume-percentage

Percentage change of social volume from past 1H timeframe

sentiments.twitter-volume-percentage

Percentage change of twitter volume from past 1H timeframe

sentiments.discord-enable

Enables notification through discord webhook

sentiments.discord-alerts

Discord webhook for sentiments social volume and twitter alerts

Sample Files

Sample query.json file.

query.json
{
  "symbol": null,       
  "maxPriceChangePercent":null,
  "volumeUpperLimit":3000000000,
  "volumeLowerLimit":0,
  "minimumTradingAge":30,
  "percentageFromAllTimeHigh":10,
  "exclude":["DOGE","BTC","ETH","XRP"],
  "autoExclude" : true,
  "autoExcludePercentage" : 70,
  "bbStrategy" : true,
  "bbBarCount" : 20
}

Last updated

Was this helpful?