-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commands
Shows your holdings on the exchange.
The list includes only non-empty balances and estimates in USD and BTC.
Next /balances
requests will also show changes relative to previous data. The bot analyzes buys and sells on pair of the config-file, but it may be wrong, as it uses only balances, not trades history.
The command uses the exchange you set in the exchange
field of the config. It is necessary to set up API keys as well.
/balances
/balances
Azbit balances:
9 201.27923727 ADM (3 700.36923727 available & 5 500.91 frozen)
0.05603766 RES
97.02754082 USDT (63.22883482 available & 33.798706 frozen)
Total holdings ~ 209.69 USD or 0.00784110 BTC
Changes:
ADM: +117.31
USDT: −1.45405745
Total holdings +4.04 USD or +0.00017664 BTC
I've bought 117.31 ADM at 0.012395 USDT price.
Shows open orders and their details on a trading pair.
The bot shows total open orders in exchange for a trade pair, and order number by type in internal storage. Orders in the storage may differ from actual orders on exchange: you’ve placed orders aside from the bot; API didn’t close an order but reported it as closed. It is a reference only. This difference the bot shows as Unknown
orders.
Next /orders
requests will also show changes relative to the previous data.
To show orders details, specify an order type. To include additional information in the details, specify full
.
Order types:
-
man
:Manual
Orders you’ve placed with/buy
and/sell
commands -
ld
:Ladder
Orders that the bot placed with the Ladder/Grid trading
The command uses the exchange you set in the exchange
field of the config.
/orders [trading pair] [type] [full]
If you omit a trading pair, a bot will use the pair from the config-file.
/orders adm/usdt
Azbit open orders for ADM/USDT pair: 2 (+1).
Orders in my database:
Ladder: 0,
Manual: 2 (+1) — 10.01000000 USDT buys & 0.00000000 ADM sells,
All types: 2 (+1) — 10.01000000 USDT buys & 0.00000000 ADM sells.
Orders which are not in my database (Unknown orders): 0.
/orders adm/usdt ld
StakeCube ld-orders for ADM/USDT pair: 10.
04 sell 3869.12440 ADM @0.0256 USDT for 98.0028 USDT Open
03 sell 3634.35859 ADM @0.0249 USDT for 99.5852 USDT Partly filled
02 sell 4187.67705 ADM @0.0242 USDT for 100.9892 USDT Open
01 sell 4294.83420 ADM @0.0235 USDT for 98.0596 USDT Open
00 sell 4009.91926 ADM @0.0228 USDT for 98.2724 USDT Partly filled
00 buy 4663.40385 ADM @0.0215 USDT for 100.2666 USDT Open
01 buy 4798.76326 ADM @0.0209 USDT for 98.7594 USDT Open
02 buy 4924.98320 ADM @0.0203 USDT for 98.7176 USDT Open
03 buy 5107.44011 ADM @0.0197 USDT for 100.0882 USDT Open
04 buy 5191.79268 ADM @0.0191 USDT for 101.2083 USDT Open
Shows stats on a trading pair.
Information includes general trading statistics for a day, and trading stats for a day, a month, and for all the time.
/stats
command uses the exchange you set in the exchange
field of the config.
/stats [trading pair]
If you omit trading pair, a bot will use pair from the config-file.
/stats adm/usdt
Azbit 24h stats for ADM/USDT pair:
Vol: 68 956.18 ADM & 690.848578 USDT.
Low: 0.009470, high: 0.010455, delta: 0.000985 USDT (9.89%).
Bid: 0.009557, ask: 0.009584, spread: 0.000027 USDT (0.28%).
Shows the market price for a coin.
The bot gets rates from infoService and from an exchange. Rates from an exchange also include bid, ask and spread.
InfoService is an ADAMANT currency rates provider, which fetches and stores rates from MOEX, Coinmarketcap, CryptoCompare, and Coingecko. The default is https://info.adamant.im. If it doesn't store a coin you need, run your own infoService and specify it in the infoservice
field of the config file.
/rates
command uses the exchange you set in the exchange
field of the config. It might be necessary to set up API keys as well.
/rates [coin or pair]
If you pass a pair, the bot shows rates from an exchange also.
/rates adm/usdt`
Global market rates for ADM:
ADM/USD: 0.01478896, ADM/RUB: 1.18451463, ADM/EUR: 0.01377346,
ADM/CNY: 0.10474922, ADM/JPY: 2.07867087, ADM/BTC: 5.5e-7,
ADM/ETH: 0.00000812, ADM/KRW: 19.55818948.
Azbit rates for ADM/USDT pair:
Bid: 0.0102, ask: 0.0110, spread: 0.0008 USDT (7.27%).
Calculates value of one coin in another.
Uses market data from InfoService and from exchange.
InfoService is an ADAMANT currency rates provider, which fetches and stores rates form MOEX, Coinmarketcap, CryptoCompare and Coingecko. Default is https://info.adamant.im. If it doesn't store a coin you need, run your own infoService and specify it in the infoservice field of the config file, or ask us to add it to a default one.
The command uses an exchange you set in the exchange
field of the config.
/calc [amount] [coin1] in [coin2]
/calc 2.05 BTC in USDT
Global market value of 2.05 BTC equals 55 241.17488547 USDT.
Azbit value of 2.05 BTC:
Bid: 55 403.62800000 USDT, ask: 55 434.05000000 USDT.
Starts the bot.
Possible trading strategies:
/start [strategy]
/start ld 100 USDT 10 2%
The bot will show current price information and ask for a confirmation. If you agree, confirm with `/y` command.
Starting Ladder/ Grid strategy with 10 ~100 USDT orders on each side with 2% step, starting from the middle of 0.000154 USDT on ADM/USDT pair.
Stops (pauses) trading.
/stop
/stop
Trading on ADM/USDT pair stopped.
Places an order to buy or sell tokens.
Buys/sells tokens at a market price, or places an order in the order book—that are market and limit orders. The bot stores information about buy orders in the internal database with man
type. See /orders
command.
Some exchanges don’t create market orders by API.
The commands are “manual” buy/sell orders independent of trading.
Depending on the price, a placed order can go to the order book or executes immediately.
/buy [trading pair] [amount= or quote=] [price=]
If you omit a trading pair, a bot will place an order for the pair from the config-file.
If you have not specified a price, the bot will place an order at a market price. Same as price=market
.
You can set a volume in tokens amount
, or in quote-currency quote
. Note: on some exchanges, buying at a market price is available only with quote
.
/buy ADM/USDT amount=200 price=0.005
Order placed to buy 200 ADM at 0.005 USDT. Order Id: 07aa2246-1508-411c-a29b-8b59bdf9dbbc.
/buy ADM/USDT quote=0.01 price=0.005
Order placed to buy 2 ADM at 0.005 USDT. Order Id: f5300923-67ed-4ce0-82d7-0ce8ed143e52.
Cancel active orders on a trading pair. The list of active orders is available with /orders
command.
/clear
command cancels orders on the exchange you set in the exchange
field of the config.
/clear [trade pair] [type or all] [force]
If you omit a trading pair, a bot will cancel orders on the pair from the config-file.
See types of orders with /orders
. If instead specify all, the bot will request all active orders on a trading pair from exchange, and cancel them. Since the exchange API may have a limit on the number of requests, use the parameter force
to make several iterations.
/clear adm/usdt all
Successfully closed 2 of 2 orders: 2 of 2 locally stored, and 0 of 0 received from exchange.
Confirms a command execution.
If a command in the bot's memory is requested for confirmation, /y
will execute it.
/y
/y
Starting Ladder/ Grid strategy with 10 ~100 USDT orders on each side with 2% step, starting from the middle of 0.000154 USDT on ADM/USDT pair.
Shows a deposit address for a coin.
An exchange provides a deposit address. Some exchanges don’t create deposit addresses by API, you need to use the website instead.
You can get current asset balances with /balances
command.
The command provides deposit addresses on the exchange you set in the exchange
field of the config.
/deposit [coin]
/deposit adm
The deposit addresses for ADM on Azbit:
350: U11800316764752172108
Shows the bot's application version.
Shows the bot’s software version from the package.json
file.
Check the actual version regularly on GitHub.
/version
/version
I am running on adamant-coinoptimus software version 1.0.0. Revise code on ADAMANT's GitHub.
Shows help on the bot.
/help
Shows information about provided trading pair.
If you omit a trading pair, a bot will show info about the pair from the config-file.
/pair [pair]
/pair ADM/USDT
Azbit reported these details on ADM/USDT market:
{
"pairPlain": "ADM_USDT",
"pairReadable": "ADM/USDT",
"coin1": "ADM",
"coin2": "USDT",
"coin1Decimals": 8,
"coin2Decimals": 8,
"coin1Precision": 1e-8,
"coin2Precision": 1e-8,
"coin1MinAmount": null,
"coin1MaxAmount": null,
"coin2MinAmount": null,
"coin2MaxAmount": null,
"coin2MinPrice": null,
"coin2MaxPrice": null,
"minTrade": null
}
Shows current trading parameters.
The command shows parameters for the exchange you’ve specified in the exchange field of config-file. The bot stores parameters for every exchange in separate files, named /trade/tradeParams_{exchange}.js
.
It is not recommended to change the parameters in the file directly. If you are going to do this, stop the bot application first.
/params
/params
I am set to work with ADM/USDT pair on Azbit. Current trading settings:
{
"co_isActive": false,
"co_strategy": "ld",
"mm_ladderReInit": false,
"mm_isLadderActive": true,
"mm_ladderAmount": 5,
"mm_ladderAmountCoin": "USDT",
"mm_ladderCount": 2,
"mm_ladderPriceStepPercent": 2,
"mm_ladderMidPrice": 0.025,
"mm_ladderMidPriceType": "Calculated"
}