Skip to main content

36 posts tagged with "AutoConfig"

View All Tags

· 6 min read

Gunbot's AutoConfig feature lets you automate tasks across cryptocurrency exchanges. To ensure an AutoConfig job targets the correct market, you must specify the exchange using the exchange parameter. This setting dictates where AutoConfig fetches data, which pairs it considers, and where any configuration changes or trading actions (if applicable to the job type) are directed.

· 7 min read

Gunbot's AutoConfig feature lets you define and manipulate global variables that can be shared across jobs and filters. Within a custom JavaScript filter (where filterType: "custom"), these global variables are accessible through the this.variables context object. This enables stateful logic that adapts based on conditions or counters set elsewhere in your AutoConfig setup.

· 7 min read

Gunbot's AutoConfig feature allows granular control through per-pair variables. These variables store stateful information unique to each trading pair on a specific exchange. AutoConfig offers built-in filter types like pairVariableExact, pairVariableBiggerThan, and pairVariableSmallerThan, enabling jobs to make decisions based on each pair's history or status.

· 6 min read

When selecting trading pairs with Gunbot's AutoConfig, particularly for addPairs jobs, you may want to target or avoid pairs based on their absolute current price. For example, you might avoid very low-priced "penny stock" style cryptocurrencies or target only those below a certain price point. AutoConfig provides minPrice and maxPrice filter types to achieve this.

· 7 min read

Global variables in Gunbot's AutoConfig enable stateful automation, so jobs can react to conditions set by other jobs or persist information across runs. The primary way to create or modify these global variables is by using the setVariable object as an action within an AutoConfig job definition. This action runs if the job's filters (if any) pass.

· 7 min read

Gunbot's AutoConfig supports stateful automation with both global variables and variables specific to each trading pair on an exchange. The setPairVariable object, when used as an action in an AutoConfig job, creates or updates per-pair variables for all pairs that pass the job's filters. This enables targeted, adaptive logic.

· 6 min read

When managing trading pairs with Gunbot's AutoConfig, especially when adding new pairs or making significant changes to existing ones, you might want to prevent the trading strategy from immediately acting on historical chart data. The setITB option in AutoConfig jobs provides an automated way to set the IGNORE_TRADES_BEFORE (ITB) override for affected pairs to the current time, so the strategy only considers market data from that point forward.

· 7 min read

When automating pair removal with Gunbot's AutoConfig removePairs job type, you need to consider whether the bot still holds quote currency for the pair (a "bag"). The pairs.noBag option adds a safeguard: only delist a pair when the quote balance is below the strategy’s MIN_VOLUME_TO_SELL (MVTS) threshold and there are no open orders.

· 6 min read

While the pairs.include parameter in Gunbot's AutoConfig defines the initial watchlist for a job, the pairs.exclude parameter refines that list by blacklisting specific pairs or patterns. Pairs matching an exclude pattern are removed even if they matched an include pattern. This gives precise control over which pairs an AutoConfig job will process.

· 6 min read

Gunbot's AutoConfig can manage trading pairs, including assigned strategies and overrides. A common requirement is to apply AutoConfig actions—like changing overrides or switching strategies—only to pairs currently configured with a specific trading strategy. AutoConfig provides the strategyName filter type for this purpose.

· 5 min read

Gunbot's AutoConfig feature extends beyond managing trading pairs and their strategies; it can also be used to dynamically alter global bot settings found in the bot section of your config.js file. This is achieved by defining a bot object within an AutoConfig job's action block, allowing for adaptive changes to Gunbot's core behavior based on your specified conditions.

· 6 min read

The bid-ask spread is the difference between the highest price a buyer is willing to pay (bid) and the lowest price a seller is willing to accept (ask), and it is a key indicator of a pair's liquidity and transaction costs. Gunbot's AutoConfig lets you filter pairs by spread percentage with the minSpreadPct and maxSpreadPct filter types, so you can target cost-effective pairs or avoid those with wide spreads.

· 6 min read

When using Gunbot's AutoConfig addPairs jobs to discover and add trading opportunities, it is often crucial to control the total number of pairs actively trading on an exchange. This helps manage risk, available capital, and system resources. AutoConfig addresses this with the maxPairs parameter, which sets an upper limit on the number of enabled pairs for a given exchange.

· 6 min read

Gunbot's AutoConfig can manage per-pair variables when pairs pass filters (setPairVariable) and when they fail (resetPairVariable). The resetPairVariable action runs for each evaluated pair that does not meet the job's main filters (or filters2, etc.), letting you update non-qualifying pairs explicitly.

· 6 min read

Gunbot's AutoConfig system maintains state using global and per-pair variables. That state persists across restarts because AutoConfig saves variables to JSON files in your Gunbot user directory: autoconfig-variables.json for global variables and autoconfig-pairVariables.json for per-pair variables.