Configuration Settings
This section describes the main parameters required for the correct launch of the trading bot to work with the BitMart exchange. Proper configuration of these parameters allows you to adapt the scripts to your trading preferences and optimize the order placement process.
1. Configuration File Parameters
These configuration file parameters define the basic settings for the trading bot to work with the BitMart exchange, including security, trading pair selection, and order placement strategy. Proper completion ensures correct and stable interaction with the exchange.
- BITMAP_API_KEY
Public key from BitMart. Used to identify your account when making requests, ensuring secure interaction of the script with the exchange.
- BITMAP_SECRET_KEY
Secret key associated with your API key. Required to sign requests and confirm their authenticity, ensuring the security of your operations on the exchange.
- BITMAP_API_MEMO
Additional MEMO key linked to your API key. Also required to sign requests and confirm their authenticity, providing protection for your operations.
- FIRST_COIN
First coin of the trading pair. For example, to trade Bitcoin (BTC), specify “BTC”. This coin is the base currency for transactions.
- SECOND_COIN
Second coin of the trading pair. For trading the BTC/USDT pair, enter “USDT” here, which is used to evaluate the first coin’s value.
- ORDER_COIN_COUNT
Amount of the first coin involved in each order. This parameter determines the volume of an individual trade.
- GAP
Price gap between orders. Allows you to set the spread between orders, helping to build a strategy for placing them depending on the current market situation.
- BITMAP_BASE_URL
This is the base URL for working with BitMart’s API. It is reserved and should not be changed.
- BITMAP_WSS_URL
This is the WebSocket connection address used to receive live data from BitMart. This address is also reserved and should not be changed.
- ACTIVATION_KEY
Activation key for using the trading bot. It confirms authorization to use the program and activates necessary functions.
The activation key is purchased separately. More information is available on the “Pricing” page.
2. Usage Example
Below is a detailed example of the final config.json settings for the XRP/USDT trading pair with XRP priced at $2:
With an XRP market price of $2, the settings work as follows:
- Base Interval
The base interval between orders is set at $0.05. When XRP’s price remains stable around $2, the bot places orders based on this interval.
- Adaptation to Market Dynamics
If the price starts to rise or fall significantly, the bot automatically increases the interval between orders. Increasing the interval allows the trading range to expand and enhances potential profit per trade. For example, during high volatility, the interval may increase to $0.07 or $0.08 depending on the bot’s calculations.
- Sell Order
The bot places a sell order for 2 XRP at a price increased by the calculated interval from the current market price. With XRP at $2 and a stable market, the order would be placed at about $2.05 (or higher if volatility increases).
- Buy Order
The bot places a buy order for 2 XRP at a price decreased by the calculated interval from the current market price. With XRP at $2 and a stable market, the order would be placed at about $1.95 (or lower if volatility rises).
Last updated